Class AbstractBaseXmlInteractor
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.AbstractBaseXmlInteractor
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable,FileSourceContext,Interactor,ExtendedPsiXmlInteractor
- Direct Known Subclasses:
AbstractXmlInteractor,AbstractXmlInteractor,AbstractXmlInteractor
public abstract class AbstractBaseXmlInteractor extends Object implements Interactor, FileSourceContext, com.sun.xml.bind.Locatable, ExtendedPsiXmlInteractor
The Xml implementation of Interactor- Since:
23/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractBaseXmlInteractor.AbstractJAXBAttributeWrapper
-
Field Summary
Fields Modifier and Type Field Description protected Locatorlocator-
Fields inherited from interface psidev.psi.mi.jami.model.Interactor
UNKNOWN_INTERACTOR, UNKNOWN_INTERACTOR_MI
-
-
Constructor Summary
Constructors Constructor Description AbstractBaseXmlInteractor()Constructor for AbstractBaseXmlInteractor.AbstractBaseXmlInteractor(String name)Constructor for AbstractBaseXmlInteractor.AbstractBaseXmlInteractor(String name, String fullName)Constructor for AbstractBaseXmlInteractor.AbstractBaseXmlInteractor(String name, String fullName, CvTerm type)Constructor for AbstractBaseXmlInteractor.AbstractBaseXmlInteractor(String name, String fullName, CvTerm type, Organism organism)Constructor for AbstractBaseXmlInteractor.AbstractBaseXmlInteractor(String name, String fullName, CvTerm type, Organism organism, Xref uniqueId)Constructor for AbstractBaseXmlInteractor.AbstractBaseXmlInteractor(String name, String fullName, CvTerm type, Xref uniqueId)Constructor for AbstractBaseXmlInteractor.AbstractBaseXmlInteractor(String name, String fullName, Organism organism)Constructor for AbstractBaseXmlInteractor.AbstractBaseXmlInteractor(String name, String fullName, Organism organism, Xref uniqueId)Constructor for AbstractBaseXmlInteractor.AbstractBaseXmlInteractor(String name, String fullName, Xref uniqueId)Constructor for AbstractBaseXmlInteractor.AbstractBaseXmlInteractor(String name, CvTerm type)Constructor for AbstractBaseXmlInteractor.AbstractBaseXmlInteractor(String name, CvTerm type, Organism organism)Constructor for AbstractBaseXmlInteractor.AbstractBaseXmlInteractor(String name, CvTerm type, Organism organism, Xref uniqueId)Constructor for AbstractBaseXmlInteractor.AbstractBaseXmlInteractor(String name, CvTerm type, Xref uniqueId)Constructor for AbstractBaseXmlInteractor.AbstractBaseXmlInteractor(String name, Organism organism)Constructor for AbstractBaseXmlInteractor.AbstractBaseXmlInteractor(String name, Organism organism, Xref uniqueId)Constructor for AbstractBaseXmlInteractor.AbstractBaseXmlInteractor(String name, Xref uniqueId)Constructor for AbstractBaseXmlInteractor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidcreateDefaultInteractorType()createDefaultInteractorType.Collection<Alias>getAliases()getAliases.Collection<Annotation>getAnnotations()getAnnotations.Collection<Checksum>getChecksums()getChecksums.StringgetFullName()getFullName.intgetId()Gets the value of the id property.Collection<Xref>getIdentifiers()getIdentifiers.CvTermgetInteractorType()Gets the value of the interactorType property.protected AbstractNamesContainergetNamesContainer()Getter for the fieldnamesContainer.OrganismgetOrganism()Getter for the fieldorganism.XrefgetPreferredIdentifier()getPreferredIdentifier.StringgetPreferredName()getPreferredName.StringgetSequence()getSequence.StringgetShortName()getShortName.FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.Collection<Xref>getXrefs()getXrefs.protected abstract voidinitialiseAnnotationWrapper()initialiseAnnotationWrapper.protected abstract voidinitialiseNamesContainer()initialiseNamesContainer.protected abstract voidinitialiseXrefContainer()initialiseXrefContainer.voidsetFullName(String name)Sets the full name of the interactorvoidsetId(int value)setId.voidsetInteractorType(CvTerm interactorType)Sets the molecule type for this interactor If the given type is null, this method automatically sets the interactor type to 'unknown participant' (MI:0329)voidsetJAXBAttributeWrapper(AbstractBaseXmlInteractor.AbstractJAXBAttributeWrapper wrapper)Gets the value of the attributeList property.voidsetJAXBInteractorType(CvTerm interactorType)setJAXBInteractorType.voidsetJAXBNames(AbstractNamesContainer value)Sets the value of the names property.voidsetJAXBOrganism(Organism organism)setJAXBOrganism.voidsetNamesContainer(AbstractNamesContainer namesContainer)voidsetOrganism(Organism organism)Sets the source organism of this interactorvoidsetSequence(String value)Sets the value of the sequence property.voidsetShortName(String name)Sets the short name of an interactorvoidsetSourceLocation(PsiXmlLocator sourceLocator)setSourceLocation.voidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorvoidsetXrefContainer(IInteractorXrefContainer xrefContainer)LocatorsourceLocation()StringtoString()toString
-
-
-
Field Detail
-
locator
protected Locator locator
-
-
Constructor Detail
-
AbstractBaseXmlInteractor
public AbstractBaseXmlInteractor()
Constructor for AbstractBaseXmlInteractor.
-
AbstractBaseXmlInteractor
public AbstractBaseXmlInteractor(String name, CvTerm type)
Constructor for AbstractBaseXmlInteractor.
-
AbstractBaseXmlInteractor
public AbstractBaseXmlInteractor(String name, String fullName, CvTerm type)
Constructor for AbstractBaseXmlInteractor.
-
AbstractBaseXmlInteractor
public AbstractBaseXmlInteractor(String name, CvTerm type, Organism organism)
Constructor for AbstractBaseXmlInteractor.
-
AbstractBaseXmlInteractor
public AbstractBaseXmlInteractor(String name, String fullName, CvTerm type, Organism organism)
Constructor for AbstractBaseXmlInteractor.
-
AbstractBaseXmlInteractor
public AbstractBaseXmlInteractor(String name, CvTerm type, Xref uniqueId)
Constructor for AbstractBaseXmlInteractor.
-
AbstractBaseXmlInteractor
public AbstractBaseXmlInteractor(String name, String fullName, CvTerm type, Xref uniqueId)
Constructor for AbstractBaseXmlInteractor.
-
AbstractBaseXmlInteractor
public AbstractBaseXmlInteractor(String name, CvTerm type, Organism organism, Xref uniqueId)
Constructor for AbstractBaseXmlInteractor.
-
AbstractBaseXmlInteractor
public AbstractBaseXmlInteractor(String name, String fullName, CvTerm type, Organism organism, Xref uniqueId)
Constructor for AbstractBaseXmlInteractor.
-
AbstractBaseXmlInteractor
public AbstractBaseXmlInteractor(String name)
Constructor for AbstractBaseXmlInteractor.
- Parameters:
name- aStringobject.
-
AbstractBaseXmlInteractor
public AbstractBaseXmlInteractor(String name, String fullName)
Constructor for AbstractBaseXmlInteractor.
-
AbstractBaseXmlInteractor
public AbstractBaseXmlInteractor(String name, Organism organism)
Constructor for AbstractBaseXmlInteractor.
-
AbstractBaseXmlInteractor
public AbstractBaseXmlInteractor(String name, String fullName, Organism organism)
Constructor for AbstractBaseXmlInteractor.
-
AbstractBaseXmlInteractor
public AbstractBaseXmlInteractor(String name, Xref uniqueId)
Constructor for AbstractBaseXmlInteractor.
-
AbstractBaseXmlInteractor
public AbstractBaseXmlInteractor(String name, String fullName, Xref uniqueId)
Constructor for AbstractBaseXmlInteractor.
-
AbstractBaseXmlInteractor
public AbstractBaseXmlInteractor(String name, Organism organism, Xref uniqueId)
Constructor for AbstractBaseXmlInteractor.
-
-
Method Detail
-
getInteractorType
public CvTerm getInteractorType()
Gets the value of the interactorType property.- Specified by:
getInteractorTypein interfaceInteractor- Returns:
- a
CvTermobject.
-
setInteractorType
public void setInteractorType(CvTerm interactorType)
Sets the molecule type for this interactor If the given type is null, this method automatically sets the interactor type to 'unknown participant' (MI:0329)- Specified by:
setInteractorTypein interfaceInteractor- Parameters:
interactorType- : molecule type
-
getOrganism
public Organism getOrganism()
Getter for the field
organism.- Specified by:
getOrganismin interfaceInteractor- Returns:
- a
Organismobject.
-
setOrganism
public void setOrganism(Organism organism)
Sets the source organism of this interactor- Specified by:
setOrganismin interfaceInteractor- Parameters:
organism- : source organism
-
getShortName
public String getShortName()
getShortName.
- Specified by:
getShortNamein interfaceInteractor- Returns:
- a
Stringobject.
-
setShortName
public void setShortName(String name)
Sets the short name of an interactor- Specified by:
setShortNamein interfaceInteractor- Parameters:
name- : short name
-
getFullName
public String getFullName()
getFullName.
- Specified by:
getFullNamein interfaceInteractor- Returns:
- a
Stringobject.
-
setFullName
public void setFullName(String name)
Sets the full name of the interactor- Specified by:
setFullNamein interfaceInteractor- Parameters:
name- : full name
-
getIdentifiers
public Collection<Xref> getIdentifiers()
getIdentifiers.
- Specified by:
getIdentifiersin interfaceInteractor- Returns:
- a
Collectionobject.
-
setNamesContainer
public void setNamesContainer(AbstractNamesContainer namesContainer)
-
setXrefContainer
public void setXrefContainer(IInteractorXrefContainer xrefContainer)
-
initialiseXrefContainer
protected abstract void initialiseXrefContainer()
initialiseXrefContainer.
-
initialiseNamesContainer
protected abstract void initialiseNamesContainer()
initialiseNamesContainer.
-
getPreferredIdentifier
public Xref getPreferredIdentifier()
getPreferredIdentifier.
- Specified by:
getPreferredIdentifierin interfaceInteractor- Returns:
- the first identifier in the list of identifiers or null if the list is empty
-
getPreferredName
public String getPreferredName()
getPreferredName.
- Specified by:
getPreferredNamein interfaceInteractor- Returns:
- preferred name
-
getChecksums
public Collection<Checksum> getChecksums()
getChecksums.
- Specified by:
getChecksumsin interfaceInteractor- Returns:
- a
Collectionobject.
-
getXrefs
public Collection<Xref> getXrefs()
getXrefs.
- Specified by:
getXrefsin interfaceInteractor- Returns:
- a
Collectionobject.
-
getAnnotations
public Collection<Annotation> getAnnotations()
getAnnotations.
- Specified by:
getAnnotationsin interfaceInteractor- Returns:
- a
Collectionobject.
-
getAliases
public Collection<Alias> getAliases()
getAliases.
- Specified by:
getAliasesin interfaceInteractor- Returns:
- a
Collectionobject.
-
setJAXBNames
public void setJAXBNames(AbstractNamesContainer value)
Sets the value of the names property.- Parameters:
value- allowed object isAbstractNamesContainer
-
setJAXBInteractorType
public void setJAXBInteractorType(CvTerm interactorType)
setJAXBInteractorType.
- Parameters:
interactorType- aCvTermobject.
-
setJAXBOrganism
public void setJAXBOrganism(Organism organism)
setJAXBOrganism.
- Parameters:
organism- aOrganismobject.
-
setSequence
public void setSequence(String value)
Sets the value of the sequence property.- Parameters:
value- allowed object isString
-
getId
public int getId()
Gets the value of the id property.- Specified by:
getIdin interfaceExtendedPsiXmlInteractor- Returns:
- a int.
-
setId
public void setId(int value)
setId.
Sets the value of the id property.- Specified by:
setIdin interfaceExtendedPsiXmlInteractor- Parameters:
value- a int.
-
setJAXBAttributeWrapper
public void setJAXBAttributeWrapper(AbstractBaseXmlInteractor.AbstractJAXBAttributeWrapper wrapper)
Gets the value of the attributeList property.- Parameters:
wrapper- aAbstractBaseXmlInteractor.AbstractJAXBAttributeWrapperobject.
-
createDefaultInteractorType
protected abstract void createDefaultInteractorType()
createDefaultInteractorType.
-
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
-
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
-
setSourceLocation
public void setSourceLocation(PsiXmlLocator sourceLocator)
setSourceLocation.
- Parameters:
sourceLocator- aPsiXmlLocatorobject.
-
initialiseAnnotationWrapper
protected abstract void initialiseAnnotationWrapper()
initialiseAnnotationWrapper.
-
getNamesContainer
protected AbstractNamesContainer getNamesContainer()
Getter for the field
namesContainer.- Returns:
- a
AbstractNamesContainerobject.
-
-