public interface ComparableTriple extends Triple, Comparable, Changeable
Triple.ImplAnnotatable.AnnotationForwarder| Modifier and Type | Field and Description |
|---|---|
static ChangeType |
DESCRIPTOR |
ANNOTATION| Modifier and Type | Method and Description |
|---|---|
void |
addDescriptor(ComparableTerm desc)
Adds a descriptor.
|
Set |
getDescriptors()
Returns all descriptors.
|
boolean |
removeDescriptor(ComparableTerm desc)
Removes a descriptor.
|
void |
setDescriptors(Set descriptors)
Clears the current set of descriptors and replaces it with the content of
the set passed.
|
equals, getObject, getPredicate, getSubject, hashCodeaddSynonym, getDescription, getName, getOntology, getSynonyms, removeSynonym, setDescriptiongetAnnotationaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenercompareTostatic final ChangeType DESCRIPTOR
void addDescriptor(ComparableTerm desc) throws AlreadyExistsException, IllegalArgumentException, ChangeVetoException
desc - the descriptor to add.ChangeVetoException - in case of objections.AlreadyExistsException - if the descriptor already exists.IllegalArgumentException - if the descriptor is missing.boolean removeDescriptor(ComparableTerm desc) throws IllegalArgumentException, ChangeVetoException
desc - the descriptor to remove.ChangeVetoException - in case of objections.IllegalArgumentException - if the descriptor is missing.void setDescriptors(Set descriptors) throws ChangeVetoException
descriptors - the set of ComparableTerm descriptors to add.ChangeVetoException - in case of objections.ComparableTermSet getDescriptors()
ComparableTermCopyright © 2020 BioJava. All rights reserved.