Package psidev.psi.mi.jami.tab.extension
Class MitabAnnotation
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultAnnotation
-
- psidev.psi.mi.jami.tab.extension.MitabAnnotation
-
- All Implemented Interfaces:
FileSourceContext
,Annotation
public class MitabAnnotation extends DefaultAnnotation implements FileSourceContext
Extension of Annotation for Mitab with a sourceLocator- Since:
11/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
Fields inherited from interface psidev.psi.mi.jami.model.Annotation
AUTHOR, AUTHOR_MI, BIPARTITE_EXPANSION, BIPARTITE_EXPANSION_MI, CAUTION, CAUTION_MI, CLUSTERED, CLUSTERED_MI, COMMENT, COMMENT_MI, COMPLEX_EXPANSION, COMPLEX_EXPANSION_MI, COMPLEX_PROPERTIES, COMPLEX_PROPERTIES_MI, CONTACT_EMAIL, CONTACT_EMAIL_MI, CURATION_DEPTH, CURATION_DEPTH_MI, EVIDENCE, EVIDENCE_MI, EXP_MODIFICATION, EXP_MODIFICATION_MI, EXPERIMENTALLY_OBSERVED, EXPERIMENTALLY_OBSERVED_MI, FIGURE_LEGEND, FIGURE_LEGEND_MI, FULL_COVERAGE, FULL_COVERAGE_MI, IMEX_CURATION, IMEX_CURATION_MI, IMPORTED, IMPORTED_MI, INTERNALLY_CURATED, INTERNALLY_CURATED_MI, MATRIX_EXPANSION, MATRIX_EXPANSION_MI, MIMIX_CURATION, MIMIX_CURATION_MI, NUCLEIC_ACID_PROTEIN, NUCLEIC_ACID_PROTEIN_MI, PARTIAL_COVERAGE, PARTIAL_COVERAGE_MI, POSTAL_ADDRESS, PREDICTED, PREDICTED_MI, PROTEIN_PROTEIN, PROTEIN_PROTEIN_MI, PUBLICATION_JOURNAL, PUBLICATION_JOURNAL_MI, PUBLICATION_TITLE, PUBLICATION_TITLE_MI, PUBLICATION_YEAR, PUBLICATION_YEAR_MI, RAPID_CURATION, RAPID_CURATION_MI, SEARCH_URL, SEARCH_URL_MI, SMALL_MOLECULE_PROTEIN, SMALL_MOLECULE_PROTEIN_MI, SPOKE_EXPANSION, SPOKE_EXPANSION_MI, TEXT_MINING, TEXT_MINING_MI, URL, URL_MI, VALIDATION_REGEXP, VALIDATION_REGEXP_MI
-
-
Constructor Summary
Constructors Constructor Description MitabAnnotation(String topic, String value)
Constructor for MitabAnnotation.MitabAnnotation(CvTerm topic)
Constructor for MitabAnnotation.MitabAnnotation(CvTerm topic, String value)
Constructor for MitabAnnotation.MitabAnnotation(CvTerm topic, String value, FileSourceLocator sourceLocator)
Constructor for MitabAnnotation.MitabAnnotation(CvTerm topic, FileSourceLocator sourceLocator)
Constructor for MitabAnnotation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSourceLocator
getSourceLocator()
Getter for the fieldsourceLocator
.void
setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locatorString
toString()
-
-
-
Constructor Detail
-
MitabAnnotation
public MitabAnnotation(CvTerm topic)
Constructor for MitabAnnotation.
- Parameters:
topic
- aCvTerm
object.
-
MitabAnnotation
public MitabAnnotation(CvTerm topic, String value)
Constructor for MitabAnnotation.
-
MitabAnnotation
public MitabAnnotation(String topic, String value)
Constructor for MitabAnnotation.
-
MitabAnnotation
public MitabAnnotation(CvTerm topic, FileSourceLocator sourceLocator)
Constructor for MitabAnnotation.
- Parameters:
topic
- aCvTerm
object.sourceLocator
- aFileSourceLocator
object.
-
MitabAnnotation
public MitabAnnotation(CvTerm topic, String value, FileSourceLocator sourceLocator)
Constructor for MitabAnnotation.
- Parameters:
topic
- aCvTerm
object.value
- aString
object.sourceLocator
- aFileSourceLocator
object.
-
-
Method Detail
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator
.- Specified by:
getSourceLocator
in interfaceFileSourceContext
- Returns:
- a
FileSourceLocator
object.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locator- Specified by:
setSourceLocator
in interfaceFileSourceContext
- Parameters:
sourceLocator
- : the file locator
-
toString
public String toString()
- Specified by:
toString
in interfaceFileSourceContext
- Overrides:
toString
in classDefaultAnnotation
- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
-