org.squashtest.tm.domain.testcase
Class TestCaseFolder

java.lang.Object
  extended by org.squashtest.tm.domain.library.GenericLibraryNode
      extended by org.squashtest.tm.domain.testcase.TestCaseLibraryNode
          extended by org.squashtest.tm.domain.testcase.TestCaseFolder
All Implemented Interfaces:
AttachmentHolder, Identified, Copiable, Folder<TestCaseLibraryNode>, LibraryNode, NodeContainer<TestCaseLibraryNode>, TreeNode, ProjectResource<Project>, SelfClassAware

@Entity
public class TestCaseFolder
extends TestCaseLibraryNode
implements Folder<TestCaseLibraryNode>


Constructor Summary
TestCaseFolder()
           
 
Method Summary
 void accept(NodeContainerVisitor visitor)
           
 void accept(NodeVisitor visitor)
           
 void accept(TestCaseLibraryNodeVisitor visitor)
           
 void addContent(TestCaseLibraryNode node)
          Adds new content to this container.
 TestCaseFolder createCopy()
           
 String getClassName()
           
 String getClassSimpleName()
           
 Set<TestCaseLibraryNode> getContent()
           
 List<String> getContentNames()
           
 Collection<TestCaseLibraryNode> getOrderedContent()
          Will return the ordered (if order there is) content nodes.
 boolean hasContent()
           
 boolean isContentNameAvailable(String name)
           
 void notifyAssociatedWithProject(Project project)
          Notifies this object it is now a resource of the given project.
 void removeContent(TestCaseLibraryNode node)
           
 
Methods inherited from class org.squashtest.tm.domain.testcase.TestCaseLibraryNode
equals, getAllAttachments, getId, getLibrary, hashCode
 
Methods inherited from class org.squashtest.tm.domain.library.GenericLibraryNode
getAttachmentList, getDescription, getName, getProject, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.squashtest.tm.domain.library.LibraryNode
getDescription, getName, setDescription, setName
 
Methods inherited from interface org.squashtest.tm.domain.attachment.AttachmentHolder
getAttachmentList
 
Methods inherited from interface org.squashtest.tm.domain.library.TreeNode
getProject
 
Methods inherited from interface org.squashtest.tm.domain.project.ProjectResource
getLibrary, getProject
 
Methods inherited from interface org.squashtest.tm.domain.library.NodeContainer
getProject
 
Methods inherited from interface org.squashtest.tm.domain.Identified
getId
 

Constructor Detail

TestCaseFolder

public TestCaseFolder()
Method Detail

addContent

public void addContent(TestCaseLibraryNode node)
Description copied from interface: NodeContainer
Adds new content to this container. Should refuse to add null content, should refuse to add content with duplicate name.

Specified by:
addContent in interface NodeContainer<TestCaseLibraryNode>

getContent

public Set<TestCaseLibraryNode> getContent()
Specified by:
getContent in interface NodeContainer<TestCaseLibraryNode>

accept

public void accept(TestCaseLibraryNodeVisitor visitor)
Specified by:
accept in class TestCaseLibraryNode

accept

public void accept(NodeContainerVisitor visitor)
Specified by:
accept in interface NodeContainer<TestCaseLibraryNode>

isContentNameAvailable

public boolean isContentNameAvailable(String name)
Specified by:
isContentNameAvailable in interface NodeContainer<TestCaseLibraryNode>

removeContent

public void removeContent(TestCaseLibraryNode node)
                   throws org.apache.commons.lang.NullArgumentException
Specified by:
removeContent in interface NodeContainer<TestCaseLibraryNode>
Throws:
org.apache.commons.lang.NullArgumentException

createCopy

public TestCaseFolder createCopy()
Specified by:
createCopy in interface Copiable

notifyAssociatedWithProject

public void notifyAssociatedWithProject(Project project)
Description copied from class: GenericLibraryNode
Notifies this object it is now a resource of the given project.

Specified by:
notifyAssociatedWithProject in interface LibraryNode
Overrides:
notifyAssociatedWithProject in class GenericLibraryNode
Parameters:
project - should not be null

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

accept

public void accept(NodeVisitor visitor)
Specified by:
accept in interface TreeNode

getContentNames

public List<String> getContentNames()
Specified by:
getContentNames in interface NodeContainer<TestCaseLibraryNode>

getOrderedContent

public Collection<TestCaseLibraryNode> getOrderedContent()
Description copied from interface: NodeContainer
Will return the ordered (if order there is) content nodes.

Specified by:
getOrderedContent in interface NodeContainer<TestCaseLibraryNode>
Returns:


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.