public class PushVOFilter extends Object implements Filter
| Constructor and Description |
|---|
PushVOFilter(Class<? extends Object> klass)
Creates a PushVOFilter that will try to create an object with the given class
and populate this object with the action input values.
|
PushVOFilter(Class klass,
boolean tryField)
Creates a PushVOFilter that will try to create an object with the given class
and populate this object with the action input values.
|
PushVOFilter(Class klass,
String key)
Creates a PushVOFilter that will try to create an object with the given class
and populate this object with the action input values.
|
PushVOFilter(Class klass,
String key,
boolean tryField)
Creates a PushVOFilter that will try to create an object with the given class
and populate this object with the action input values.
|
PushVOFilter(Class klass,
String key,
boolean tryField,
boolean convert,
String prefix)
Creates a PushVOFilter that will try to create an object with the given class
and populate this object with the action input values.
|
PushVOFilter(Class klass,
String key,
boolean tryField,
String prefix)
Creates a PushVOFilter that will try to create an object with the given class
and populate this object with the action input values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Gives a chance to the filter to deallocalte any resources before it is destroyed.
|
String |
filter(InvocationChain chain)
Executes the filter.
|
protected Object |
getConvertedValue(String className,
String value,
Locale loc)
You can override this method to code more automatic conversions.
|
protected boolean |
setValue(Object bean,
String name,
Object value,
Locale loc) |
String |
toString() |
public PushVOFilter(Class<? extends Object> klass)
klass - The class to use to create the object.public PushVOFilter(Class klass, boolean tryField)
klass - The class to use to create the object.tryField - A flag indicating whether this filter should try to access private attributes.public PushVOFilter(Class klass, String key)
klass - The class to use to create the object.key - The key name used to place the object in the action input.public PushVOFilter(Class klass, String key, boolean tryField)
klass - The class to use to create the object.key - The key name used to place the object in the action input.tryField - A flag indicating whether this filter should try to access private attributes.public PushVOFilter(Class klass, String key, boolean tryField, String prefix)
klass - The class to use to create the object.key - The key name used to place the object in the action input.tryField - A flag indicating whether this filter should try to access private attributes.prefix - The prefix that will come on every attribute. (Ex. user.name)public PushVOFilter(Class klass, String key, boolean tryField, boolean convert, String prefix)
klass - The class to use to create the object.key - The key name used to place the object in the action input.tryField - A flag indicating whether this filter should try to access private attributes.convert - A flag to indicate whether we should try to convert or not.prefix - The prefix that will come on every attribute. (Ex. user.name)public String filter(InvocationChain chain) throws Exception
Filterprotected Object getConvertedValue(String className, String value, Locale loc)
className - The type to convert tovalue - The value to convertloc - The locale to use for conversion (useful for date)public void destroy()
FilterCopyright © 2015. All Rights Reserved.