@Entity public class RequirementFolder extends RequirementLibraryNode<SimpleResource> implements Folder<RequirementLibraryNode>
| Constructor and Description |
|---|
RequirementFolder() |
RequirementFolder(Date createdOn,
String createdBy) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(NodeContainerVisitor visitor) |
void |
accept(NodeVisitor visitor) |
void |
accept(RequirementLibraryNodeVisitor visitor)
Implementors should ask the visitor to visit this object.
|
void |
addContent(RequirementLibraryNode node)
Adds new content to this container.
|
void |
addContent(RequirementLibraryNode node,
int position)
Adds new content to this container at the given position.
|
RequirementFolder |
createCopy() |
void |
emptyContent() |
List<RequirementLibraryNode> |
getContent() |
List<String> |
getContentNames() |
String |
getDescription() |
String |
getName() |
Collection<RequirementLibraryNode> |
getOrderedContent()
Will return the ordered (if order there is) content nodes.
|
SimpleResource |
getResource() |
boolean |
hasContent() |
boolean |
isContentNameAvailable(String name) |
void |
notifyAssociatedWithProject(Project project)
Notifies this object it is now a resource of the given project.
|
void |
removeContent(RequirementLibraryNode contentToRemove) |
void |
setDescription(String description) |
void |
setName(String name) |
getAttachmentList, getId, getLibrary, getMainResource, getProjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttachmentListgetProjectgetIdgetLibrary, getProjectgetProjectpublic List<RequirementLibraryNode> getContent()
getContent in interface NodeContainer<RequirementLibraryNode>public void accept(RequirementLibraryNodeVisitor visitor)
RequirementLibraryNodeaccept in class RequirementLibraryNode<SimpleResource>public void accept(NodeContainerVisitor visitor)
accept in interface NodeContainer<RequirementLibraryNode>public void removeContent(RequirementLibraryNode contentToRemove) throws org.squashtest.tm.core.foundation.exception.NullArgumentException
removeContent in interface NodeContainer<RequirementLibraryNode>org.squashtest.tm.core.foundation.exception.NullArgumentExceptionpublic void addContent(RequirementLibraryNode node)
NodeContaineraddContent in interface NodeContainer<RequirementLibraryNode>public void addContent(RequirementLibraryNode node, int position)
NodeContaineraddContent in interface NodeContainer<RequirementLibraryNode>public boolean isContentNameAvailable(String name)
isContentNameAvailable in interface NodeContainer<RequirementLibraryNode>public RequirementFolder createCopy()
createCopy in interface Copiablepublic void notifyAssociatedWithProject(Project project)
RequirementLibraryNodenotifyAssociatedWithProject in interface LibraryNodenotifyAssociatedWithProject in class RequirementLibraryNode<SimpleResource>project - should not be nullpublic boolean hasContent()
hasContent in interface NodeContainer<RequirementLibraryNode>public void setName(String name)
setName in interface CopiablesetName in interface LibraryNodename - The name of this node. Should not be blank or null.public void setDescription(String description)
setDescription in interface LibraryNodedescription - the new node descriptionpublic String getName()
getName in interface CopiablegetName in interface LibraryNodepublic String getDescription()
getDescription in interface LibraryNodepublic SimpleResource getResource()
getResource in class RequirementLibraryNode<SimpleResource>public void emptyContent()
public void accept(NodeVisitor visitor)
public List<String> getContentNames()
getContentNames in interface NodeContainer<RequirementLibraryNode>public Collection<RequirementLibraryNode> getOrderedContent()
NodeContainergetOrderedContent in interface NodeContainer<RequirementLibraryNode>Copyright © 2010–2016 Henix, henix.fr. All rights reserved.