Package org.biojavax.bio.seq
Interface RichFeatureRelationshipHolder
- All Known Subinterfaces:
RichFeature
- All Known Implementing Classes:
SimpleRichFeature
public interface RichFeatureRelationshipHolder
Holds feature relationships.
- Since:
- 1.5
- Author:
- Richard Holland
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFeatureRelationship
(RichFeatureRelationship relationship) Adds a relationship to this feature holder.Returns the set of relationships held in this feature holder.void
removeFeatureRelationship
(RichFeatureRelationship relationship) Removes a relationship from this feature holder.void
setFeatureRelationshipSet
(Set<RichFeatureRelationship> relationships) Clears the relations from this feature holder and replaces them with a new set.
-
Method Details
-
addFeatureRelationship
Adds a relationship to this feature holder.- Parameters:
relationship
- the relationship to add.- Throws:
ChangeVetoException
- if the relationship is unacceptable.
-
removeFeatureRelationship
Removes a relationship from this feature holder.- Parameters:
relationship
- the relationship to remove.- Throws:
ChangeVetoException
- if it cannot be removed.
-
getFeatureRelationshipSet
Returns the set of relationships held in this feature holder.- Returns:
- a set of RichFeatureRelationship objects.
-
setFeatureRelationshipSet
void setFeatureRelationshipSet(Set<RichFeatureRelationship> relationships) throws ChangeVetoException Clears the relations from this feature holder and replaces them with a new set.- Parameters:
relationships
- the new set of features this holder should have. The set must contain only RichFeatureRelationship objects.- Throws:
ChangeVetoException
- if the new set could not be installed.
-