Class AbstractXmlAnnotation
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml300.AbstractXmlAnnotation
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable
,FileSourceContext
,Annotation
- Direct Known Subclasses:
DefaultXmlAnnotation
,XmlAnnotation
public abstract class AbstractXmlAnnotation extends Object implements Annotation, FileSourceContext, com.sun.xml.bind.Locatable
Xml implementation of an Annotation The JAXB binding is designed to be read-only and is not designed for writing- Since:
18/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
Fields Modifier and Type Field Description protected Locator
locator
-
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 AbstractXmlAnnotation()
Constructor for AbstractXmlAnnotation.AbstractXmlAnnotation(CvTerm topic)
Constructor for AbstractXmlAnnotation.AbstractXmlAnnotation(CvTerm topic, String value)
Constructor for AbstractXmlAnnotation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
FileSourceLocator
getSourceLocator()
Getter for the fieldsourceLocator
.CvTerm
getTopic()
Getter for the fieldtopic
.String
getValue()
Getter for the fieldvalue
.int
hashCode()
void
setJAXBName(String value)
Sets the value of the name property.void
setJAXBNameAc(String value)
Sets the value of the nameAc property.void
setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locatorvoid
setValue(String value)
Set the value of this annotation.Locator
sourceLocation()
String
toString()
toString
-
-
-
Field Detail
-
locator
protected Locator locator
-
-
Method Detail
-
getTopic
public CvTerm getTopic()
Getter for the field
topic
.- Specified by:
getTopic
in interfaceAnnotation
- Returns:
- a
CvTerm
object.
-
getValue
public String getValue()
Getter for the field
value
.- Specified by:
getValue
in interfaceAnnotation
- Returns:
- a
String
object.
-
setValue
public void setValue(String value)
Set the value of this annotation.- Specified by:
setValue
in interfaceAnnotation
- Parameters:
value
- : the value
-
setJAXBName
public void setJAXBName(String value)
Sets the value of the name property.- Parameters:
value
- allowed object isString
-
setJAXBNameAc
public void setJAXBNameAc(String value)
Sets the value of the nameAc property.- Parameters:
value
- allowed object isString
-
sourceLocation
public Locator sourceLocation()
- Specified by:
sourceLocation
in interfacecom.sun.xml.bind.Locatable
-
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()
toString
- Specified by:
toString
in interfaceFileSourceContext
- Overrides:
toString
in classObject
- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
-