net.sf.jso.query
Class ValueOperand

java.lang.Object
  extended bynet.sf.jso.query.CriteriaOperand
      extended bynet.sf.jso.query.ValueOperand
All Implemented Interfaces:
java.io.Serializable

public class ValueOperand
extends CriteriaOperand

Criteria operand which holds a value, corresponding to a variable's (class) field.

See Also:
Serialized Form

Constructor Summary
ValueOperand()
          Constructs operand.
ValueOperand(java.lang.Object aValue)
          Constructs operand.
 
Method Summary
 java.lang.Object getValue()
          Returns operand's value.
 boolean isEmpty()
          Indicates operands attributes have been specified.
 void setValue(java.lang.Object aValue)
          Sets operand's value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueOperand

public ValueOperand()
Constructs operand.


ValueOperand

public ValueOperand(java.lang.Object aValue)
Constructs operand.

Parameters:
aValue - Operand's value.
Method Detail

setValue

public void setValue(java.lang.Object aValue)
Sets operand's value. May only be set once.

Parameters:
aValue - Operand's value. May be null.
Throws:
java.lang.IllegalStateException - If a value has not been set.

getValue

public java.lang.Object getValue()
Returns operand's value. isEmpty() method should be called first to verify if a value has been set.

Returns:
Operand's value.
Throws:
java.lang.IllegalStateException - If a value has not been set.

isEmpty

public boolean isEmpty()
Indicates operands attributes have been specified.

Specified by:
isEmpty in class CriteriaOperand
Returns:
true if attributes have been set; false.

toString

public java.lang.String toString()