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, LibraryNode, ProjectResource
Direct Known Subclasses:
CampaignLibraryNode, TestCaseLibraryNode

@MappedSuperclass
public abstract class GenericLibraryNode
extends Object
implements LibraryNode

Generic superclass for library nodes.

Author:
Gregory Fouquet

Constructor Summary
GenericLibraryNode()
           
 
Method Summary
 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, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.squashtest.csp.tm.domain.library.LibraryNode
createPastableCopy
 
Methods inherited from interface org.squashtest.csp.core.domain.Identified
getId
 

Constructor Detail

GenericLibraryNode

public GenericLibraryNode()
Method Detail

getProject

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

setName

public void setName(String name)
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 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
Parameters:
project -

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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