org.squashtest.csp.tm.domain.requirement
Class RequirementLibraryNode<RESOURCE extends Resource>

java.lang.Object
  extended by 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


Constructor Summary
RequirementLibraryNode()
           
RequirementLibraryNode(String name, String description)
           
 
Method Summary
abstract  void accept(RequirementLibraryNodeVisitor visitor)
          Implementors should ask the visitor to visit this object.
 AttachmentList getAttachmentList()
          Should return the container for this object's attachments.
 Long getId()
           
 Library<?> getLibrary()
           
 Project getProject()
           
abstract  RESOURCE getResource()
           
 void notifyAssociatedWithProject(Project project)
          Notifies this object it is now a resource of the given project.
 
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.LibraryNode
getDescription, getName, setDescription, setName
 
Methods inherited from interface org.squashtest.csp.tm.domain.library.Copiable
createCopy
 
Methods inherited from interface org.squashtest.csp.tm.domain.library.TreeNode
accept
 

Constructor Detail

RequirementLibraryNode

public RequirementLibraryNode()

RequirementLibraryNode

public RequirementLibraryNode(String name,
                              String description)
Method Detail

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.