Class AbstractXmlParameter
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml300.AbstractXmlParameter
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable,FileSourceContext,Parameter
- Direct Known Subclasses:
XmlModelledParameter,XmlParameter
public abstract class AbstractXmlParameter extends Object implements Parameter, FileSourceContext, com.sun.xml.bind.Locatable
Abstract Xml implementation of Parameter- Since:
19/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlParameter()Constructor for AbstractXmlParameter.AbstractXmlParameter(CvTerm type, ParameterValue value, BigDecimal uncertainty, CvTerm unit)Constructor for AbstractXmlParameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.CvTermgetType()Getter for the fieldtype.BigDecimalgetUncertainty()Getter for the fielduncertainty.CvTermgetUnit()Getter for the fieldunit.ParameterValuegetValue()Getter for the fieldvalue.inthashCode()voidsetJAXBBase(Short value)Sets the value of the base property.voidsetJAXBExponent(Short value)Sets the value of the exponent property.voidsetJAXBFactor(BigDecimal value)Sets the value of the factor property.voidsetJAXBTerm(String value)Sets the value of the term property.voidsetJAXBTermAc(String value)Sets the value of the termAc property.voidsetJAXBUncertainty(BigDecimal value)Sets the value of the uncertainty property.voidsetJAXBUnit(String value)Sets the value of the unit property.voidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorvoidsetUnitAc(String value)Sets the value of the unitAc property.LocatorsourceLocation()StringtoString()toString
-
-
-
Constructor Detail
-
AbstractXmlParameter
public AbstractXmlParameter()
Constructor for AbstractXmlParameter.
-
AbstractXmlParameter
public AbstractXmlParameter(CvTerm type, ParameterValue value, BigDecimal uncertainty, CvTerm unit)
Constructor for AbstractXmlParameter.
- Parameters:
type- aCvTermobject.value- aParameterValueobject.uncertainty- aBigDecimalobject.unit- aCvTermobject.
-
-
Method Detail
-
getType
public CvTerm getType()
Getter for the field
type.
-
getUncertainty
public BigDecimal getUncertainty()
Getter for the field
uncertainty.- Specified by:
getUncertaintyin interfaceParameter- Returns:
- a
BigDecimalobject.
-
getUnit
public CvTerm getUnit()
Getter for the field
unit.
-
getValue
public ParameterValue getValue()
Getter for the field
value.- Specified by:
getValuein interfaceParameter- Returns:
- a
ParameterValueobject.
-
setJAXBTerm
public void setJAXBTerm(String value)
Sets the value of the term property.- Parameters:
value- allowed object isString
-
setJAXBTermAc
public void setJAXBTermAc(String value)
Sets the value of the termAc property.- Parameters:
value- allowed object isString
-
setJAXBUnit
public void setJAXBUnit(String value)
Sets the value of the unit property.- Parameters:
value- allowed object isString
-
setUnitAc
public void setUnitAc(String value)
Sets the value of the unitAc property.- Parameters:
value- allowed object isString
-
setJAXBBase
public void setJAXBBase(Short value)
Sets the value of the base property.- Parameters:
value- allowed object isShort
-
setJAXBExponent
public void setJAXBExponent(Short value)
Sets the value of the exponent property.- Parameters:
value- allowed object isShort
-
setJAXBFactor
public void setJAXBFactor(BigDecimal value)
Sets the value of the factor property.- Parameters:
value- allowed object isBigDecimal
-
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
-
setJAXBUncertainty
public void setJAXBUncertainty(BigDecimal value)
Sets the value of the uncertainty property.- Parameters:
value- allowed object isDouble
-
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
-
-