|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Note
Note is a generic class intended to hold a term describing the note, a value to associate with that term, and a rank. It is a generic representation of the various qualifier_value tables in BioSQL. It is used inside RichAnnotation objects to represent annotations.
RichAnnotation| Field Summary | |
|---|---|
static ChangeType |
RANK
|
static ChangeType |
TERM
|
static ChangeType |
VALUE
|
| Method Summary | |
|---|---|
int |
getRank()
Gets the rank that defines this note. |
ComparableTerm |
getTerm()
Gets the term that defines this note. |
String |
getValue()
Gets the value that defines this note. |
void |
setRank(int value)
Sets the rank for this note. |
void |
setTerm(ComparableTerm term)
Sets the term for this note. |
void |
setValue(String value)
Sets the value for this note, or null for no value. |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface org.biojava.utils.Changeable |
|---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
| Field Detail |
|---|
static final ChangeType TERM
static final ChangeType RANK
static final ChangeType VALUE
| Method Detail |
|---|
ComparableTerm getTerm()
void setTerm(ComparableTerm term)
throws ChangeVetoException
term - the term to use.
ChangeVetoException - if it doesn't like the term.String getValue()
void setValue(String value)
throws ChangeVetoException
value - the value to use.
ChangeVetoException - if it doesn't like the value.int getRank()
void setRank(int value)
throws ChangeVetoException
value - the rank to use.
ChangeVetoException - if it doesn't like the rank.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||