matches() instead.@Deprecated public class StringContains extends Object implements FilterListener
"address.street.ext:stringContains (\"main\")"
| Constructor and Description |
|---|
StringContains()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluate(Object target,
Class targetClass,
Object[] args,
Class[] argClasses,
Object candidate,
StoreContext ctx)
Deprecated.
Evaluate the given expression.
|
boolean |
expectsArguments()
Deprecated.
Return true if this extension expects arguments to act on.
|
boolean |
expectsTarget()
Deprecated.
Return true if this extension expects a target to act on.
|
String |
getTag()
Deprecated.
Return the tag that this extension listens for.
|
Class |
getType(Class targetClass,
Class[] argClasses)
Deprecated.
Return the expected type of the result of this listener.
|
public static final String TAG
public String getTag()
FilterListenergetTag in interface FilterListenerpublic boolean expectsArguments()
FilterListenerfield.ext:toUpperCase ().expectsArguments 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 Object evaluate(Object target, Class targetClass, Object[] args, Class[] argClasses, Object candidate, StoreContext ctx)
FilterListenerevaluate in interface FilterListenertarget - the target object / field value to act on; will be
null if this extension does not expect a targettargetClass - the expected class of the target; given in case
the target evaluates to null and typing is neededargs - the values of the arguments given in the filter;
will be null if this extension does not expect an argumentargClasses - the expected classes of the arguments; given in case
an argument evaluates to null and typing is neededcandidate - the candidate object being evaluatedctx - the persistence contextBoolean.TRUE or Boolean.FALSEpublic Class getType(Class targetClass, Class[] argClasses)
FilterListenergetType in interface FilterListenertargetClass - the expected class of the target, or null if no targetargClasses - the expected classes of the arguments, or null if
no argumentsCopyright © 2006–2022 Apache Software Foundation. All rights reserved.