org.acmsl.queryj
Class Condition

java.lang.Object
  |
  +--org.acmsl.queryj.Condition
Direct Known Subclasses:
AtomicCondition, ConditionFactory._ConditionWrapper

public abstract class Condition
extends java.lang.Object

Represents conditions.

Version:
$Revision: 1.1 $
Author:
Jose San Leandro

Constructor Summary
Condition()
          Creates a condition.
 
Method Summary
 Condition and(Condition condition)
          Requests AND evaluation with given condition.
protected  Condition getInnerCondition()
          Retrieves the inner condition.
 Condition or(Condition condition)
          Requests OR evaluation with given condition.
protected  void setInnerCondition(Condition condition)
          Specifies a new condition collection.
 java.lang.String toString()
          Outputs a text version of the condition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Condition

public Condition()
Creates a condition.

Method Detail

setInnerCondition

protected void setInnerCondition(Condition condition)
Specifies a new condition collection.


getInnerCondition

protected Condition getInnerCondition()
Retrieves the inner condition.

Returns:
such instance.

or

public Condition or(Condition condition)
Requests OR evaluation with given condition.

Parameters:
condition - the condition to evaluate.
Returns:
the resulting condition.

and

public Condition and(Condition condition)
Requests AND evaluation with given condition.

Parameters:
condition - the condition to evaluate.
Returns:
the resulting condition.

toString

public java.lang.String toString()
Outputs a text version of the condition.

Overrides:
toString in class java.lang.Object
Returns:
the condition.


Copyright © 2003 ACM S.L.. All Rights Reserved.