Class AbstractXmlVariableParameterValue
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.AbstractXmlVariableParameterValue
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable,FileSourceContext,VariableParameterValue
- Direct Known Subclasses:
XmlVariableParameterValue,XmlVariableParameterValue,XmlVariableParameterValue
public abstract class AbstractXmlVariableParameterValue extends Object implements VariableParameterValue, FileSourceContext, com.sun.xml.bind.Locatable
XML implementation of variable parameter value- Since:
30/05/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlVariableParameterValue()Constructor for AbstractXmlVariableParameterValue.AbstractXmlVariableParameterValue(String value, VariableParameter variableParameter)Constructor for AbstractXmlVariableParameterValue.AbstractXmlVariableParameterValue(String value, VariableParameter variableParameter, Integer order)Constructor for AbstractXmlVariableParameterValue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetId()Getter for the fieldid.IntegergetOrder()Getter for the fieldorder.FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.StringgetValue()Getter for the fieldvalue.VariableParametergetVariableParameter()Getter for the fieldvariableParameter.inthashCode()voidsetJAXBId(int id)setJAXBId.voidsetJAXBOrder(Integer order)setJAXBOrder.voidsetJAXBValue(String value)setJAXBValue.voidsetSourceLocation(PsiXmlLocator sourceLocator)setSourceLocation.voidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorvoidsetVariableParameter(VariableParameter variableParameter)Setter for the fieldvariableParameter.LocatorsourceLocation()StringtoString()toString
-
-
-
Constructor Detail
-
AbstractXmlVariableParameterValue
public AbstractXmlVariableParameterValue()
Constructor for AbstractXmlVariableParameterValue.
-
AbstractXmlVariableParameterValue
public AbstractXmlVariableParameterValue(String value, VariableParameter variableParameter)
Constructor for AbstractXmlVariableParameterValue.
- Parameters:
value- aStringobject.variableParameter- aVariableParameterobject.
-
AbstractXmlVariableParameterValue
public AbstractXmlVariableParameterValue(String value, VariableParameter variableParameter, Integer order)
Constructor for AbstractXmlVariableParameterValue.
- Parameters:
value- aStringobject.variableParameter- aVariableParameterobject.order- aIntegerobject.
-
-
Method Detail
-
getValue
public String getValue()
Getter for the field
value.- Specified by:
getValuein interfaceVariableParameterValue- Returns:
- a
Stringobject.
-
getOrder
public Integer getOrder()
Getter for the field
order.- Specified by:
getOrderin interfaceVariableParameterValue- Returns:
- a
Integerobject.
-
getVariableParameter
public VariableParameter getVariableParameter()
Getter for the field
variableParameter.- Specified by:
getVariableParameterin interfaceVariableParameterValue- Returns:
- a
VariableParameterobject.
-
setVariableParameter
public void setVariableParameter(VariableParameter variableParameter)
Setter for the field
variableParameter.- Parameters:
variableParameter- aVariableParameterobject.
-
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
-
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.
-
getId
public int getId()
Getter for the field
id.- Returns:
- a int.
-
setJAXBValue
public void setJAXBValue(String value)
setJAXBValue.
- Parameters:
value- aStringobject.
-
setJAXBId
public void setJAXBId(int id)
setJAXBId.
- Parameters:
id- a int.
-
-