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 boolean
equals(Object o)
FileSourceLocator
getSourceLocator()
Getter for the fieldsourceLocator
.CvTerm
getType()
Getter for the fieldtype
.BigDecimal
getUncertainty()
Getter for the fielduncertainty
.CvTerm
getUnit()
Getter for the fieldunit
.ParameterValue
getValue()
Getter for the fieldvalue
.int
hashCode()
void
setJAXBBase(Short value)
Sets the value of the base property.void
setJAXBExponent(Short value)
Sets the value of the exponent property.void
setJAXBFactor(BigDecimal value)
Sets the value of the factor property.void
setJAXBTerm(String value)
Sets the value of the term property.void
setJAXBTermAc(String value)
Sets the value of the termAc property.void
setJAXBUncertainty(BigDecimal value)
Sets the value of the uncertainty property.void
setJAXBUnit(String value)
Sets the value of the unit property.void
setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locatorvoid
setUnitAc(String value)
Sets the value of the unitAc property.Locator
sourceLocation()
String
toString()
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
- aCvTerm
object.value
- aParameterValue
object.uncertainty
- aBigDecimal
object.unit
- aCvTerm
object.
-
-
Method Detail
-
getType
public CvTerm getType()
Getter for the field
type
.
-
getUncertainty
public BigDecimal getUncertainty()
Getter for the field
uncertainty
.- Specified by:
getUncertainty
in interfaceParameter
- Returns:
- a
BigDecimal
object.
-
getUnit
public CvTerm getUnit()
Getter for the field
unit
.
-
getValue
public ParameterValue getValue()
Getter for the field
value
.- Specified by:
getValue
in interfaceParameter
- Returns:
- a
ParameterValue
object.
-
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:
sourceLocation
in interfacecom.sun.xml.bind.Locatable
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator
.- Specified by:
getSourceLocator
in interfaceFileSourceContext
- Returns:
- a
FileSourceLocator
object.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locator- Specified by:
setSourceLocator
in 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:
toString
in interfaceFileSourceContext
- Overrides:
toString
in classObject
- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
-