org.squashtest.csp.tm.domain.requirement
Class RequirementFolder
java.lang.Object
org.squashtest.csp.tm.domain.requirement.RequirementLibraryNode<SimpleResource>
org.squashtest.csp.tm.domain.requirement.RequirementFolder
- All Implemented Interfaces:
- org.squashtest.csp.core.domain.Identified, AttachmentHolder, Copiable, Folder<RequirementLibraryNode>, LibraryNode, NodeContainer<RequirementLibraryNode>, TreeNode, ProjectResource<Project>
@Entity
public class RequirementFolder
- extends RequirementLibraryNode<SimpleResource>
- implements Folder<RequirementLibraryNode>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.squashtest.csp.core.domain.Identified |
getId |
RequirementFolder
public RequirementFolder()
RequirementFolder
public RequirementFolder(Date createdOn,
String createdBy)
getContent
public Set<RequirementLibraryNode> getContent()
- Specified by:
getContent in interface NodeContainer<RequirementLibraryNode>
accept
public void accept(RequirementLibraryNodeVisitor visitor)
- Description copied from class:
RequirementLibraryNode
- Implementors should ask the visitor to visit this object.
- Specified by:
accept in class RequirementLibraryNode<SimpleResource>
removeContent
public void removeContent(RequirementLibraryNode contentToRemove)
throws org.apache.commons.lang.NullArgumentException
- Specified by:
removeContent in interface NodeContainer<RequirementLibraryNode>
- Throws:
org.apache.commons.lang.NullArgumentException
addContent
public void addContent(RequirementLibraryNode node)
- Description copied from interface:
NodeContainer
- Adds new content to this container. Should refuse to add null content, should refuse to add content with duplicate
name.
- Specified by:
addContent in interface NodeContainer<RequirementLibraryNode>
isContentNameAvailable
public boolean isContentNameAvailable(String name)
- Specified by:
isContentNameAvailable in interface NodeContainer<RequirementLibraryNode>
createCopy
public RequirementFolder createCopy()
- Specified by:
createCopy in interface Copiable
notifyAssociatedWithProject
public void notifyAssociatedWithProject(Project project)
- Description copied from class:
RequirementLibraryNode
- Notifies this object it is now a resource of the given project.
- Specified by:
notifyAssociatedWithProject in interface ProjectResource<Project>- Overrides:
notifyAssociatedWithProject in class RequirementLibraryNode<SimpleResource>
- Parameters:
project - should not be null
hasContent
public boolean hasContent()
- Specified by:
hasContent in interface NodeContainer<RequirementLibraryNode>
setName
public void setName(String name)
- Specified by:
setName in interface Copiable- Specified by:
setName in interface LibraryNode
- Parameters:
name - The name of this node. Should not be blank or null.
setDescription
public void setDescription(String description)
- Specified by:
setDescription in interface LibraryNode
- Parameters:
description - the new node description
getName
public String getName()
- Specified by:
getName in interface Copiable- Specified by:
getName in interface LibraryNode
- Returns:
- Name of this node.
getDescription
public String getDescription()
- Specified by:
getDescription in interface LibraryNode
getResource
public SimpleResource getResource()
- Specified by:
getResource in class RequirementLibraryNode<SimpleResource>
emptyContent
public void emptyContent()
accept
public void accept(NodeVisitor visitor)
- Specified by:
accept in interface TreeNode
getContentNames
public List<String> getContentNames()
- Specified by:
getContentNames in interface NodeContainer<RequirementLibraryNode>
Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.