org.squashtest.csp.tm.domain.requirement
Class RequirementLibrary

java.lang.Object
  extended by org.squashtest.csp.tm.domain.project.GenericLibrary<RequirementLibraryNode>
      extended by org.squashtest.csp.tm.domain.requirement.RequirementLibrary
All Implemented Interfaces:
Library<RequirementLibraryNode>, NodeContainer<RequirementLibraryNode>, ProjectResource, SelfClassAware

@Entity
public class RequirementLibrary
extends GenericLibrary<RequirementLibraryNode>
implements Library<RequirementLibraryNode>


Constructor Summary
RequirementLibrary()
           
 
Method Summary
 String getClassName()
           
 String getClassSimpleName()
           
 Long getId()
           
 Project getProject()
           
 Set<RequirementLibraryNode> getRootContent()
           
 boolean hasContent()
           
 void notifyAssociatedWithProject(Project p)
          Notifies this resource now belongs to the given project.
 void removeRootContent(RequirementLibraryNode node)
           
 void setId(Long id)
           
 
Methods inherited from class org.squashtest.csp.tm.domain.project.GenericLibrary
addContent, addRootContent, isContentNameAvailable
 
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.Library
addRootContent
 
Methods inherited from interface org.squashtest.csp.tm.domain.library.NodeContainer
addContent, isContentNameAvailable
 

Constructor Detail

RequirementLibrary

public RequirementLibrary()
Method Detail

setId

public void setId(Long id)

getId

public Long getId()
Specified by:
getId in interface Library<RequirementLibraryNode>

getRootContent

public Set<RequirementLibraryNode> getRootContent()
Specified by:
getRootContent in interface Library<RequirementLibraryNode>
Specified by:
getRootContent in class GenericLibrary<RequirementLibraryNode>

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 p)
Description copied from interface: ProjectResource
Notifies this resource now belongs to the given project. should return this project afterwards.

Specified by:
notifyAssociatedWithProject in interface ProjectResource
Parameters:
p - should not ne null

removeRootContent

public void removeRootContent(RequirementLibraryNode node)
Specified by:
removeRootContent in interface Library<RequirementLibraryNode>

getClassSimpleName

public String getClassSimpleName()
Specified by:
getClassSimpleName in interface SelfClassAware

getClassName

public String getClassName()
Specified by:
getClassName in interface SelfClassAware

hasContent

public boolean hasContent()
Specified by:
hasContent in interface Library<RequirementLibraryNode>


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.