org.ujoframework.criterion
Class BinaryCriterion<UJO extends Ujo>

java.lang.Object
  extended by org.ujoframework.criterion.Criterion<UJO>
      extended by org.ujoframework.criterion.BinaryCriterion<UJO>

public class BinaryCriterion<UJO extends Ujo>
extends Criterion<UJO>

The BinaryCriterion implementation allows to join two another Criterions into the binary tree.

Since:
0.90
Author:
Pavel Ponec

Constructor Summary
BinaryCriterion(Criterion<UJO> criterion1, BinaryOperator operator, Criterion<UJO> criterion2)
           
 
Method Summary
 boolean evaluate(UJO ujo)
           
 Criterion<UJO> getLeftNode()
          Returns the left node of the parrent
 BinaryOperator getOperator()
          Returns an operator
 Criterion<UJO> getRightNode()
          Returns the right node of the parrent
 boolean isBinary()
          Is it a Binary Criterion
 java.lang.String toString()
           
 
Methods inherited from class org.ujoframework.criterion.Criterion
and, constant, join, newInstance, newInstance, newInstance, newInstance, newInstance, newInstanceFalse, newInstanceTrue, not, or, where, where, where, where, where, whereIn, whereIn, whereNotIn, whereNotIn, whereNotNull, whereNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinaryCriterion

public BinaryCriterion(Criterion<UJO> criterion1,
                       BinaryOperator operator,
                       Criterion<UJO> criterion2)
Method Detail

getLeftNode

public final Criterion<UJO> getLeftNode()
Returns the left node of the parrent

Specified by:
getLeftNode in class Criterion<UJO extends Ujo>

getRightNode

public final Criterion<UJO> getRightNode()
Returns the right node of the parrent

Specified by:
getRightNode in class Criterion<UJO extends Ujo>

getOperator

public final BinaryOperator getOperator()
Returns an operator

Specified by:
getOperator in class Criterion<UJO extends Ujo>

evaluate

public boolean evaluate(UJO ujo)
Specified by:
evaluate in class Criterion<UJO extends Ujo>

isBinary

public final boolean isBinary()
Is it a Binary Criterion

Overrides:
isBinary in class Criterion<UJO extends Ujo>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.