org.biojavax.ontology
Interface ComparableTriple
- All Superinterfaces:
- Annotatable, Changeable, Comparable, Term, Triple
- All Known Implementing Classes:
- SimpleComparableTriple
public interface ComparableTriple
- extends Triple, Comparable, Changeable
Comparable triples, obviously. Allows them to have descriptors.
- Since:
- 1.5
- Author:
- Richard Holland
Nested classes/interfaces inherited from interface org.biojava.ontology.Triple |
Triple.Impl |
Fields inherited from interface org.biojava.ontology.Term |
ONTOLOGY |
DESCRIPTOR
static final ChangeType DESCRIPTOR
addDescriptor
void addDescriptor(ComparableTerm desc)
throws AlreadyExistsException,
IllegalArgumentException,
ChangeVetoException
- Adds a descriptor. Must not be null.
- Parameters:
desc
- the descriptor to add.
- Throws:
ChangeVetoException
- in case of objections.
AlreadyExistsException
- if the descriptor already exists.
IllegalArgumentException
- if the descriptor is missing.
removeDescriptor
boolean removeDescriptor(ComparableTerm desc)
throws IllegalArgumentException,
ChangeVetoException
- Removes a descriptor. Must not be null.
- Parameters:
desc
- the descriptor to remove.
- Returns:
- True if it did it, false if the descriptor did not exist.
- Throws:
ChangeVetoException
- in case of objections.
IllegalArgumentException
- if the descriptor is missing.
setDescriptors
void setDescriptors(Set descriptors)
throws ChangeVetoException
- Clears the current set of descriptors and replaces it with the content of
the set passed.
- Parameters:
descriptors
- the set of ComparableTerm descriptors to add.
- Throws:
ChangeVetoException
- in case of objections.- See Also:
ComparableTerm
getDescriptors
Set getDescriptors()
- Returns all descriptors.
- Returns:
- a set of all ComparableTerm descriptors, possibly empty.
- See Also:
ComparableTerm