|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujoframework.criterion.Criterion<UJO>
org.ujoframework.criterion.ValueCriterion<UJO>
public class ValueCriterion<UJO extends Ujo>
The value criterion implementation.
| Field Summary | |
|---|---|
static Criterion<Ujo> |
FALSE
False constant criterion |
static Criterion<Ujo> |
TRUE
True constant criterion |
protected java.lang.Object |
value
|
| Constructor Summary | |
|---|---|
ValueCriterion(boolean value)
Creante an Criterion constant |
|
ValueCriterion(UjoProperty<UJO,? extends java.lang.Object> property,
Operator operator,
java.lang.Object value)
An undefined operator (null) is replaced by EQ. |
|
ValueCriterion(UjoProperty<UJO,? extends java.lang.Object> property,
Operator operator,
UjoProperty<UJO,java.lang.Object> value)
An undefined operator (null) is replaced by EQ. |
|
| Method Summary | |
|---|---|
protected int |
compare(java.lang.Comparable o1,
java.lang.Comparable o2)
Compare two object |
boolean |
evaluate(UJO ujo)
|
UjoProperty |
getLeftNode()
Returns the left node of the parrent |
Operator |
getOperator()
Returns an operator |
java.lang.Object |
getRightNode()
Returns the right node of the parrent |
boolean |
isConstant()
Is the criterion result independent on the bean object? |
boolean |
isInsensitive()
Is the operator insensitive. |
protected void |
makeArrayTest(java.lang.Object value)
Test a value is an instance of Iterable. |
protected void |
makeCharSequenceTest(java.lang.Object value)
Test a value is an instance of CharSequence or a type UjoProperty is type of CharSequence. |
java.lang.String |
toString()
|
| Methods inherited from class org.ujoframework.criterion.Criterion |
|---|
and, constant, isBinary, 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 |
| Field Detail |
|---|
public static final Criterion<Ujo> TRUE
public static final Criterion<Ujo> FALSE
protected final java.lang.Object value
| Constructor Detail |
|---|
public ValueCriterion(boolean value)
public ValueCriterion(UjoProperty<UJO,? extends java.lang.Object> property,
Operator operator,
UjoProperty<UJO,java.lang.Object> value)
public ValueCriterion(UjoProperty<UJO,? extends java.lang.Object> property,
Operator operator,
java.lang.Object value)
| Method Detail |
|---|
public final UjoProperty getLeftNode()
getLeftNode in class Criterion<UJO extends Ujo>public final java.lang.Object getRightNode()
getRightNode in class Criterion<UJO extends Ujo>public final Operator getOperator()
getOperator in class Criterion<UJO extends Ujo>public boolean evaluate(UJO ujo)
evaluate in class Criterion<UJO extends Ujo>
protected void makeCharSequenceTest(java.lang.Object value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected void makeArrayTest(java.lang.Object value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected int compare(java.lang.Comparable o1,
java.lang.Comparable o2)
public boolean isInsensitive()
public final boolean isConstant()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||