|
||||||||||
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. |
Integer |
getId()
Gets the Hibernate ID. |
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 |
setId(Integer id)
Sets the Hibernate ID. |
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 RichFeatureRelationship
rank
- Value of property rank.
ChangeVetoException
- if the rank is untasty.public int getRank()
getRank
in interface RichFeatureRelationship
public RichFeature getObject()
getObject
in interface RichFeatureRelationship
public RichFeature getSubject()
getSubject
in interface RichFeatureRelationship
public ComparableTerm getTerm()
getTerm
in interface RichFeatureRelationship
public int compareTo(Object o)
compareTo
in interface Comparable
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public Integer getId()
public void setId(Integer id)
id
- the Hibernate ID, if using Hibernate.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |