org.squashtest.tm.domain.library
Interface LibraryNode

All Superinterfaces:
AttachmentHolder, Copiable, Identified, ProjectResource<Project>, TreeNode
All Known Subinterfaces:
Folder<NODE>
All Known Implementing Classes:
Campaign, CampaignFolder, CampaignLibraryNode, GenericLibraryNode, Requirement, RequirementFolder, RequirementLibraryNode, TestCase, TestCaseFolder, TestCaseLibraryNode

public interface LibraryNode
extends Copiable, Identified, AttachmentHolder, TreeNode, ProjectResource<Project>

Interface for a content node of a library.

Author:
Gregory Fouquet

Method Summary
 String getDescription()
           
 String getName()
           
 void notifyAssociatedWithProject(Project project)
          Notifies this resource now belongs to the given project.
 void setDescription(String newDescription)
           
 void setName(String name)
           
 
Methods inherited from interface org.squashtest.tm.domain.library.Copiable
createCopy
 
Methods inherited from interface org.squashtest.tm.domain.Identified
getId
 
Methods inherited from interface org.squashtest.tm.domain.attachment.AttachmentHolder
getAttachmentList
 
Methods inherited from interface org.squashtest.tm.domain.library.TreeNode
accept, getProject
 
Methods inherited from interface org.squashtest.tm.domain.project.ProjectResource
getLibrary, getProject
 

Method Detail

getName

String getName()
Specified by:
getName in interface Copiable
Returns:
Name of this node.

setName

void setName(String name)
Specified by:
setName in interface Copiable
Parameters:
name - The name of this node. Should not be blank or null.

setDescription

void setDescription(String newDescription)
Parameters:
newDescription - the new node description

getDescription

String getDescription()

notifyAssociatedWithProject

void notifyAssociatedWithProject(Project project)
Notifies this resource now belongs to the given project. TreeNode.getProject() should return this project afterwards.

Parameters:
project - should not be null


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