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, AttachmentHolder, Copiable, LibraryNode, TreeNode, ProjectResource<Project>
- 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 |
| Methods inherited from interface org.squashtest.csp.tm.domain.library.TreeNode |
accept |
RequirementLibraryNode
public RequirementLibraryNode()
RequirementLibraryNode
public RequirementLibraryNode(String name,
String description)
getProject
public Project getProject()
- Specified by:
getProject in interface ProjectResource<Project>
- 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<Project>
- Parameters:
project -
getId
public Long getId()
- Specified by:
getId in interface org.squashtest.csp.core.domain.Identified
getLibrary
public Library<?> getLibrary()
- Specified by:
getLibrary in interface ProjectResource<Project>
getAttachmentList
public AttachmentList getAttachmentList()
- Description copied from interface:
AttachmentHolder
- Should return the container for this object's attachments. Should never return
null.
- Specified by:
getAttachmentList in interface AttachmentHolder
- Returns:
- the
AttachmentList of this object.
accept
public abstract void accept(RequirementLibraryNodeVisitor visitor)
- Implementors should ask the visitor to visit this object.
- Parameters:
visitor -
getResource
public abstract RESOURCE getResource()
Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.