org.squashtest.csp.tm.domain.library
Class GenericLibraryNode
java.lang.Object
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
| Methods inherited from interface org.squashtest.csp.core.domain.Identified |
getId |
GenericLibraryNode
public GenericLibraryNode()
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.