org.squashtest.csp.tm.domain.requirement
Class RequirementLibraryNode<RESOURCE extends Resource>
java.lang.Object
org.squashtest.csp.tm.domain.requirement.RequirementLibraryNode<RESOURCE>
- All Implemented Interfaces:
- org.squashtest.csp.core.domain.Identified, LibraryNode, ProjectResource
- Direct Known Subclasses:
- Requirement, RequirementFolder
@Entity
public abstract class RequirementLibraryNode<RESOURCE extends Resource>
- extends Object
- implements LibraryNode
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequirementLibraryNode
public RequirementLibraryNode()
RequirementLibraryNode
public RequirementLibraryNode(String name,
String description)
getProject
public Project getProject()
- Specified by:
getProject in interface ProjectResource
- Returns:
- The project which this resource belongs to. Should never be
null.
notifyAssociatedWithProject
public void notifyAssociatedWithProject(Project project)
- Notifies this object it is now a resource of the given project.
- Specified by:
notifyAssociatedWithProject in interface ProjectResource
- Parameters:
project -
getId
public Long getId()
- Specified by:
getId in interface org.squashtest.csp.core.domain.Identified
accept
public abstract void accept(RequirementLibraryNodeVisitor visitor)
- Implementors should ask the visitor to visit this object.
- Parameters:
visitor -
getResource
public abstract RESOURCE getResource()
createPastableCopy
public abstract RequirementLibraryNode<RESOURCE> createPastableCopy()
- Specified by:
createPastableCopy in interface LibraryNode
Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.