public class SimpleComparableTerm extends AbstractChangeable implements ComparableTerm
Annotatable.AnnotationForwarderDESCRIPTION, IDENTIFIER, OBSOLETE, RANKEDCROSSREFANNOTATION| Modifier | Constructor and Description |
|---|---|
protected |
SimpleComparableTerm() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRankedCrossRef(RankedCrossRef crossref)
Adds a ranked cross reference to the existing set.
|
void |
addSynonym(Object synonym)
Add a synonym for this term.
|
int |
compareTo(Object o)
Terms are sorted by ontology first, then name.
|
boolean |
equals(Object obj)
Two terms are equal if they are in the same ontology and
share the same name.
|
Annotation |
getAnnotation()
Should return the associated annotation object.
|
String |
getDescription()
Return a human-readable description of this term, or the empty string if
none is available.
|
Integer |
getId()
Gets the Hibernate ID.
|
String |
getIdentifier()
Returns the (optional) identifier associated with this term.
|
String |
getName()
Return the name of this term.
|
Boolean |
getObsolete()
Checks to see if this term is obsolete.
|
Ontology |
getOntology()
Return the ontology in which this term exists.
|
Set |
getRankedCrossRefs()
Returns the set of all ranked cross references associated with an object.
|
Object[] |
getSynonyms()
Return the synonyms for this term.
|
int |
hashCode() |
void |
removeRankedCrossRef(RankedCrossRef crossref)
Removes a ranked cross reference from the existing set.
|
void |
removeSynonym(Object synonym)
Remove a synonym for this term.
|
void |
setDescription(String description)
Sets the description associated with this term.
|
void |
setId(Integer id)
Sets the Hibernate ID.
|
void |
setIdentifier(String identifier)
Sets the (optional) identifier associated with this term.
|
void |
setObsolete(Boolean obsolete)
Sets the obsolescence flag associated with this term.
|
void |
setRankedCrossRefs(Set rankedcrossrefs)
Sets the ranked cross references associated with an object.
|
String |
toString()
Form: "ontology:name [obsolete]" where [obsolete] is optional
|
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerprotected SimpleComparableTerm()
public boolean equals(Object obj)
public int compareTo(Object o)
compareTo in interface Comparablepublic void addSynonym(Object synonym)
addSynonym in interface Termsynonym - the synonympublic void removeSynonym(Object synonym)
removeSynonym in interface Termpublic Object[] getSynonyms()
getSynonyms in interface Termpublic Set getRankedCrossRefs()
getRankedCrossRefs in interface RankedCrossRefablepublic void setRankedCrossRefs(Set rankedcrossrefs) throws ChangeVetoException
setRankedCrossRefs in interface RankedCrossRefablerankedcrossrefs - a set of RankedCrossRef objects.ChangeVetoException - if the set was null or any of its contents
were not RankedCrossRef objects.public void addRankedCrossRef(RankedCrossRef crossref) throws ChangeVetoException
addRankedCrossRef in interface RankedCrossRefablecrossref - the ranked cross reference to add.ChangeVetoException - if the parameter is null.public void removeRankedCrossRef(RankedCrossRef crossref) throws ChangeVetoException
removeRankedCrossRef in interface RankedCrossRefablecrossref - the ranked cross reference to remove.ChangeVetoException - if the parameter is null.public String getDescription()
getDescription in interface Termpublic void setDescription(String description) throws ChangeVetoException
setDescription in interface TermsetDescription in interface ComparableTermdescription - the description to give the term. Nullable.ChangeVetoException - if the description is unacceptable.public Ontology getOntology()
getOntology in interface Termpublic Annotation getAnnotation()
getAnnotation in interface Annotatablepublic String getIdentifier()
getIdentifier in interface ComparableTermpublic void setIdentifier(String identifier) throws ChangeVetoException
setIdentifier in interface ComparableTermidentifier - the identifier to give the term. Null will unset it.ChangeVetoException - if the identifier is unacceptable.public Boolean getObsolete()
getObsolete in interface ComparableTermpublic void setObsolete(Boolean obsolete) throws ChangeVetoException
setObsolete in interface ComparableTermobsolete - true if it is obsolete, false if not. Nullable.ChangeVetoException - if the change is unacceptable.public Integer getId()
Copyright © 2014 BioJava. All rights reserved.