Class AbstractXmlCvTerm
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml253.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 classAbstractXmlCvTerm.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 booleanequals(Object o)Collection<Annotation>getAnnotations()getAnnotations.protected AbstractXmlCvTerm.JAXBAttributeWrappergetAttributeWrapper()getAttributeWrapper.StringgetFullName()getFullName.Collection<Xref>getIdentifiers()getIdentifiers.StringgetMIIdentifier()getMIIdentifier.StringgetMODIdentifier()getMODIdentifier.protected NamesContainergetNamesContainer()Getter for the fieldnamesContainer.StringgetPARIdentifier()getPARIdentifier.StringgetShortName()getShortName.FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.Collection<Alias>getSynonyms()getSynonyms.protected CvTermXrefContainergetXrefContainer()Getter for the fieldxrefContainer.Collection<Xref>getXrefs()getXrefs.inthashCode()protected voidinitialiseAnnotationWrapper()initialiseAnnotationWrapper.protected voidsetAttributeWrapper(AbstractXmlCvTerm.JAXBAttributeWrapper jaxbAttributeWrapper)setAttributeWrapper.voidsetFullName(String name)Set the full namevoidsetJAXBNames(NamesContainer value)setJAXBNames.voidsetJAXBXref(CvTermXrefContainer value)setJAXBXref.voidsetMIIdentifier(String mi)Sets the PSI-MI identifier.voidsetMODIdentifier(String mod)Sets the PSI-MOD identifier.voidsetPARIdentifier(String par)Sets the PSI-PAR identifier.voidsetShortName(String name)Set the short namevoidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorLocatorsourceLocation()StringtoString()toString
-
-
-
Constructor Detail
-
AbstractXmlCvTerm
public AbstractXmlCvTerm()
Constructor for AbstractXmlCvTerm.
-
AbstractXmlCvTerm
public AbstractXmlCvTerm(String shortName)
Constructor for AbstractXmlCvTerm.
- Parameters:
shortName- aStringobject.
-
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:
getShortNamein interfaceCvTerm- Returns:
- a
Stringobject.
-
setShortName
public void setShortName(String name)
Set the short name- Specified by:
setShortNamein interfaceCvTerm- Parameters:
name- : short name
-
getFullName
public String getFullName()
getFullName.
- Specified by:
getFullNamein interfaceCvTerm- Returns:
- a
Stringobject.
-
setFullName
public void setFullName(String name)
Set the full name- Specified by:
setFullNamein interfaceCvTerm- Parameters:
name- : full name
-
getIdentifiers
public Collection<Xref> getIdentifiers()
getIdentifiers.
- Specified by:
getIdentifiersin interfaceCvTerm- Returns:
- a
Collectionobject.
-
getMIIdentifier
public String getMIIdentifier()
getMIIdentifier.
- Specified by:
getMIIdentifierin interfaceCvTerm- Returns:
- a
Stringobject.
-
getMODIdentifier
public String getMODIdentifier()
getMODIdentifier.
- Specified by:
getMODIdentifierin interfaceCvTerm- Returns:
- a
Stringobject.
-
getPARIdentifier
public String getPARIdentifier()
getPARIdentifier.
- Specified by:
getPARIdentifierin interfaceCvTerm- Returns:
- a
Stringobject.
-
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:
setMIIdentifierin 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:
setMODIdentifierin 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:
setPARIdentifierin interfaceCvTerm- Parameters:
par- : par identifier
-
getXrefs
public Collection<Xref> getXrefs()
getXrefs.
- Specified by:
getXrefsin interfaceCvTerm- Returns:
- a
Collectionobject.
-
getSynonyms
public Collection<Alias> getSynonyms()
getSynonyms.
- Specified by:
getSynonymsin interfaceCvTerm- Returns:
- a
Collectionobject.
-
getAnnotations
public Collection<Annotation> getAnnotations()
getAnnotations.
- Specified by:
getAnnotationsin interfaceCvTerm- Returns:
- a
Collectionobject.
-
sourceLocation
public Locator sourceLocation()
- Specified by:
sourceLocationin interfacecom.sun.xml.bind.Locatable
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator.- Specified by:
getSourceLocatorin interfaceFileSourceContext- Returns:
- a
FileSourceLocatorobject.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locator- Specified by:
setSourceLocatorin interfaceFileSourceContext- Parameters:
sourceLocator- : the file locator
-
toString
public String toString()
toString
- Specified by:
toStringin interfaceFileSourceContext- Overrides:
toStringin 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
CvTermXrefContainerobject.
-
setJAXBXref
public void setJAXBXref(CvTermXrefContainer value)
setJAXBXref.
- Parameters:
value- aCvTermXrefContainerobject.
-
getNamesContainer
protected NamesContainer getNamesContainer()
Getter for the field
namesContainer.- Returns:
- a
NamesContainerobject.
-
setJAXBNames
public void setJAXBNames(NamesContainer value)
setJAXBNames.
- Parameters:
value- aNamesContainerobject.
-
getAttributeWrapper
protected AbstractXmlCvTerm.JAXBAttributeWrapper getAttributeWrapper()
getAttributeWrapper.
- Returns:
- a
AbstractXmlCvTerm.JAXBAttributeWrapperobject.
-
setAttributeWrapper
protected void setAttributeWrapper(AbstractXmlCvTerm.JAXBAttributeWrapper jaxbAttributeWrapper)
setAttributeWrapper.
- Parameters:
jaxbAttributeWrapper- aAbstractXmlCvTerm.JAXBAttributeWrapperobject.
-
-