|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.utils.AbstractChangeable
org.biojavax.bio.seq.SimpleRichFeatureRelationship
public class SimpleRichFeatureRelationship
Represents a relationship between two features that is described by a term.
| Field Summary |
|---|
| Fields inherited from interface org.biojavax.bio.seq.RichFeatureRelationship |
|---|
RANK |
| Constructor Summary | |
|---|---|
protected |
SimpleRichFeatureRelationship()
|
|
SimpleRichFeatureRelationship(RichFeature object,
RichFeature subject,
ComparableTerm term,
int rank)
Creates a new instance of SimpleRichFeatureRelationship. |
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Relations are compared first by rank, then object, subject, then finally term. |
boolean |
equals(Object obj)
Relations are equal if their objects, subjects and terms are equal. |
static ComparableTerm |
getContainsTerm()
Gets the default CONTAINS term used for defining the relationship between features. |
RichFeature |
getObject()
Returns the object of this relationship (ie. |
int |
getRank()
Gets the rank of this relationship. |
RichFeature |
getSubject()
Gets the feature that this relationship refers to. |
ComparableTerm |
getTerm()
Gets the term that describes this relationship. |
int |
hashCode()
|
void |
setRank(int rank)
Sets the rank of this relationship. |
String |
toString()
Form: "(#rank) term(object,subject)" |
| Methods inherited from class org.biojava.utils.AbstractChangeable |
|---|
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.biojava.utils.Changeable |
|---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
| Constructor Detail |
|---|
public SimpleRichFeatureRelationship(RichFeature object,
RichFeature subject,
ComparableTerm term,
int rank)
subject - The subject RichFeature.term - The relationship term.rank - the rank of the relationship.protected SimpleRichFeatureRelationship()
| Method Detail |
|---|
public static ComparableTerm getContainsTerm()
public void setRank(int rank)
throws ChangeVetoException
setRank in interface RichFeatureRelationshiprank - Value of property rank.
ChangeVetoException - if the rank is untasty.public int getRank()
getRank in interface RichFeatureRelationshippublic RichFeature getObject()
getObject in interface RichFeatureRelationshippublic RichFeature getSubject()
getSubject in interface RichFeatureRelationshippublic ComparableTerm getTerm()
getTerm in interface RichFeatureRelationshippublic int compareTo(Object o)
compareTo in interface Comparablepublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||