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 FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.voidsetMaxValue(int value)voidsetMinValue(int value)voidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorvoidsetSourceLocator(PsiXmlLocator sourceLocator)Setter for the fieldsourceLocator.voidsetValue(int value)StringtoString()-
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:
setMinValuein classDefaultStoichiometry
-
setMaxValue
public void setMaxValue(int value)
- Overrides:
setMaxValuein classDefaultStoichiometry
-
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
-
setSourceLocator
public void setSourceLocator(PsiXmlLocator sourceLocator)
Setter for the field
sourceLocator.- Parameters:
sourceLocator- aPsiXmlLocatorobject.
-
toString
public String toString()
- Specified by:
toStringin interfaceFileSourceContext- Overrides:
toStringin classDefaultStoichiometry- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
-