org.dawb.passerelle.common.message
Class Variable
java.lang.Object
org.dawb.passerelle.common.message.Variable
- All Implemented Interfaces:
- IVariable
- Direct Known Subclasses:
- XPathVariable
public class Variable
- extends java.lang.Object
- implements IVariable
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Variable
public Variable(java.lang.String variableName,
IVariable.VARIABLE_TYPE variableType,
java.lang.Object exampleValue)
Variable
public Variable(java.lang.String variableName,
IVariable.VARIABLE_TYPE variableType,
java.lang.Object exampleValue,
java.lang.Class<?> clazz)
getVariableName
public java.lang.String getVariableName()
- Description copied from interface:
IVariable
- name of variable
- Specified by:
getVariableName
in interface IVariable
- Returns:
setVariableName
public void setVariableName(java.lang.String variableName)
getVariableType
public IVariable.VARIABLE_TYPE getVariableType()
- Specified by:
getVariableType
in interface IVariable
- Returns:
setVariableType
public void setVariableType(IVariable.VARIABLE_TYPE variableType)
getVariableClass
public java.lang.Class<?> getVariableClass()
- Description copied from interface:
IVariable
- the class of the variable for instance String, File
or AbstractDataset.
- Specified by:
getVariableClass
in interface IVariable
- Returns:
setVariableClass
public void setVariableClass(java.lang.Class<?> caraiableClass)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getExampleValue
public java.lang.Object getExampleValue()
- Description copied from interface:
IVariable
- name of variable
- Specified by:
getExampleValue
in interface IVariable
- Returns:
setExampleValue
public void setExampleValue(java.lang.Object exampleValue)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
getErrorMessage
public java.lang.String getErrorMessage()
- Description copied from interface:
IVariable
- Returns not null if the variable has been configured incorrectly.
- Specified by:
getErrorMessage
in interface IVariable
- Returns: