com.fatwire.assetapi.query
Class SimpleCondition

java.lang.Object
  extended by com.fatwire.assetapi.query.SimpleCondition
All Implemented Interfaces:
Condition

public class SimpleCondition
extends java.lang.Object
implements Condition

This class contains a sample simple implementation for Condition interface.


Constructor Summary
SimpleCondition(ConditionExpression ce)
           
 
Method Summary
 Condition and(Condition input)
          Joins (Conjunction) a given Condition with this Condition
 ConditionExpression getExpression()
          Returns ConditionExpression this Condition represents
 JoinTypeEnum getJoinType()
          Returns the nesting type associated with the condition
 Condition getLeftCondition()
          Returns the left hand side of joined condition
 Condition getRightCondition()
          Returns the right hand side of joined condition
 Condition or(Condition input)
          Joins (Disjunction) a given Condition with this Condition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCondition

public SimpleCondition(ConditionExpression ce)
Method Detail

getJoinType

public JoinTypeEnum getJoinType()
Description copied from interface: Condition
Returns the nesting type associated with the condition

Specified by:
getJoinType in interface Condition
Returns:
type of nesting of this condition.

getLeftCondition

public Condition getLeftCondition()
Description copied from interface: Condition
Returns the left hand side of joined condition

Specified by:
getLeftCondition in interface Condition
Returns:
Left hand side of joined condition

getRightCondition

public Condition getRightCondition()
Description copied from interface: Condition
Returns the right hand side of joined condition

Specified by:
getRightCondition in interface Condition
Returns:
Right hand side of joined condition

getExpression

public ConditionExpression getExpression()
Description copied from interface: Condition
Returns ConditionExpression this Condition represents

Specified by:
getExpression in interface Condition
Returns:
ConditionExpression associated with this condition

and

public Condition and(Condition input)
Description copied from interface: Condition
Joins (Conjunction) a given Condition with this Condition

Specified by:
and in interface Condition
Parameters:
input - Condition to be joined
Returns:
Joined Condition

or

public Condition or(Condition input)
Description copied from interface: Condition
Joins (Disjunction) a given Condition with this Condition

Specified by:
or in interface Condition
Parameters:
input - Condition to be joined
Returns:
Joined Condition