|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.representation.Annotations
Default implementation of BiologicalAnnotations. Stores the annotations attached to a sequence.
| Constructor Summary | |
Annotations()
|
|
| Method Summary | |
void |
addAnnotation(BiologicalAnnotation a)
Adds an annotation to this list. |
java.lang.Object |
findAnnotation(java.lang.Class annotation_class)
Finds and return an annotation according to its class. |
java.lang.Object |
findAnnotation(java.lang.Class annotation_class,
int seq_pos)
Finds and return an annotation about a residue, according to its class. |
BiologicalAnnotation[] |
getAnnotations()
Returns these annotations as an array of BiologicalAnnotation. |
java.net.URL |
getResidueURL(int position)
Returns the URL anchored to the residue at the index position. |
static void |
main(java.lang.String[] args)
Tests various features of this class. |
boolean |
removeAnnotation(BiologicalAnnotation a)
Removes an annotation from this list. |
java.lang.String |
toString()
Prints the content of this annotation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Annotations()
| Method Detail |
public void addAnnotation(BiologicalAnnotation a)
addAnnotation in interface BiologicalAnnotationspublic boolean removeAnnotation(BiologicalAnnotation a)
removeAnnotation in interface BiologicalAnnotationspublic BiologicalAnnotation[] getAnnotations()
getAnnotations in interface BiologicalAnnotationspublic java.net.URL getResidueURL(int position)
getResidueURL in interface BiologicalAnnotationspublic java.lang.Object findAnnotation(java.lang.Class annotation_class)
findAnnotation in interface BiologicalAnnotations
public java.lang.Object findAnnotation(java.lang.Class annotation_class,
int seq_pos)
annotation_class - The class of the annotation to search for.seq_pos - The position on the sequence that an annotation must describe to be returned.
public java.lang.String toString()
toString in interface BiologicalAnnotationstoString in class java.lang.Objectpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||