Skip to content
Snippets Groups Projects
Commit 54b98b23 authored by tjc's avatar tjc
Browse files

implement getCvControledCurationNames

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@6542 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent cb7c6701
No related branches found
No related tags found
No related merge requests found
......@@ -127,6 +127,9 @@ public class DatabaseDocument extends Document
public static String EXONMODEL = "exon-model";
/** list of controlled_curation CV names */
private static Vector cvControledCuratioNames;
// controlled vocabulary
/** controlled_curation controlled vocabulary */
public static String CONTROLLED_CURATION_TAG_CVNAME =
......@@ -1741,6 +1744,29 @@ public class DatabaseDocument extends Document
return cvterm_match;
}
/**
* Get a list of the CV names
* @return
*/
public static List getCvControledCurationNames()
{
if(cvControledCuratioNames != null)
return cvControledCuratioNames;
cvControledCuratioNames = new Vector();
final Enumeration enum_cvterm = cvterms.elements();
while(enum_cvterm.hasMoreElements())
{
final CvTerm cvTerm = (CvTerm)enum_cvterm.nextElement();
final String cvNameStr = cvTerm.getCv().getName();
if(cvNameStr.startsWith(DatabaseDocument.CONTROLLED_CURATION_TAG_CVNAME) &&
!cvControledCuratioNames.contains(cvNameStr))
cvControledCuratioNames.add(cvNameStr);
}
return cvControledCuratioNames;
}
/**
* Look up synonym type names e.g. synonym, systematic_id.
* @return the synonym tag names
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment