javax.rad.model.condition
Class OperatorCondition

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

public abstract class OperatorCondition
extends BaseCondition

The OperatorCondition is the default implementation for logical operators.
That means it put its connected (glued) conditions in brackets

See Also:
Serialized Form

Constructor Summary
OperatorCondition()
           
 
Method Summary
 void add(ICondition pCond)
          Adds an operand to the operator condition.
 ICondition clone()
          Return a clone of the specific ICondition.
 ICondition[] getConditions()
          Returns all IConditions of this OperatorCondition.
 void remove(ICondition pCond)
          Removes an operand from the operator condition.
 void setConditions(ICondition[] pConditions)
          Sets all IConditions of this OperatorCondition.
 
Methods inherited from class javax.rad.model.condition.BaseCondition
and, or, 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

OperatorCondition

public OperatorCondition()
Method Detail

clone

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

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

add

public void add(ICondition pCond)
Adds an operand to the operator condition.

Parameters:
pCond - the operand

remove

public void remove(ICondition pCond)
Removes an operand from the operator condition.

Parameters:
pCond - the operand

getConditions

public ICondition[] getConditions()
Returns all IConditions of this OperatorCondition.

Returns:
all IConditions of this OperatorCondition.

setConditions

public void setConditions(ICondition[] pConditions)
Sets all IConditions of this OperatorCondition.

Parameters:
pConditions - the new conditions to set.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.