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, Folder<RequirementLibraryNode>, LibraryNode, NodeContainer<RequirementLibraryNode>, ProjectResource
@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()
getContent
public Set<RequirementLibraryNode> getContent()
- Description copied from interface:
Folder
- Returrns the content of this folder.
- Specified by:
getContent in interface Folder<RequirementLibraryNode>
- Returns:
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 Folder<RequirementLibraryNode>
- Throws:
org.apache.commons.lang.NullArgumentException
addContent
public void addContent(RequirementLibraryNode node)
- Description copied from interface:
NodeContainer
- Adds new content to this folder. 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>
createPastableCopy
public RequirementFolder createPastableCopy()
- Specified by:
createPastableCopy in interface LibraryNode- Specified by:
createPastableCopy in class RequirementLibraryNode<SimpleResource>
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- Overrides:
notifyAssociatedWithProject in class RequirementLibraryNode<SimpleResource>
- Parameters:
project - should not ne null
hasContent
public boolean hasContent()
- Specified by:
hasContent in interface Folder<RequirementLibraryNode>
setName
public void setName(String name)
- 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 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>
Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.