public interface ComparableTriple extends Triple, Comparable, Changeable
Triple.Impl
Annotatable.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, hashCode
addSynonym, getDescription, getName, getOntology, getSynonyms, removeSynonym, setDescription
getAnnotation
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
compareTo
static 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.ComparableTerm
Set getDescriptors()
ComparableTerm
Copyright © 2014 BioJava. All rights reserved.