|
Ujorm release 1.22 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujorm.criterion.Criterion<UJO>
org.ujorm.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)
Apply the criterion to the UJO object |
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 operator have got value XFIXED or XSQL ? |
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. |
protected void |
printValue(java.lang.Object value,
java.lang.StringBuilder out)
Print an Ujo value |
java.lang.String |
toString()
|
| Methods inherited from class org.ujorm.criterion.Criterion |
|---|
and, constant, evaluate, evaluate, forAll, forNone, forSql, isBinary, join, newInstance, newInstance, newInstance, newInstance, 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)
Criterion
evaluate in class Criterion<UJO extends Ujo>true in case the ujo object satisfies the condition.
protected final void makeCharSequenceTest(java.lang.Object value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected final 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
protected void printValue(java.lang.Object value,
java.lang.StringBuilder out)
value - Not null value
|
Ujorm release 1.22 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||