org.objectweb.medor.expression.api

Interface VariableOperand

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

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(PType type)
This method changes the type of the current operand object.
void
setValue(Date p)
It assigns the operand value
void
setValue(Object p)
It assigns the operand value
void
setValue(String p)
It assigns the operand value
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(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(short p)
It assigns the operand value

Methods inherited from interface org.objectweb.medor.clone.api.Cloneable

clone

Methods inherited from interface org.objectweb.medor.expression.api.Expression

compileExpression, evaluate, getType

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

Method Details

setType

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


setValue

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

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


setValue

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

Parameters:
p - the new Object value.


setValue

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

Parameters:
p - the new String value.


setValue

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

Parameters:
p - the new boolean value.


setValue

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

Parameters:
p - the new byte value.


setValue

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

Parameters:
p - the new char value.


setValue

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

Parameters:
p - the new double value.


setValue

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

Parameters:
p - the new float value.


setValue

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

Parameters:
p - the new integer value.


setValue

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

Parameters:
p - the new long value.


setValue

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

Parameters:
p - the new short value.