Package ubic.gemma.model.common
Class AbstractDescribable
- java.lang.Object
-
- ubic.gemma.model.common.AbstractDescribable
-
- All Implemented Interfaces:
Describable
,Identifiable
- Direct Known Subclasses:
AbstractAuditable
,Analysis
,BibliographicReference
,BioAssay
,BioAssayDimension
,BioMaterial
,BioSequence
,BlacklistedEntity
,Characteristic
,ChromosomeFeature
,CompositeSequence
,Compound
,Contact
,ExperimentalDesign
,ExperimentalFactor
,ExternalDatabase
,Protocol
,QuantitationType
,Reporter
,Treatment
public abstract class AbstractDescribable extends Object implements Describable
-
-
Constructor Summary
Constructors Constructor Description AbstractDescribable()
No-arg constructor added to satisfy javabean contract
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Returnstrue
if the argument is an Describable instance and all identifiers for this entity equal the identifiers of the argument entity.String
getDescription()
Obtain a human-readable description of the objectLong
getId()
String
getName()
Obtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.int
hashCode()
Returns a hash code based on this entity's identifiers.void
setDescription(String description)
void
setId(Long id)
void
setName(String name)
String
toString()
-
-
-
Method Detail
-
hashCode
public int hashCode()
Returns a hash code based on this entity's identifiers.
-
equals
public boolean equals(Object object)
Returnstrue
if the argument is an Describable instance and all identifiers for this entity equal the identifiers of the argument entity. Returnsfalse
otherwise.
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
toString()
-
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)
-
getId
public Long getId()
- Specified by:
getId
in interfaceIdentifiable
-
setId
public void setId(Long id)
-
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)
-
-