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 boolean
equals(Object o)
int
getId()
Getter for the fieldid
.Integer
getOrder()
Getter for the fieldorder
.FileSourceLocator
getSourceLocator()
Getter for the fieldsourceLocator
.String
getValue()
Getter for the fieldvalue
.VariableParameter
getVariableParameter()
Getter for the fieldvariableParameter
.int
hashCode()
void
setJAXBId(int id)
setJAXBId.void
setJAXBOrder(Integer order)
setJAXBOrder.void
setJAXBValue(String value)
setJAXBValue.void
setSourceLocation(PsiXmlLocator sourceLocator)
setSourceLocation.void
setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locatorvoid
setVariableParameter(VariableParameter variableParameter)
Setter for the fieldvariableParameter
.Locator
sourceLocation()
String
toString()
toString
-
-
-
Constructor Detail
-
AbstractXmlVariableParameterValue
public AbstractXmlVariableParameterValue()
Constructor for AbstractXmlVariableParameterValue.
-
AbstractXmlVariableParameterValue
public AbstractXmlVariableParameterValue(String value, VariableParameter variableParameter)
Constructor for AbstractXmlVariableParameterValue.
- Parameters:
value
- aString
object.variableParameter
- aVariableParameter
object.
-
AbstractXmlVariableParameterValue
public AbstractXmlVariableParameterValue(String value, VariableParameter variableParameter, Integer order)
Constructor for AbstractXmlVariableParameterValue.
- Parameters:
value
- aString
object.variableParameter
- aVariableParameter
object.order
- aInteger
object.
-
-
Method Detail
-
getValue
public String getValue()
Getter for the field
value
.- Specified by:
getValue
in interfaceVariableParameterValue
- Returns:
- a
String
object.
-
getOrder
public Integer getOrder()
Getter for the field
order
.- Specified by:
getOrder
in interfaceVariableParameterValue
- Returns:
- a
Integer
object.
-
getVariableParameter
public VariableParameter getVariableParameter()
Getter for the field
variableParameter
.- Specified by:
getVariableParameter
in interfaceVariableParameterValue
- Returns:
- a
VariableParameter
object.
-
setVariableParameter
public void setVariableParameter(VariableParameter variableParameter)
Setter for the field
variableParameter
.- Parameters:
variableParameter
- aVariableParameter
object.
-
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
-
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
-
setSourceLocation
public void setSourceLocation(PsiXmlLocator sourceLocator)
setSourceLocation.
- Parameters:
sourceLocator
- aPsiXmlLocator
object.
-
getId
public int getId()
Getter for the field
id
.- Returns:
- a int.
-
setJAXBValue
public void setJAXBValue(String value)
setJAXBValue.
- Parameters:
value
- aString
object.
-
setJAXBId
public void setJAXBId(int id)
setJAXBId.
- Parameters:
id
- a int.
-
-