org.apache.velocity.app.event
public interface InvalidReferenceEventHandler extends EventHandler
This feature should be regarded as experimental.
Modifier and Type | Interface and Description |
---|---|
static class |
InvalidReferenceEventHandler.InvalidGetMethodExecutor
Defines the execution strategy for invalidGetMethod
|
static class |
InvalidReferenceEventHandler.InvalidMethodExecutor
Defines the execution strategy for invalidGetMethod
|
static class |
InvalidReferenceEventHandler.InvalidSetMethodExecutor
Defines the execution strategy for invalidGetMethod
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invalidGetMethod(Context context,
java.lang.String reference,
java.lang.Object object,
java.lang.String property,
Info info)
Called when object is null or there is no getter for the given
property.
|
java.lang.Object |
invalidMethod(Context context,
java.lang.String reference,
java.lang.Object object,
java.lang.String method,
Info info)
Called when object is null or the given method does not exist.
|
boolean |
invalidSetMethod(Context context,
java.lang.String leftreference,
java.lang.String rightreference,
Info info)
Called when object is null or there is no setter for the given
property.
|
java.lang.Object invalidGetMethod(Context context, java.lang.String reference, java.lang.Object object, java.lang.String property, Info info)
context
- the context when the reference was found invalidreference
- string with complete invalid reference. If silent reference, will start with $!object
- the object referred to, or null if not foundproperty
- the property name from the referenceinfo
- contains template, line, column detailsboolean invalidSetMethod(Context context, java.lang.String leftreference, java.lang.String rightreference, Info info)
context
- the context when the reference was found invalidleftreference
- left reference being assigned torightreference
- invalid reference on the rightinfo
- contains info on template, line, coljava.lang.Object invalidMethod(Context context, java.lang.String reference, java.lang.Object object, java.lang.String method, Info info)
context
- the context when the reference was found invalidreference
- string with complete invalid reference. If silent reference, will start with $!object
- the object referred to, or null if not foundmethod
- the name of the (non-existent) methodinfo
- contains template, line, column detailsCopyright © 2000-2014. All Rights Reserved.