org.squashtest.csp.tm.domain.resource
Class Resource

java.lang.Object
  extended by org.squashtest.csp.tm.domain.resource.Resource
All Implemented Interfaces:
org.squashtest.csp.core.domain.Identified, AttachmentHolder
Direct Known Subclasses:
RequirementVersion, SimpleResource

@Entity
public abstract class Resource
extends Object
implements AttachmentHolder, org.squashtest.csp.core.domain.Identified

A Resource is the actual "things" which are organized in a library tree.

Author:
Gregory Fouquet

Constructor Summary
Resource()
           
 
Method Summary
 boolean equals(Object obj)
           
 AttachmentList getAttachmentList()
          Should return the container for this object's attachments.
 String getDescription()
           
 Long getId()
           
 String getName()
           
 int hashCode()
           
 void setDescription(String description)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resource

public Resource()
Method Detail

getId

public Long getId()
Specified by:
getId in interface org.squashtest.csp.core.domain.Identified

getName

public String getName()

setName

public void setName(String name)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

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.
See Also:
AttachmentHolder.getAttachmentList()

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.