Class XmlModelledInteraction
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml300.AbstractXmlInteraction<ModelledParticipant>
-
- psidev.psi.mi.jami.xml.model.extension.xml300.XmlModelledInteraction
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable,FileSourceContext,Complex,Interaction<ModelledParticipant>,Interactor,ModelledInteraction,NamedInteraction<ModelledParticipant>,PsiXmlInteraction<ModelledParticipant>,ExtendedPsiXmlModelledInteraction
public class XmlModelledInteraction extends AbstractXmlInteraction<ModelledParticipant> implements ExtendedPsiXmlModelledInteraction
Xml 3.0.0 implementation of ModelledInteraction- Since:
08/10/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXmlModelledInteraction.JAXBAttributeWrapperstatic classXmlModelledInteraction.JAXBBindingFeaturesWrapperstatic classXmlModelledInteraction.JAXBCausalRelationshipWrapperstatic classXmlModelledInteraction.JAXBConfidenceWrapperstatic classXmlModelledInteraction.JAXBCooperativeEffectWrapperstatic classXmlModelledInteraction.JAXBParameterWrapperstatic classXmlModelledInteraction.JAXBParticipantWrapper
-
Field Summary
Fields Modifier and Type Field Description protected Locatorlocator-
Fields inherited from interface psidev.psi.mi.jami.model.Complex
COMPLEX, COMPLEX_MI
-
Fields inherited from interface psidev.psi.mi.jami.model.Interactor
UNKNOWN_INTERACTOR, UNKNOWN_INTERACTOR_MI
-
Fields inherited from interface psidev.psi.mi.jami.model.ModelledInteraction
ECO, ECO_MI
-
-
Constructor Summary
Constructors Constructor Description XmlModelledInteraction()Constructor for XmlModelledInteraction.XmlModelledInteraction(String shortName)Constructor for XmlModelledInteraction.XmlModelledInteraction(String shortName, CvTerm type)Constructor for XmlModelledInteraction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassignComplexAc(String accession)Sets the value of the complexAc propertyvoidassignComplexAc(String accession, String version)Assign a complex accession to a complex.List<Alias>getAliases()Collection of aliases for an interaction.Collection<Annotation>getAnnotations()getAnnotations.protected XmlModelledInteraction.JAXBAttributeWrappergetAttributeWrapper()getAttributeWrapper.List<BindingFeatures>getBindingFeatures()getBindingFeatures.List<ExtendedPsiXmlCausalRelationship>getCausalRelationships()getCausalRelationships.Collection<Checksum>getChecksums()getChecksums.StringgetComplexAc()Gets the value of the complexAc property.StringgetComplexVersion()Gets the value of the complexVersion property.Collection<CooperativeEffect>getCooperativeEffects()getCooperativeEffects.CvTermgetEvidenceType()Getter for the fieldevidenceType.Collection<Xref>getIdentifiers()getIdentifiers.Collection<InteractionEvidence>getInteractionEvidences()Getter for the fieldinteractionEvidences.protected ComplexNamesContainergetInteractionNamesContainer()Getter for the fieldinteractionNamesContainer.CvTermgetInteractionType()getInteractionType.CvTermgetInteractorType()Getter for the fieldinteractorType.Collection<ModelledConfidence>getModelledConfidences()getModelledConfidences.Collection<ModelledParameter>getModelledParameters()getModelledParameters.OrganismgetOrganism()The original source organism for this interactor.StringgetPhysicalProperties()getPhysicalProperties.XrefgetPreferredIdentifier()The identifier in the list of identifiers which is the preferred identifier.StringgetPreferredName()The preferred name is the name by which we want to refer the interactor on our web site.StringgetRecommendedName()getRecommendedName.SourcegetSource()Getter for the fieldsource.FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.StringgetSystematicName()getSystematicName.Collection<Xref>getXrefs()getXrefs.protected voidinitialiseAnnotationWrapper()initialiseAnnotationWrapper.protected voidinitialiseCooperativeEffects()initialiseCooperativeEffects.protected voidinitialiseInteractionEvidences()initialiseInteractionEvidences.protected voidinitialiseModelledConfidenceWrapper()initialiseModelledConfidenceWrapper.protected voidinitialiseModelledParameterWrapper()initialiseModelledParameterWrapper.protected voidinitialiseNamesContainer()initialiseNamesContainer.protected voidinitialiseParticipantWrapper()initialiseParticipantWrapper.voidsetEvidenceType(CvTerm evidenceType)Sets the evidence typevoidsetInteractionType(CvTerm term)Sets the interaction type.voidsetInteractionXrefContainer(InteractionXrefContainer value)Sets the value of the interactionXrefContainer property.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(XmlModelledInteraction.JAXBAttributeWrapper jaxbAttributeWrapper)setJAXBAttributeWrapper.voidsetJAXBBindingFeaturesWrapper(XmlModelledInteraction.JAXBBindingFeaturesWrapper jaxbInferredWrapper)setJAXBBindingFeaturesWrapper.voidsetJAXBCausalRelationshipWrapper(XmlModelledInteraction.JAXBCausalRelationshipWrapper jaxbCausalRelationshipWrapper)setJAXBCausalRelationshipWrapper.voidsetJAXBConfidenceWrapper(XmlModelledInteraction.JAXBConfidenceWrapper wrapper)setJAXBConfidenceWrapper.voidsetJAXBCooperativeEffectWrapper(XmlModelledInteraction.JAXBCooperativeEffectWrapper jaxbEffectWrapper)setJAXBCooperativeEffectWrapper.voidsetJAXBEvidenceType(XmlCvTerm evidenceType)setJAXBEvidenceType.voidsetJAXBId(int value)setJAXBId.voidsetJAXBInteractionType(XmlCvTerm term)setJAXBInteractionType.voidsetJAXBInteractorType(XmlCvTerm interactorType)setJAXBInteractorType.voidsetJAXBIntraMolecular(boolean intra)setJAXBIntraMolecular.voidsetJAXBNames(ComplexNamesContainer value)setJAXBNames.voidsetJAXBOrganism(XmlOrganism organism)setJAXBOrganism.voidsetJAXBParameterWrapper(XmlModelledInteraction.JAXBParameterWrapper wrapper)setJAXBParameterWrapper.voidsetJAXBParticipantWrapper(XmlModelledInteraction.JAXBParticipantWrapper jaxbParticipantWrapper)setJAXBParticipantWrapper.voidsetOrganism(Organism organism)Sets the source organism of this interactorvoidsetPhysicalProperties(String properties)Sets the physical properties of this complex.voidsetRecommendedName(String name)Sets the recommended name of this complex.voidsetSource(Source source)Sets the source reporting the interaction.voidsetSystematicName(String name)Sets the systematic name of this complex.-
Methods inherited from class psidev.psi.mi.jami.xml.model.extension.xml300.AbstractXmlInteraction
addAllParticipants, addParticipant, assignImexId, getCreatedDate, getEntry, getFullName, getId, getImexId, getInteractionXrefContainer, getParticipants, getRigid, getShortName, getUpdatedDate, isIntraMolecular, processAddedParticipant, removeAllParticipants, removeParticipant, setCreatedDate, setEntry, setFullName, setId, setInteractionNamesContainer, setIntraMolecular, setJAXBAttributeWrapper, setParticipantWrapper, setRigid, setShortName, setSourceLocator, setUpdatedDate, sourceLocation, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface psidev.psi.mi.jami.model.Complex
getComparableParticipants
-
Methods inherited from interface psidev.psi.mi.jami.datasource.FileSourceContext
setSourceLocator, toString
-
Methods inherited from interface psidev.psi.mi.jami.model.Interaction
addAllParticipants, addParticipant, getCreatedDate, getParticipants, getRigid, getShortName, getUpdatedDate, removeAllParticipants, removeParticipant, setCreatedDate, setRigid, setShortName, setUpdatedDate
-
Methods inherited from interface psidev.psi.mi.jami.model.Interactor
getFullName, getShortName, setFullName, setShortName
-
Methods inherited from interface psidev.psi.mi.jami.model.NamedInteraction
getFullName, setFullName
-
Methods inherited from interface psidev.psi.mi.jami.xml.model.extension.PsiXmlInteraction
getEntry, getId, isIntraMolecular, setEntry, setId, setIntraMolecular
-
-
-
-
Field Detail
-
locator
protected Locator locator
-
-
Method Detail
-
initialiseInteractionEvidences
protected void initialiseInteractionEvidences()
initialiseInteractionEvidences.
-
initialiseCooperativeEffects
protected void initialiseCooperativeEffects()
initialiseCooperativeEffects.
-
initialiseModelledConfidenceWrapper
protected void initialiseModelledConfidenceWrapper()
initialiseModelledConfidenceWrapper.
-
initialiseModelledParameterWrapper
protected void initialiseModelledParameterWrapper()
initialiseModelledParameterWrapper.
-
getInteractionEvidences
public Collection<InteractionEvidence> getInteractionEvidences()
Getter for the field
interactionEvidences.- Specified by:
getInteractionEvidencesin interfaceModelledInteraction- Returns:
- a
Collectionobject.
-
getSource
public Source getSource()
Getter for the field
source.- Specified by:
getSourcein interfaceModelledInteraction- Returns:
- a
Sourceobject.
-
setSource
public void setSource(Source source)
Sets the source reporting the interaction.- Specified by:
setSourcein interfaceModelledInteraction- Parameters:
source- : source for this interaction
-
getModelledConfidences
public Collection<ModelledConfidence> getModelledConfidences()
getModelledConfidences.
- Specified by:
getModelledConfidencesin interfaceModelledInteraction- Returns:
- a
Collectionobject.
-
getModelledParameters
public Collection<ModelledParameter> getModelledParameters()
getModelledParameters.
- Specified by:
getModelledParametersin interfaceModelledInteraction- Returns:
- a
Collectionobject.
-
getCooperativeEffects
public Collection<CooperativeEffect> getCooperativeEffects()
getCooperativeEffects.
- Specified by:
getCooperativeEffectsin interfaceModelledInteraction- Returns:
- a
Collectionobject.
-
getComplexAc
public String getComplexAc()
Gets the value of the complexAc property.- Specified by:
getComplexAcin interfaceComplex- Overrides:
getComplexAcin classAbstractXmlInteraction<ModelledParticipant>- Returns:
- a
Stringobject.
-
getComplexVersion
public String getComplexVersion()
Gets the value of the complexVersion property.- Specified by:
getComplexVersionin interfaceComplex- Overrides:
getComplexVersionin classAbstractXmlInteraction<ModelledParticipant>- Returns:
- a
Stringobject.
-
assignComplexAc
public void assignComplexAc(String accession, String version)
Assign a complex accession to a complex. It will add the new complex-primary ref to the collection of xrefs- Specified by:
assignComplexAcin interfaceComplex- Parameters:
accession- : the complex accessionversion- : the version of the complex if it is provided. If version is null it will create the complex with version 1
-
assignComplexAc
public void assignComplexAc(String accession)
Sets the value of the complexAc property- Specified by:
assignComplexAcin interfaceComplex- Overrides:
assignComplexAcin classAbstractXmlInteraction<ModelledParticipant>- Parameters:
accession- aStringobject.
-
getPhysicalProperties
public String getPhysicalProperties()
getPhysicalProperties.
- Specified by:
getPhysicalPropertiesin interfaceComplex- Returns:
- a
Stringobject.
-
setPhysicalProperties
public void setPhysicalProperties(String properties)
Sets the physical properties of this complex. It will remove the old complex-properties annotation from the collection of annotations and replace it with the new complex-properties annotation. If the new complex-properties is null, all the existing complex-properties annotations will be removed from the collection of annotations- Specified by:
setPhysicalPropertiesin interfaceComplex- Parameters:
properties- : complex properties
-
getRecommendedName
public String getRecommendedName()
getRecommendedName.
- Specified by:
getRecommendedNamein interfaceComplex- Returns:
- a
Stringobject.
-
setRecommendedName
public void setRecommendedName(String name)
Sets the recommended name of this complex. It will remove the old recommended name from the collection of aliases and replace it with the new recommended name. If the new recommended name is null, all the existing recommended names will be removed from the collection of aliases- Specified by:
setRecommendedNamein interfaceComplex- Parameters:
name- : the recommended name
-
getSystematicName
public String getSystematicName()
getSystematicName.
- Specified by:
getSystematicNamein interfaceComplex- Returns:
- a
Stringobject.
-
setSystematicName
public void setSystematicName(String name)
Sets the systematic name of this complex. It will remove the old systematic name from the collection of aliases and replace it with the new systematic name. If the new systematic name is null, all the existing systematic names will be removed from the collection of aliases- Specified by:
setSystematicNamein interfaceComplex- Parameters:
name- : the systematic name
-
getPreferredIdentifier
public Xref getPreferredIdentifier()
The identifier in the list of identifiers which is the preferred identifier. If no identifiers is preferred, it should return the first identifier of the list of identifiers, null if the list of identifiers is empty.- Specified by:
getPreferredIdentifierin interfaceInteractor- Returns:
- the preferred identifier in the list of identifiers, null if the list of identifiers is empty
-
getPreferredName
public String getPreferredName()
The preferred name is the name by which we want to refer the interactor on our web site.- Specified by:
getPreferredNamein interfaceInteractor- Returns:
- the preferred name
-
getOrganism
public Organism getOrganism()
The original source organism for this interactor. It can be null in case of chemical compounds/synthetic peptides- Specified by:
getOrganismin interfaceInteractor- Returns:
- the organism
-
setOrganism
public void setOrganism(Organism organism)
Sets the source organism of this interactor- Specified by:
setOrganismin interfaceInteractor- Parameters:
organism- : source organism
-
getInteractorType
public CvTerm getInteractorType()
Getter for the field
interactorType.- 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
-
getAliases
public List<Alias> getAliases()
Collection of aliases for an interaction. The Collection cannot be null and if the interaction does not have any aliases, the method should return an empty Collection.- Specified by:
getAliasesin interfaceExtendedPsiXmlModelledInteraction- Specified by:
getAliasesin interfaceInteractor- Specified by:
getAliasesin interfaceNamedInteraction<ModelledParticipant>- Specified by:
getAliasesin interfacePsiXmlInteraction<ModelledParticipant>- Overrides:
getAliasesin classAbstractXmlInteraction<ModelledParticipant>- Returns:
- the aliases
-
getChecksums
public Collection<Checksum> getChecksums()
getChecksums.
- Specified by:
getChecksumsin interfaceInteraction<ModelledParticipant>- Specified by:
getChecksumsin interfaceInteractor- Overrides:
getChecksumsin classAbstractXmlInteraction<ModelledParticipant>- Returns:
- a
Collectionobject.
-
getXrefs
public Collection<Xref> getXrefs()
getXrefs.
- Specified by:
getXrefsin interfaceInteraction<ModelledParticipant>- Specified by:
getXrefsin interfaceInteractor- Overrides:
getXrefsin classAbstractXmlInteraction<ModelledParticipant>- Returns:
- a
Collectionobject.
-
getIdentifiers
public Collection<Xref> getIdentifiers()
getIdentifiers.
- Specified by:
getIdentifiersin interfaceInteraction<ModelledParticipant>- Specified by:
getIdentifiersin interfaceInteractor- Overrides:
getIdentifiersin classAbstractXmlInteraction<ModelledParticipant>- Returns:
- a
Collectionobject.
-
getAnnotations
public Collection<Annotation> getAnnotations()
getAnnotations.
- Specified by:
getAnnotationsin interfaceInteraction<ModelledParticipant>- Specified by:
getAnnotationsin interfaceInteractor- Overrides:
getAnnotationsin classAbstractXmlInteraction<ModelledParticipant>- Returns:
- a
Collectionobject.
-
getEvidenceType
public CvTerm getEvidenceType()
Getter for the field
evidenceType.- Specified by:
getEvidenceTypein interfaceModelledInteraction- Returns:
- a
CvTermobject.
-
setEvidenceType
public void setEvidenceType(CvTerm evidenceType)
Sets the evidence type- Specified by:
setEvidenceTypein interfaceModelledInteraction- Parameters:
evidenceType- : the evidence type
-
getInteractionType
public CvTerm getInteractionType()
getInteractionType.
- Specified by:
getInteractionTypein interfaceInteraction<ModelledParticipant>- Specified by:
getInteractionTypein classAbstractXmlInteraction<ModelledParticipant>- Returns:
- a
CvTermobject.
-
setInteractionType
public void setInteractionType(CvTerm term)
Sets the interaction type.- Specified by:
setInteractionTypein interfaceInteraction<ModelledParticipant>- Specified by:
setInteractionTypein classAbstractXmlInteraction<ModelledParticipant>- Parameters:
term- : interaction type
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator.- Specified by:
getSourceLocatorin interfaceFileSourceContext- Overrides:
getSourceLocatorin classAbstractXmlInteraction<ModelledParticipant>- Returns:
- a
FileSourceLocatorobject.
-
getBindingFeatures
public List<BindingFeatures> getBindingFeatures()
getBindingFeatures.
- Specified by:
getBindingFeaturesin interfaceExtendedPsiXmlModelledInteraction- Returns:
- a
Listobject.
-
getCausalRelationships
public List<ExtendedPsiXmlCausalRelationship> getCausalRelationships()
getCausalRelationships.
- Specified by:
getCausalRelationshipsin interfaceExtendedPsiXmlModelledInteraction- Returns:
- a
Listobject.
-
setJAXBNames
public void setJAXBNames(ComplexNamesContainer value)
setJAXBNames.
- Parameters:
value- aComplexNamesContainerobject.
-
setInteractionXrefContainer
public void setInteractionXrefContainer(InteractionXrefContainer value)
Sets the value of the interactionXrefContainer property.- Overrides:
setInteractionXrefContainerin classAbstractXmlInteraction<ModelledParticipant>- Parameters:
value- allowed object isInteractionXrefContainer
-
setJAXBIntraMolecular
public void setJAXBIntraMolecular(boolean intra)
setJAXBIntraMolecular.
- Parameters:
intra- a boolean.
-
setJAXBAttributeWrapper
public void setJAXBAttributeWrapper(XmlModelledInteraction.JAXBAttributeWrapper jaxbAttributeWrapper)
setJAXBAttributeWrapper.
- Parameters:
jaxbAttributeWrapper- aXmlModelledInteraction.JAXBAttributeWrapperobject.
-
setJAXBId
public void setJAXBId(int value)
setJAXBId.
- Parameters:
value- a int.
-
setJAXBParticipantWrapper
public void setJAXBParticipantWrapper(XmlModelledInteraction.JAXBParticipantWrapper jaxbParticipantWrapper)
setJAXBParticipantWrapper.
- Parameters:
jaxbParticipantWrapper- aXmlModelledInteraction.JAXBParticipantWrapperobject.
-
setJAXBConfidenceWrapper
public void setJAXBConfidenceWrapper(XmlModelledInteraction.JAXBConfidenceWrapper wrapper)
setJAXBConfidenceWrapper.
- Parameters:
wrapper- aXmlModelledInteraction.JAXBConfidenceWrapperobject.
-
setJAXBParameterWrapper
public void setJAXBParameterWrapper(XmlModelledInteraction.JAXBParameterWrapper wrapper)
setJAXBParameterWrapper.
- Parameters:
wrapper- aXmlModelledInteraction.JAXBParameterWrapperobject.
-
setJAXBOrganism
public void setJAXBOrganism(XmlOrganism organism)
setJAXBOrganism.
- Parameters:
organism- aXmlOrganismobject.
-
setJAXBInteractorType
public void setJAXBInteractorType(XmlCvTerm interactorType)
setJAXBInteractorType.
- Parameters:
interactorType- aXmlCvTermobject.
-
setJAXBInteractionType
public void setJAXBInteractionType(XmlCvTerm term)
setJAXBInteractionType.
- Parameters:
term- aXmlCvTermobject.
-
setJAXBBindingFeaturesWrapper
public void setJAXBBindingFeaturesWrapper(XmlModelledInteraction.JAXBBindingFeaturesWrapper jaxbInferredWrapper)
setJAXBBindingFeaturesWrapper.
- Parameters:
jaxbInferredWrapper- aXmlModelledInteraction.JAXBBindingFeaturesWrapperobject.
-
setJAXBCooperativeEffectWrapper
public void setJAXBCooperativeEffectWrapper(XmlModelledInteraction.JAXBCooperativeEffectWrapper jaxbEffectWrapper)
setJAXBCooperativeEffectWrapper.
- Parameters:
jaxbEffectWrapper- aXmlModelledInteraction.JAXBCooperativeEffectWrapperobject.
-
setJAXBCausalRelationshipWrapper
public void setJAXBCausalRelationshipWrapper(XmlModelledInteraction.JAXBCausalRelationshipWrapper jaxbCausalRelationshipWrapper)
setJAXBCausalRelationshipWrapper.
- Parameters:
jaxbCausalRelationshipWrapper- aXmlModelledInteraction.JAXBCausalRelationshipWrapperobject.
-
setJAXBEvidenceType
public void setJAXBEvidenceType(XmlCvTerm evidenceType)
setJAXBEvidenceType.
- Parameters:
evidenceType- aXmlCvTermobject.
-
initialiseParticipantWrapper
protected void initialiseParticipantWrapper()
initialiseParticipantWrapper.
- Overrides:
initialiseParticipantWrapperin classAbstractXmlInteraction<ModelledParticipant>
-
initialiseNamesContainer
protected void initialiseNamesContainer()
initialiseNamesContainer.
- Overrides:
initialiseNamesContainerin classAbstractXmlInteraction<ModelledParticipant>
-
getInteractionNamesContainer
protected ComplexNamesContainer getInteractionNamesContainer()
Getter for the field
interactionNamesContainer.- Overrides:
getInteractionNamesContainerin classAbstractXmlInteraction<ModelledParticipant>- Returns:
- a
NamesContainerobject.
-
getAttributeWrapper
protected XmlModelledInteraction.JAXBAttributeWrapper getAttributeWrapper()
getAttributeWrapper.
- Overrides:
getAttributeWrapperin classAbstractXmlInteraction<ModelledParticipant>- Returns:
- a
XmlModelledInteraction.JAXBAttributeWrapperobject.
-
initialiseAnnotationWrapper
protected void initialiseAnnotationWrapper()
initialiseAnnotationWrapper.
- Overrides:
initialiseAnnotationWrapperin classAbstractXmlInteraction<ModelledParticipant>
-
-