org.dawb.passerelle.common.message
Class Variable

java.lang.Object
  extended by org.dawb.passerelle.common.message.Variable
All Implemented Interfaces:
IVariable
Direct Known Subclasses:
XPathVariable

public class Variable
extends java.lang.Object
implements IVariable


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.dawb.passerelle.common.message.IVariable
IVariable.VARIABLE_TYPE
 
Constructor Summary
Variable(java.lang.String variableName, IVariable.VARIABLE_TYPE variableType, java.lang.Object exampleValue)
           
Variable(java.lang.String variableName, IVariable.VARIABLE_TYPE variableType, java.lang.Object exampleValue, java.lang.Class<?> clazz)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getErrorMessage()
          Returns not null if the variable has been configured incorrectly.
 java.lang.Object getExampleValue()
          name of variable
 java.lang.Class<?> getVariableClass()
          the class of the variable for instance String, File or AbstractDataset.
 java.lang.String getVariableName()
          name of variable
 IVariable.VARIABLE_TYPE getVariableType()
           
 int hashCode()
           
 void setExampleValue(java.lang.Object exampleValue)
           
 void setVariableClass(java.lang.Class<?> caraiableClass)
           
 void setVariableName(java.lang.String variableName)
           
 void setVariableType(IVariable.VARIABLE_TYPE variableType)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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: