|
TissueInfo API 20091124110011 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.mssm.crover.representation.Annotations
public class 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. |
Object |
findAnnotation(Class annotation_class)
Finds and return an annotation according to its class. |
Object |
findAnnotation(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. |
URL |
getResidueURL(int position)
Returns the URL anchored to the residue at the index position. |
static void |
main(String[] args)
Tests various features of this class. |
boolean |
removeAnnotation(BiologicalAnnotation a)
Removes an annotation from this list. |
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 BiologicalAnnotationsa - the annotation to be removed.
public BiologicalAnnotation[] getAnnotations()
getAnnotations in interface BiologicalAnnotationspublic URL getResidueURL(int position)
getResidueURL in interface BiologicalAnnotationspublic Object findAnnotation(Class annotation_class)
findAnnotation in interface BiologicalAnnotations
public Object findAnnotation(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 String toString()
toString in interface BiologicalAnnotationstoString in class Objectpublic static void main(String[] args)
|
TissueInfo API 20091124110011 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||