org.squashtest.csp.tm.domain.testcase
Class TestCaseLibrary

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

@Entity
public class TestCaseLibrary
extends GenericLibrary<TestCaseLibraryNode>
implements Library<TestCaseLibraryNode>


Constructor Summary
TestCaseLibrary()
           
 
Method Summary
 String getClassName()
           
 String getClassSimpleName()
           
 Long getId()
           
 Project getProject()
           
 Set<TestCaseLibraryNode> getRootContent()
           
 boolean hasContent()
           
 void notifyAssociatedWithProject(Project p)
          Notifies this resource now belongs to the given project.
 void removeRootContent(TestCaseLibraryNode node)
           
 
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

TestCaseLibrary

public TestCaseLibrary()
Method Detail

getRootContent

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

getId

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

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(TestCaseLibraryNode node)
Specified by:
removeRootContent in interface Library<TestCaseLibraryNode>

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<TestCaseLibraryNode>


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