Class XmlStoichiometry
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultStoichiometry
-
- psidev.psi.mi.jami.xml.model.extension.XmlStoichiometry
-
- All Implemented Interfaces:
FileSourceContext
,Stoichiometry
public class XmlStoichiometry extends DefaultStoichiometry implements FileSourceContext
Xml implementation of stoichiometry- Since:
02/08/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description XmlStoichiometry()
XmlStoichiometry(int value)
Constructor for XmlStoichiometry.XmlStoichiometry(int minValue, int maxValue)
Constructor for XmlStoichiometry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSourceLocator
getSourceLocator()
Getter for the fieldsourceLocator
.void
setMaxValue(int value)
void
setMinValue(int value)
void
setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locatorvoid
setSourceLocator(PsiXmlLocator sourceLocator)
Setter for the fieldsourceLocator
.void
setValue(int value)
String
toString()
-
Methods inherited from class psidev.psi.mi.jami.model.impl.DefaultStoichiometry
equals, getMaxValue, getMinValue, hashCode
-
-
-
-
Constructor Detail
-
XmlStoichiometry
public XmlStoichiometry()
-
XmlStoichiometry
public XmlStoichiometry(int value)
Constructor for XmlStoichiometry.
- Parameters:
value
- a int.
-
XmlStoichiometry
public XmlStoichiometry(int minValue, int maxValue)
Constructor for XmlStoichiometry.
- Parameters:
minValue
- a int.maxValue
- a int.
-
-
Method Detail
-
setValue
public void setValue(int value)
-
setMinValue
public void setMinValue(int value)
- Overrides:
setMinValue
in classDefaultStoichiometry
-
setMaxValue
public void setMaxValue(int value)
- Overrides:
setMaxValue
in classDefaultStoichiometry
-
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
-
setSourceLocator
public void setSourceLocator(PsiXmlLocator sourceLocator)
Setter for the field
sourceLocator
.- Parameters:
sourceLocator
- aPsiXmlLocator
object.
-
toString
public String toString()
- Specified by:
toString
in interfaceFileSourceContext
- Overrides:
toString
in classDefaultStoichiometry
- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
-