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, LibraryNode, ProjectResource
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.
abstract  RequirementLibraryNode<RESOURCE> createPastableCopy()
           
 Long getId()
           
 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
 

Constructor Detail

RequirementLibraryNode

public RequirementLibraryNode()

RequirementLibraryNode

public RequirementLibraryNode(String name,
                              String description)
Method Detail

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.