javax.rad.model.condition
Class BaseCondition

java.lang.Object
  extended by javax.rad.model.condition.BaseCondition
All Implemented Interfaces:
Serializable, Cloneable, ICondition
Direct Known Subclasses:
CompareCondition, Not, OperatorCondition

public abstract class BaseCondition
extends Object
implements ICondition, Serializable, Cloneable

The BaseCondition is the default implementation of ICondition. It offers the possibility to use the Or and And operator with other conditions.

See Also:
Serialized Form

Constructor Summary
BaseCondition()
           
 
Method Summary
 And and(ICondition pCondition)
          It connects with an logic AND the specified ICondition.
 ICondition clone()
          Return a clone of the specific ICondition.
 Or or(ICondition pCondition)
          It connects with an logic OR the specified ICondition.
 String toString()
          
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.rad.model.condition.ICondition
isFulfilled
 

Constructor Detail

BaseCondition

public BaseCondition()
Method Detail

toString

public String toString()

Overrides:
toString in class Object

and

public And and(ICondition pCondition)
It connects with an logic AND the specified ICondition.

Specified by:
and in interface ICondition
Parameters:
pCondition - the ICondition to add
Returns:
this ICondition itself as result.

or

public Or or(ICondition pCondition)
It connects with an logic OR the specified ICondition.

Specified by:
or in interface ICondition
Parameters:
pCondition - the ICondition to add
Returns:
this ICondition itself as result.

clone

public ICondition clone()
Return a clone of the specific ICondition.

Specified by:
clone in interface ICondition
Overrides:
clone in class Object
Returns:
a clone of the specific ICondition.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.