Package ubic.gemma.model.common
Class AbstractDescribable
- java.lang.Object
-
- ubic.gemma.model.common.AbstractIdentifiable
-
- ubic.gemma.model.common.AbstractDescribable
-
- All Implemented Interfaces:
Describable
,Identifiable
- Direct Known Subclasses:
AbstractAuditable
,Analysis
,BibliographicReference
,BioAssay
,BioMaterial
,BioSequence
,BlacklistedEntity
,Characteristic
,ChromosomeFeature
,CompositeSequence
,Compound
,Contact
,ExperimentalDesign
,ExperimentalFactor
,ExternalDatabase
,Protocol
,QuantitationType
,Reporter
,Treatment
public abstract class AbstractDescribable extends AbstractIdentifiable implements Describable
-
-
Constructor Summary
Constructors Constructor Description AbstractDescribable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Obtain a human-readable description of the objectString
getName()
Obtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.int
hashCode()
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.void
setDescription(String description)
void
setName(String name)
String
toString()
-
Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
equals, getId, setId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ubic.gemma.model.common.Identifiable
getId
-
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:Describable
Obtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.- Specified by:
getName
in interfaceDescribable
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
Description copied from interface:Describable
Obtain a human-readable description of the object- Specified by:
getDescription
in interfaceDescribable
-
setDescription
public void setDescription(String description)
-
hashCode
public int hashCode()
Description copied from class:AbstractIdentifiable
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.- Specified by:
hashCode
in classAbstractIdentifiable
-
toString
public String toString()
- Overrides:
toString
in classAbstractIdentifiable
-
-