Javadoc
W H E R E I T I S U S E D
-----------------------------------
In the SanityCheck
In the editor to display only the relevant CvTopic in the Annotation section for each Editor page
H O W T O U S E I T
----------------------------
If you want to have the List of all the CvTopic you can use to annotate a Protein for exemple just do like that
AnnotationSetion annotationSection = new annotationSection();
List usableTopicsForProtein = annotationSetion.getUsableTopics(EditorMenuFactory.PROTEIN)
H O W I T W O R K S
---------------------------
For each cvTopic
search for the annotation having its CvTopic equal to used-in-class CvTopic
take the description field which is a string containing the classes where this cvTopic can be used.
It is not really classes but more editor page names.
ex : the cvTopic having shortlabel = to "function" can be used to annotate a Protein in the Protein Editor
and an Interaction in the Interaction Editor. So the field description of the annotation used-in-class
will contain the string : "Interaction, Protein"
the description is split using the coma separtor and all terms are put in an array
ex : In our previous example here is what would happen :
classes[0] ====> Interaction
classes[1] ====> Protein
for each term of the array (classes[]), add in the list corresponding to this term the topic's shortlabel
ex :In our previous example here is what would happen :
In the map annotationSection ask for the list linked to the key "Interaction" add the term "function"
Then, ask for the list linked to the key "Protein" and add the term "function"