Class XmlVariableParameter
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml300.XmlVariableParameter
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable,FileSourceContext,VariableParameter
public class XmlVariableParameter extends Object implements VariableParameter, FileSourceContext, com.sun.xml.bind.Locatable
XML 3.0 implementation of variable parameter- Since:
30/05/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXmlVariableParameter.JAXBVariableValueWrapper
-
Constructor Summary
Constructors Constructor Description XmlVariableParameter()Constructor for XmlVariableParameter.XmlVariableParameter(String description)Constructor for XmlVariableParameter.XmlVariableParameter(String description, CvTerm unit)Constructor for XmlVariableParameter.XmlVariableParameter(String description, Experiment experiment)Constructor for XmlVariableParameter.XmlVariableParameter(String description, Experiment experiment, CvTerm unit)Constructor for XmlVariableParameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDescription()Getter for the fielddescription.ExperimentgetExperiment()Getter for the fieldexperiment.FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.CvTermgetUnit()Getter for the fieldunit.Collection<VariableParameterValue>getVariableValues()getVariableValues.inthashCode()protected voidinitialiseVatiableParameterValues()initialiseVatiableParameterValues.voidsetDescription(String description)Sets the short description of this parameter.voidsetExperiment(Experiment experiment)Sets the experiment for this variableParametervoidsetExperimentAndAddVariableParameter(Experiment experiment)Sets the experiment for this variableParameter and add this variableParameter to the list of variableParameters of this experiment.voidsetJAXBDescription(String desc)setJAXBDescription.voidsetJAXBUnit(XmlCvTerm unit)setJAXBUnit.voidsetJAXBVariableParameterValuesWrapper(XmlVariableParameter.JAXBVariableValueWrapper jaxbVariableValueList)setJAXBVariableParameterValuesWrapper.voidsetSourceLocation(PsiXmlLocator sourceLocator)setSourceLocation.voidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorvoidsetUnit(CvTerm unit)Sets the unit of this variableParameter.LocatorsourceLocation()StringtoString()toString
-
-
-
Constructor Detail
-
XmlVariableParameter
public XmlVariableParameter()
Constructor for XmlVariableParameter.
-
XmlVariableParameter
public XmlVariableParameter(String description)
Constructor for XmlVariableParameter.
- Parameters:
description- aStringobject.
-
XmlVariableParameter
public XmlVariableParameter(String description, Experiment experiment)
Constructor for XmlVariableParameter.
- Parameters:
description- aStringobject.experiment- aExperimentobject.
-
XmlVariableParameter
public XmlVariableParameter(String description, CvTerm unit)
Constructor for XmlVariableParameter.
-
XmlVariableParameter
public XmlVariableParameter(String description, Experiment experiment, CvTerm unit)
Constructor for XmlVariableParameter.
- Parameters:
description- aStringobject.experiment- aExperimentobject.unit- aCvTermobject.
-
-
Method Detail
-
initialiseVatiableParameterValues
protected void initialiseVatiableParameterValues()
initialiseVatiableParameterValues.
-
getDescription
public String getDescription()
Getter for the field
description.- Specified by:
getDescriptionin interfaceVariableParameter- Returns:
- a
Stringobject.
-
setDescription
public void setDescription(String description)
Sets the short description of this parameter.- Specified by:
setDescriptionin interfaceVariableParameter- Parameters:
description- : description
-
getUnit
public CvTerm getUnit()
Getter for the field
unit.- Specified by:
getUnitin interfaceVariableParameter- Returns:
- a
CvTermobject.
-
setUnit
public void setUnit(CvTerm unit)
Sets the unit of this variableParameter.- Specified by:
setUnitin interfaceVariableParameter- Parameters:
unit- : unit
-
getVariableValues
public Collection<VariableParameterValue> getVariableValues()
getVariableValues.
- Specified by:
getVariableValuesin interfaceVariableParameter- Returns:
- a
Collectionobject.
-
getExperiment
public Experiment getExperiment()
Getter for the field
experiment.- Specified by:
getExperimentin interfaceVariableParameter- Returns:
- a
Experimentobject.
-
setExperiment
public void setExperiment(Experiment experiment)
Sets the experiment for this variableParameter- Specified by:
setExperimentin interfaceVariableParameter- Parameters:
experiment- : experiment to set
-
setExperimentAndAddVariableParameter
public void setExperimentAndAddVariableParameter(Experiment experiment)
Sets the experiment for this variableParameter and add this variableParameter to the list of variableParameters of this experiment. If experiment is null, remove the variableParameter from the previous experiment attached to this variableParameter- Specified by:
setExperimentAndAddVariableParameterin interfaceVariableParameter- Parameters:
experiment- : experiment to set
-
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.
-
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
-
setJAXBDescription
public void setJAXBDescription(String desc)
setJAXBDescription.
- Parameters:
desc- aStringobject.
-
setJAXBUnit
public void setJAXBUnit(XmlCvTerm unit)
setJAXBUnit.
- Parameters:
unit- aXmlCvTermobject.
-
setJAXBVariableParameterValuesWrapper
public void setJAXBVariableParameterValuesWrapper(XmlVariableParameter.JAXBVariableValueWrapper jaxbVariableValueList)
setJAXBVariableParameterValuesWrapper.
- Parameters:
jaxbVariableValueList- aXmlVariableParameter.JAXBVariableValueWrapperobject.
-
-