org.objectweb.medor.expression.api
Interface VariableOperand

All Superinterfaces:
org.objectweb.medor.clone.api.Cloneable, java.lang.Cloneable, Expression, Operand, java.io.Serializable
All Known Subinterfaces:
CalculatedParameterOperand, ParameterOperand
All Known Implementing Classes:
AbstractCalculatedParameterOperand, BasicParameterOperand, BasicVariableOperand, StringComparatorParameterOperand

public interface VariableOperand
extends Operand

This Interface extends a simple operand. It offers methods to sets new value to this object. The type of this operand does not change.


Method Summary
 void setType(org.objectweb.jorm.type.api.PType type)
          This method changes the type of the current operand object.
 void setValue(boolean p)
          It assigns the operand value as a boolean value
 void setValue(byte p)
          It assigns the operand value
 void setValue(char p)
          It assigns the operand value
 void setValue(java.util.Date p)
          It assigns the operand value
 void setValue(double p)
          It assigns the operand value
 void setValue(float p)
          It assigns the operand value
 void setValue(int p)
          It assigns the operand value
 void setValue(long p)
          It assigns the operand value
 void setValue(java.lang.Object p)
          It assigns the operand value
 void setValue(short p)
          It assigns the operand value
 void setValue(java.lang.String p)
          It assigns the operand value
 
Methods inherited from interface org.objectweb.medor.expression.api.Operand
getBigDecimal, getBigInteger, getBoolean, getByte, getByteArray, getChar, getCharArray, getDate, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, isDefined, setIsDefined
 
Methods inherited from interface org.objectweb.medor.expression.api.Expression
compileExpression, evaluate, getType
 
Methods inherited from interface org.objectweb.medor.clone.api.Cloneable
clone
 

Method Detail

setType

public void setType(org.objectweb.jorm.type.api.PType type)
This method changes the type of the current operand object.


setValue

public void setValue(boolean p)
              throws TypingException
It assigns the operand value as a boolean value

Parameters:
p - the new boolean value.
Throws:
TypingException

setValue

public void setValue(int p)
              throws TypingException
It assigns the operand value

Parameters:
p - the new integer value.
Throws:
TypingException

setValue

public void setValue(byte p)
              throws TypingException
It assigns the operand value

Parameters:
p - the new byte value.
Throws:
TypingException

setValue

public void setValue(short p)
              throws TypingException
It assigns the operand value

Parameters:
p - the new short value.
Throws:
TypingException

setValue

public void setValue(long p)
              throws TypingException
It assigns the operand value

Parameters:
p - the new long value.
Throws:
TypingException

setValue

public void setValue(float p)
              throws TypingException
It assigns the operand value

Parameters:
p - the new float value.
Throws:
TypingException

setValue

public void setValue(double p)
              throws TypingException
It assigns the operand value

Parameters:
p - the new double value.
Throws:
TypingException

setValue

public void setValue(char p)
              throws TypingException
It assigns the operand value

Parameters:
p - the new char value.
Throws:
TypingException

setValue

public void setValue(java.lang.String p)
              throws TypingException
It assigns the operand value

Parameters:
p - the new String value.
Throws:
TypingException

setValue

public void setValue(java.util.Date p)
              throws TypingException
It assigns the operand value

Parameters:
p - the new java.util.Date value.
Throws:
TypingException

setValue

public void setValue(java.lang.Object p)
              throws TypingException
It assigns the operand value

Parameters:
p - the new Object value.
Throws:
TypingException