|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.rd.kodo.query.listen.StringContains
Tests if the target contains the given argument. The argument must be a constant.
Examples:
"address.street.ext:stringContains (\"main\")"
| Field Summary | |
static java.lang.String |
TAG
|
| Constructor Summary | |
StringContains()
|
|
| Method Summary | |
java.lang.Object |
evaluate(java.lang.Object target,
java.lang.Object arg,
java.lang.Object candidate,
com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm)
Evaluate the given expression. |
boolean |
expectsArgument()
Return true if this extension expects an argument to act on. |
boolean |
expectsTarget()
Return true if this extension expects a target to act on. |
java.lang.String |
getTag()
Return the tag that this extension listens for. |
boolean |
isExpression()
Return true if this extension is an expression; i.e. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String TAG
| Constructor Detail |
public StringContains()
| Method Detail |
public java.lang.String getTag()
FilterListener
getTag in interface FilterListenerpublic boolean expectsArgument()
FilterListenerfield.ext:toUpperCase ().
expectsArgument in interface FilterListenerpublic boolean expectsTarget()
FilterListenerfield.ext:toUpperCase () acts on the target
field but has no arguments, while another possible form,
ext:toUpperCase (field) has no target but does have an
argument.
expectsTarget in interface FilterListenerpublic boolean isExpression()
FilterListenertrue or false on its own.
isExpression in interface FilterListener
public java.lang.Object evaluate(java.lang.Object target,
java.lang.Object arg,
java.lang.Object candidate,
com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm)
FilterListener
evaluate in interface FilterListenertarget - the target object / field value to act on; will be
null if this extension does not expect a targetarg - the value of the argument given in the filter; will
be null if this extension does not expect an
argumentcandidate - the candidate object being evaluatedpm - a persistence manager to use if needed
Boolean.TRUE or Boolean.FALSE
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||