org.squashtest.csp.tm.domain.library
Class GenericLibraryNode

java.lang.Object
  extended by org.squashtest.csp.tm.domain.library.GenericLibraryNode
All Implemented Interfaces:
org.squashtest.csp.core.domain.Identified, AttachmentHolder, Copiable, LibraryNode, TreeNode, ProjectResource<Project>
Direct Known Subclasses:
CampaignLibraryNode, TestCaseLibraryNode

@MappedSuperclass
public abstract class GenericLibraryNode
extends Object
implements LibraryNode, AttachmentHolder

Generic superclass for library nodes.

Author:
Gregory Fouquet

Constructor Summary
GenericLibraryNode()
           
 
Method Summary
 boolean equals(Object obj)
           
 AttachmentList getAttachmentList()
          Should return the container for this object's attachments.
 String getDescription()
           
 String getName()
           
 Project getProject()
           
 int hashCode()
           
 void notifyAssociatedWithProject(Project project)
          Notifies this object it is now a resource of the given project.
 void setDescription(String description)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.squashtest.csp.tm.domain.library.Copiable
createCopy
 
Methods inherited from interface org.squashtest.csp.tm.domain.project.ProjectResource
getLibrary
 
Methods inherited from interface org.squashtest.csp.core.domain.Identified
getId
 
Methods inherited from interface org.squashtest.csp.tm.domain.library.TreeNode
accept
 

Constructor Detail

GenericLibraryNode

public GenericLibraryNode()
Method Detail

getProject

public Project getProject()
Specified by:
getProject in interface ProjectResource<Project>
Returns:
The project which this resource belongs to. Should never be null.

setName

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

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface LibraryNode
Parameters:
description - the new node description

getName

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

getDescription

public String getDescription()
Specified by:
getDescription in interface LibraryNode

notifyAssociatedWithProject

public void notifyAssociatedWithProject(Project project)
Notifies this object it is now a resource of the given project.

Specified by:
notifyAssociatedWithProject in interface ProjectResource<Project>
Parameters:
project -

getAttachmentList

public AttachmentList getAttachmentList()
Description copied from interface: AttachmentHolder
Should return the container for this object's attachments. Should never return null.

Specified by:
getAttachmentList in interface AttachmentHolder
Returns:
the AttachmentList of this object.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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