Class AbstractXmlExperiment
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml253.AbstractXmlExperiment
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable,FileSourceContext,Experiment,NamedExperiment,ExtendedPsiXmlExperiment
- Direct Known Subclasses:
DefaultXmlExperiment,XmlExperiment
public abstract class AbstractXmlExperiment extends Object implements ExtendedPsiXmlExperiment, FileSourceContext, com.sun.xml.bind.Locatable
Xml im- Since:
25/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractXmlExperiment.JAXBAttributeWrapperstatic classAbstractXmlExperiment.JAXBConfidenceWrapperstatic classAbstractXmlExperiment.JAXBHostOrganismWrapperstatic classAbstractXmlExperiment.JAXBVariableParameterWrapper
-
Field Summary
Fields Modifier and Type Field Description protected Locatorlocator-
Fields inherited from interface psidev.psi.mi.jami.model.Experiment
INFERRED_BY_CURATOR, INFERRED_BY_CURATOR_MI, UNSPECIFIED_METHOD, UNSPECIFIED_METHOD_MI
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlExperiment()Constructor for AbstractXmlExperiment.AbstractXmlExperiment(Publication publication)Constructor for AbstractXmlExperiment.AbstractXmlExperiment(Publication publication, CvTerm interactionDetectionMethod)Constructor for AbstractXmlExperiment.AbstractXmlExperiment(Publication publication, CvTerm interactionDetectionMethod, Organism organism)Constructor for AbstractXmlExperiment.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanaddAllInteractionEvidences(Collection<? extends InteractionEvidence> evidences)This method will add all the interaction evidences and set the experiment of the new interaction evidences to this current experimentbooleanaddAllVariableParameters(Collection<? extends VariableParameter> variableParameters)This method will add all variableParameters and set the experiment of the new variableParameters to this current experimentbooleanaddInteractionEvidence(InteractionEvidence evidence)This method will add the interaction evidence and set the experiment of the new interaction evidence to this current experimentbooleanaddVariableParameter(VariableParameter variableParameter)This method will add the variableParameter and set the experiment of the new variableParameter to this current experimentList<Alias>getAliases()Collection of aliases for an experiment.Collection<Annotation>getAnnotations()getAnnotations.Collection<Confidence>getConfidences()getConfidences.NamesContainergetExperimentNamesContainer()Gets the value of the experimentNamesContainer property.CvTermgetFeatureDetectionMethod()Gets the value of the featureDetectionMethod property.StringgetFullName()The full name of the experiment.OrganismgetHostOrganism()getHostOrganism.List<Organism>getHostOrganisms()getHostOrganisms.intgetId()Gets the value of the id property.CvTermgetInteractionDetectionMethod()Gets the value of the interactionDetectionMethod property.Collection<InteractionEvidence>getInteractionEvidences()getInteractionEvidences.CvTermgetParticipantIdentificationMethod()Gets the value of the participantIdentificationMethod property.PublicationgetPublication()Getter for the fieldpublication.StringgetShortName()The short name of the experiment.FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.Collection<VariableParameter>getVariableParameters()Getter for the fieldvariableParameters.Collection<Xref>getXrefs()getXrefs.protected voidinitialiseAnnotationWrapper()initialiseAnnotationWrapper.protected voidinitialiseConfidenceWrapper()initialiseConfidenceWrapper.protected abstract voidinitialiseFullNameFromPublication(BibRef publication)initialiseFullNameFromPublication.protected voidinitialiseInteractions()initialiseInteractions.protected voidinitialiseVariableParameters()initialiseVariableParameters.booleanremoveAllInteractionEvidences(Collection<? extends InteractionEvidence> evidences)This method will remove the interaction evidences and set the experiment of the removed interaction evidences to null.booleanremoveAllVariableParameters(Collection<? extends VariableParameter> variableParameters)This method will remove all the variableParameters and set the experiment of the removed variableParameters to null.booleanremoveInteractionEvidence(InteractionEvidence evidence)This method will remove the interaction evidence and set the experiment of the new interaction evidence to nullbooleanremoveVariableParameter(VariableParameter variableParameter)This method will remove the variableParameter and set the experiment of the removed variableParameter to null.voidsetExperimentNamesContainer(NamesContainer value)Sets the value of the experimentNamesContainer property.voidsetExperimentXrefContainer(ExperimentXrefContainer value)Sets the value of the xref property.voidsetFeatureDetectionMethod(CvTerm value)setFeatureDetectionMethod.voidsetFullName(String name)Sets the full name of the experimentvoidsetHostOrganism(Organism organism)Sets the host organism of an experimentvoidsetId(int value)setId.voidsetInteractionDetectionMethod(CvTerm value)Set the interaction detection method for this experiment If term is null, this method will set the interaction detection method to 'unspecified method' (MI:0686).voidsetJAXBAttributeWrapper(AbstractXmlExperiment.JAXBAttributeWrapper wrapper)setJAXBAttributeWrapper.voidsetJAXBConfidenceWrapper(AbstractXmlExperiment.JAXBConfidenceWrapper wrapper)setJAXBConfidenceWrapper.voidsetJAXBHostOrganismWrapper(AbstractXmlExperiment.JAXBHostOrganismWrapper wrapper)setJAXBHostOrganismWrapper.voidsetJAXBId(int value)setJAXBId.voidsetJAXBInteractionDetectionMethod(XmlCvTerm value)Sets the value of the interactionDetectionMethod property.voidsetJAXBPublication(BibRef publication)setJAXBPublication.voidsetJAXBVariableParameterValuesWrapper(AbstractXmlExperiment.JAXBVariableParameterWrapper jaxbVariableParameterList)setJAXBVariableParameterValuesWrapper.voidsetParticipantIdentificationMethod(CvTerm value)setParticipantIdentificationMethod.voidsetPublication(Publication publication)Set the publication where the experiment has been described.voidsetPublicationAndAddExperiment(Publication publication)Set the publication where the experiment has been described and add the experiment to the list of experiments for this publication If publication is null, it will remove this experiment from the previous publication attached to this experimentvoidsetShortName(String name)Sets the short name of an experimentvoidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorLocatorsourceLocation()StringtoString()toString
-
-
-
Field Detail
-
locator
protected Locator locator
-
-
Constructor Detail
-
AbstractXmlExperiment
public AbstractXmlExperiment()
Constructor for AbstractXmlExperiment.
-
AbstractXmlExperiment
public AbstractXmlExperiment(Publication publication)
Constructor for AbstractXmlExperiment.
- Parameters:
publication- aPublicationobject.
-
AbstractXmlExperiment
public AbstractXmlExperiment(Publication publication, CvTerm interactionDetectionMethod)
Constructor for AbstractXmlExperiment.
- Parameters:
publication- aPublicationobject.interactionDetectionMethod- aCvTermobject.
-
AbstractXmlExperiment
public AbstractXmlExperiment(Publication publication, CvTerm interactionDetectionMethod, Organism organism)
Constructor for AbstractXmlExperiment.
- Parameters:
publication- aPublicationobject.interactionDetectionMethod- aCvTermobject.organism- aOrganismobject.
-
-
Method Detail
-
getPublication
public Publication getPublication()
Getter for the field
publication.- Specified by:
getPublicationin interfaceExperiment- Returns:
- a
Publicationobject.
-
setPublication
public void setPublication(Publication publication)
Set the publication where the experiment has been described.- Specified by:
setPublicationin interfaceExperiment- Parameters:
publication- : the publication
-
setPublicationAndAddExperiment
public void setPublicationAndAddExperiment(Publication publication)
Set the publication where the experiment has been described and add the experiment to the list of experiments for this publication If publication is null, it will remove this experiment from the previous publication attached to this experiment- Specified by:
setPublicationAndAddExperimentin interfaceExperiment- Parameters:
publication- : the publication
-
getXrefs
public Collection<Xref> getXrefs()
getXrefs.
- Specified by:
getXrefsin interfaceExperiment- Returns:
- a
Collectionobject.
-
getHostOrganism
public Organism getHostOrganism()
getHostOrganism.
- Specified by:
getHostOrganismin interfaceExperiment- Returns:
- a
Organismobject.
-
setHostOrganism
public void setHostOrganism(Organism organism)
Sets the host organism of an experiment- Specified by:
setHostOrganismin interfaceExperiment- Parameters:
organism- : host organism
-
getInteractionDetectionMethod
public CvTerm getInteractionDetectionMethod()
Gets the value of the interactionDetectionMethod property.- Specified by:
getInteractionDetectionMethodin interfaceExperiment- Returns:
- a
CvTermobject.
-
setInteractionDetectionMethod
public void setInteractionDetectionMethod(CvTerm value)
Set the interaction detection method for this experiment If term is null, this method will set the interaction detection method to 'unspecified method' (MI:0686). Sets the value of the interactionDetectionMethod property.- Specified by:
setInteractionDetectionMethodin interfaceExperiment- Parameters:
value- : the detection method
-
getConfidences
public Collection<Confidence> getConfidences()
getConfidences.
- Specified by:
getConfidencesin interfaceExperiment- Returns:
- a
Collectionobject.
-
getAnnotations
public Collection<Annotation> getAnnotations()
getAnnotations.
- Specified by:
getAnnotationsin interfaceExperiment- Returns:
- a
Collectionobject.
-
getInteractionEvidences
public Collection<InteractionEvidence> getInteractionEvidences()
getInteractionEvidences.
- Specified by:
getInteractionEvidencesin interfaceExperiment- Returns:
- a
Collectionobject.
-
addInteractionEvidence
public boolean addInteractionEvidence(InteractionEvidence evidence)
This method will add the interaction evidence and set the experiment of the new interaction evidence to this current experiment- Specified by:
addInteractionEvidencein interfaceExperiment- Parameters:
evidence- : evidence to add- Returns:
- true if interaction evidence is added to the list of interactions
-
removeInteractionEvidence
public boolean removeInteractionEvidence(InteractionEvidence evidence)
This method will remove the interaction evidence and set the experiment of the new interaction evidence to null- Specified by:
removeInteractionEvidencein interfaceExperiment- Parameters:
evidence- : evidence to remove- Returns:
- true if interaction evidence is removed from the list of interactions
-
addAllInteractionEvidences
public boolean addAllInteractionEvidences(Collection<? extends InteractionEvidence> evidences)
This method will add all the interaction evidences and set the experiment of the new interaction evidences to this current experiment- Specified by:
addAllInteractionEvidencesin interfaceExperiment- Parameters:
evidences- : evidences to add- Returns:
- true if interaction evidences are added to the list of interaction evidences
-
removeAllInteractionEvidences
public boolean removeAllInteractionEvidences(Collection<? extends InteractionEvidence> evidences)
This method will remove the interaction evidences and set the experiment of the removed interaction evidences to null.- Specified by:
removeAllInteractionEvidencesin interfaceExperiment- Parameters:
evidences- : evidences to remove- Returns:
- true if interaction evidences are removed from the list of interactions
-
getVariableParameters
public Collection<VariableParameter> getVariableParameters()
Getter for the field
variableParameters.- Specified by:
getVariableParametersin interfaceExperiment- Returns:
- a
Collectionobject.
-
addVariableParameter
public boolean addVariableParameter(VariableParameter variableParameter)
This method will add the variableParameter and set the experiment of the new variableParameter to this current experiment- Specified by:
addVariableParameterin interfaceExperiment- Parameters:
variableParameter- : parameter to add- Returns:
- true if variableParameter is added to the list of variableParameters
-
removeVariableParameter
public boolean removeVariableParameter(VariableParameter variableParameter)
This method will remove the variableParameter and set the experiment of the removed variableParameter to null.- Specified by:
removeVariableParameterin interfaceExperiment- Parameters:
variableParameter- : parameter to remove- Returns:
- true if variableParameter is removed from the list of variableParameters
-
addAllVariableParameters
public boolean addAllVariableParameters(Collection<? extends VariableParameter> variableParameters)
This method will add all variableParameters and set the experiment of the new variableParameters to this current experiment- Specified by:
addAllVariableParametersin interfaceExperiment- Parameters:
variableParameters- : parameters to add- Returns:
- true if variableParameters are added to the list of variableParameters
-
removeAllVariableParameters
public boolean removeAllVariableParameters(Collection<? extends VariableParameter> variableParameters)
This method will remove all the variableParameters and set the experiment of the removed variableParameters to null.- Specified by:
removeAllVariableParametersin interfaceExperiment- Parameters:
variableParameters- : parameters to remove- Returns:
- true if variableParameters are removed from the list of variableParameters
-
getExperimentNamesContainer
public NamesContainer getExperimentNamesContainer()
Gets the value of the experimentNamesContainer property.- Returns:
- a
NamesContainerobject.
-
setExperimentNamesContainer
public void setExperimentNamesContainer(NamesContainer value)
Sets the value of the experimentNamesContainer property.- Parameters:
value- allowed object isNamesContainer
-
setJAXBPublication
public void setJAXBPublication(BibRef publication)
setJAXBPublication.
- Parameters:
publication- aBibRefobject.
-
initialiseFullNameFromPublication
protected abstract void initialiseFullNameFromPublication(BibRef publication)
initialiseFullNameFromPublication.
- Parameters:
publication- aBibRefobject.
-
setExperimentXrefContainer
public void setExperimentXrefContainer(ExperimentXrefContainer value)
Sets the value of the xref property.- Parameters:
value- allowed object isXrefContainer
-
setJAXBHostOrganismWrapper
public void setJAXBHostOrganismWrapper(AbstractXmlExperiment.JAXBHostOrganismWrapper wrapper)
setJAXBHostOrganismWrapper.
- Parameters:
wrapper- aAbstractXmlExperiment.JAXBHostOrganismWrapperobject.
-
setJAXBInteractionDetectionMethod
public void setJAXBInteractionDetectionMethod(XmlCvTerm value)
Sets the value of the interactionDetectionMethod property.- Parameters:
value- allowed object isXmlCvTerm
-
getParticipantIdentificationMethod
public CvTerm getParticipantIdentificationMethod()
Gets the value of the participantIdentificationMethod property.- Specified by:
getParticipantIdentificationMethodin interfaceExtendedPsiXmlExperiment- Returns:
- a
CvTermobject.
-
setParticipantIdentificationMethod
public void setParticipantIdentificationMethod(CvTerm value)
setParticipantIdentificationMethod.
Sets the value of the participantIdentificationMethod property.- Specified by:
setParticipantIdentificationMethodin interfaceExtendedPsiXmlExperiment- Parameters:
value- aCvTermobject.
-
getFeatureDetectionMethod
public CvTerm getFeatureDetectionMethod()
Gets the value of the featureDetectionMethod property.- Specified by:
getFeatureDetectionMethodin interfaceExtendedPsiXmlExperiment- Returns:
- a
CvTermobject.
-
setFeatureDetectionMethod
public void setFeatureDetectionMethod(CvTerm value)
setFeatureDetectionMethod.
Sets the value of the featureDetectionMethod property.- Specified by:
setFeatureDetectionMethodin interfaceExtendedPsiXmlExperiment- Parameters:
value- aCvTermobject.
-
setJAXBConfidenceWrapper
public void setJAXBConfidenceWrapper(AbstractXmlExperiment.JAXBConfidenceWrapper wrapper)
setJAXBConfidenceWrapper.
- Parameters:
wrapper- aAbstractXmlExperiment.JAXBConfidenceWrapperobject.
-
setJAXBVariableParameterValuesWrapper
public void setJAXBVariableParameterValuesWrapper(AbstractXmlExperiment.JAXBVariableParameterWrapper jaxbVariableParameterList)
setJAXBVariableParameterValuesWrapper.
- Parameters:
jaxbVariableParameterList- aAbstractXmlExperiment.JAXBVariableParameterWrapperobject.
-
setJAXBAttributeWrapper
public void setJAXBAttributeWrapper(AbstractXmlExperiment.JAXBAttributeWrapper wrapper)
setJAXBAttributeWrapper.
- Parameters:
wrapper- aAbstractXmlExperiment.JAXBAttributeWrapperobject.
-
getId
public int getId()
Gets the value of the id property.- Specified by:
getIdin interfaceExtendedPsiXmlExperiment- Returns:
- a int.
-
setId
public void setId(int value)
setId.
Sets the value of the id property.- Specified by:
setIdin interfaceExtendedPsiXmlExperiment- Parameters:
value- a int.
-
setJAXBId
public void setJAXBId(int value)
setJAXBId.
- Parameters:
value- a int.
-
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
-
getShortName
public String getShortName()
The short name of the experiment. It can be null or empty. Ex: author-2013-1- Specified by:
getShortNamein interfaceNamedExperiment- Returns:
- the short name
-
setShortName
public void setShortName(String name)
Sets the short name of an experiment- Specified by:
setShortNamein interfaceNamedExperiment- Parameters:
name- : short name
-
getFullName
public String getFullName()
The full name of the experiment. It can be null Ex: publication title, experiment description- Specified by:
getFullNamein interfaceNamedExperiment- Returns:
- the full name
-
setFullName
public void setFullName(String name)
Sets the full name of the experiment- Specified by:
setFullNamein interfaceNamedExperiment- Parameters:
name- : full name
-
getAliases
public List<Alias> getAliases()
Collection of aliases for an experiment. The Collection cannot be null and if the experiment does not have any aliases, the method should return an empty Collection.- Specified by:
getAliasesin interfaceNamedExperiment- Returns:
- the aliases
-
getHostOrganisms
public List<Organism> getHostOrganisms()
getHostOrganisms.
- Specified by:
getHostOrganismsin interfaceExtendedPsiXmlExperiment- Returns:
- a
Listobject.
-
initialiseAnnotationWrapper
protected void initialiseAnnotationWrapper()
initialiseAnnotationWrapper.
-
initialiseInteractions
protected void initialiseInteractions()
initialiseInteractions.
-
initialiseConfidenceWrapper
protected void initialiseConfidenceWrapper()
initialiseConfidenceWrapper.
-
initialiseVariableParameters
protected void initialiseVariableParameters()
initialiseVariableParameters.
-
-