Class AbstractXmlCvTerm
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml254.AbstractXmlCvTerm
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable
,FileSourceContext
,CvTerm
- Direct Known Subclasses:
AbstractXmlSource
,XmlCvTerm
,XmlOpenCvTerm
public abstract class AbstractXmlCvTerm extends Object implements CvTerm, FileSourceContext, com.sun.xml.bind.Locatable
Abstract cv term- Since:
19/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractXmlCvTerm.JAXBAttributeWrapper
-
Constructor Summary
Constructors Constructor Description AbstractXmlCvTerm()
Constructor for AbstractXmlCvTerm.AbstractXmlCvTerm(String shortName)
Constructor for AbstractXmlCvTerm.AbstractXmlCvTerm(String shortName, String miIdentifier)
Constructor for AbstractXmlCvTerm.AbstractXmlCvTerm(String shortName, String fullName, String miIdentifier)
Constructor for AbstractXmlCvTerm.AbstractXmlCvTerm(String shortName, String fullName, Xref ontologyId)
Constructor for AbstractXmlCvTerm.AbstractXmlCvTerm(String shortName, Xref ontologyId)
Constructor for AbstractXmlCvTerm.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Collection<Annotation>
getAnnotations()
getAnnotations.protected AbstractXmlCvTerm.JAXBAttributeWrapper
getAttributeWrapper()
getAttributeWrapper.String
getFullName()
getFullName.Collection<Xref>
getIdentifiers()
getIdentifiers.String
getMIIdentifier()
getMIIdentifier.String
getMODIdentifier()
getMODIdentifier.protected NamesContainer
getNamesContainer()
Getter for the fieldnamesContainer
.String
getPARIdentifier()
getPARIdentifier.String
getShortName()
getShortName.FileSourceLocator
getSourceLocator()
Getter for the fieldsourceLocator
.Collection<Alias>
getSynonyms()
getSynonyms.protected CvTermXrefContainer
getXrefContainer()
Getter for the fieldxrefContainer
.Collection<Xref>
getXrefs()
getXrefs.int
hashCode()
protected void
initialiseAnnotationWrapper()
initialiseAnnotationWrapper.protected void
setAttributeWrapper(AbstractXmlCvTerm.JAXBAttributeWrapper jaxbAttributeWrapper)
setAttributeWrapper.void
setFullName(String name)
Set the full namevoid
setJAXBNames(NamesContainer value)
setJAXBNames.void
setJAXBXref(CvTermXrefContainer value)
setJAXBXref.void
setMIIdentifier(String mi)
Sets the PSI-MI identifier.void
setMODIdentifier(String mod)
Sets the PSI-MOD identifier.void
setPARIdentifier(String par)
Sets the PSI-PAR identifier.void
setShortName(String name)
Set the short namevoid
setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locatorLocator
sourceLocation()
String
toString()
toString
-
-
-
Constructor Detail
-
AbstractXmlCvTerm
public AbstractXmlCvTerm()
Constructor for AbstractXmlCvTerm.
-
AbstractXmlCvTerm
public AbstractXmlCvTerm(String shortName)
Constructor for AbstractXmlCvTerm.
- Parameters:
shortName
- aString
object.
-
AbstractXmlCvTerm
public AbstractXmlCvTerm(String shortName, String miIdentifier)
Constructor for AbstractXmlCvTerm.
-
AbstractXmlCvTerm
public AbstractXmlCvTerm(String shortName, String fullName, String miIdentifier)
Constructor for AbstractXmlCvTerm.
-
AbstractXmlCvTerm
public AbstractXmlCvTerm(String shortName, Xref ontologyId)
Constructor for AbstractXmlCvTerm.
-
-
Method Detail
-
getShortName
public String getShortName()
getShortName.
- Specified by:
getShortName
in interfaceCvTerm
- Returns:
- a
String
object.
-
setShortName
public void setShortName(String name)
Set the short name- Specified by:
setShortName
in interfaceCvTerm
- Parameters:
name
- : short name
-
getFullName
public String getFullName()
getFullName.
- Specified by:
getFullName
in interfaceCvTerm
- Returns:
- a
String
object.
-
setFullName
public void setFullName(String name)
Set the full name- Specified by:
setFullName
in interfaceCvTerm
- Parameters:
name
- : full name
-
getIdentifiers
public Collection<Xref> getIdentifiers()
getIdentifiers.
- Specified by:
getIdentifiers
in interfaceCvTerm
- Returns:
- a
Collection
object.
-
getMIIdentifier
public String getMIIdentifier()
getMIIdentifier.
- Specified by:
getMIIdentifier
in interfaceCvTerm
- Returns:
- a
String
object.
-
getMODIdentifier
public String getMODIdentifier()
getMODIdentifier.
- Specified by:
getMODIdentifier
in interfaceCvTerm
- Returns:
- a
String
object.
-
getPARIdentifier
public String getPARIdentifier()
getPARIdentifier.
- Specified by:
getPARIdentifier
in interfaceCvTerm
- Returns:
- a
String
object.
-
setMIIdentifier
public void setMIIdentifier(String mi)
Sets the PSI-MI identifier. It will remove the previous PSI-MI identifier from the collection of identifiers, and add the new one in the collection of identifiers with qualifier identity. If mi is null, it will remove all the psi-mi identifiers from the collection of identifiers.- Specified by:
setMIIdentifier
in interfaceCvTerm
- Parameters:
mi
- : mi identifier
-
setMODIdentifier
public void setMODIdentifier(String mod)
Sets the PSI-MOD identifier. It will remove the previous PSI-MOD identifier from the collection of xrefs, and add the new one in the collection of identifiers with qualifier identity. If mod is null, it will remove all the psi-mod identifiers from the collection of identifiers.- Specified by:
setMODIdentifier
in interfaceCvTerm
- Parameters:
mod
- : mod identifier
-
setPARIdentifier
public void setPARIdentifier(String par)
Sets the PSI-PAR identifier. It will remove the previous PSI-PAR identifier from the collection of xrefs, and add the new one in the collection of identifiers with qualifier identity. If par is null, it will remove all the psi-par identifiers from the collection of identifiers.- Specified by:
setPARIdentifier
in interfaceCvTerm
- Parameters:
par
- : par identifier
-
getXrefs
public Collection<Xref> getXrefs()
getXrefs.
- Specified by:
getXrefs
in interfaceCvTerm
- Returns:
- a
Collection
object.
-
getSynonyms
public Collection<Alias> getSynonyms()
getSynonyms.
- Specified by:
getSynonyms
in interfaceCvTerm
- Returns:
- a
Collection
object.
-
getAnnotations
public Collection<Annotation> getAnnotations()
getAnnotations.
- Specified by:
getAnnotations
in interfaceCvTerm
- Returns:
- a
Collection
object.
-
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
-
initialiseAnnotationWrapper
protected void initialiseAnnotationWrapper()
initialiseAnnotationWrapper.
-
getXrefContainer
protected CvTermXrefContainer getXrefContainer()
Getter for the field
xrefContainer
.- Returns:
- a
CvTermXrefContainer
object.
-
setJAXBXref
public void setJAXBXref(CvTermXrefContainer value)
setJAXBXref.
- Parameters:
value
- aCvTermXrefContainer
object.
-
getNamesContainer
protected NamesContainer getNamesContainer()
Getter for the field
namesContainer
.- Returns:
- a
NamesContainer
object.
-
setJAXBNames
public void setJAXBNames(NamesContainer value)
setJAXBNames.
- Parameters:
value
- aNamesContainer
object.
-
getAttributeWrapper
protected AbstractXmlCvTerm.JAXBAttributeWrapper getAttributeWrapper()
getAttributeWrapper.
- Returns:
- a
AbstractXmlCvTerm.JAXBAttributeWrapper
object.
-
setAttributeWrapper
protected void setAttributeWrapper(AbstractXmlCvTerm.JAXBAttributeWrapper jaxbAttributeWrapper)
setAttributeWrapper.
- Parameters:
jaxbAttributeWrapper
- aAbstractXmlCvTerm.JAXBAttributeWrapper
object.
-
-