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 booleanequals(Object object)Returnstrueif the argument is an Describable instance and all identifiers for this entity equal the identifiers of the argument entity.StringgetDescription()Obtain a human-readable description of the objectLonggetId()StringgetName()Obtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.inthashCode()Returns a hash code based on this entity's identifiers.voidsetDescription(String description)voidsetId(Long id)voidsetName(String name)StringtoString()
-
-
-
Method Detail
-
hashCode
public int hashCode()
Returns a hash code based on this entity's identifiers.
-
equals
public boolean equals(Object object)
Returnstrueif the argument is an Describable instance and all identifiers for this entity equal the identifiers of the argument entity. Returnsfalseotherwise.
-
toString
public String toString()
- Overrides:
toStringin classObject- See Also:
toString()
-
getDescription
public String getDescription()
Description copied from interface:DescribableObtain a human-readable description of the object- Specified by:
getDescriptionin interfaceDescribable
-
setDescription
public void setDescription(String description)
-
getId
public Long getId()
- Specified by:
getIdin interfaceIdentifiable
-
setId
public void setId(Long id)
-
getName
public String getName()
Description copied from interface:DescribableObtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.- Specified by:
getNamein interfaceDescribable
-
setName
public void setName(String name)
-
-