public class FilterConfigBean extends Object implements FilterConfig, Serializable
FilterConfig interface. Provides
a convenience method to set field and type in one operation.| Constructor and Description |
|---|
FilterConfigBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
getComparison()
Returns the type of filter comparison.
|
String |
getField()
Returns the name of the filter field.
|
String |
getType()
Returns the filter type.
|
String |
getValue()
Gets the filter value.
|
void |
setComparison(String comparison)
Sets the type of filter comparison (e.g.
|
void |
setField(String field)
Sets the name of the filter field.
|
<V> void |
setFieldAndType(ValueProvider<?,V> valueProvider,
Class<? extends V> type)
Convenience method to set both field name and type in one operation.
|
void |
setType(String type)
Sets the filter type (e.g.
|
void |
setValue(String value)
Sets the filter value.
|
public String getComparison()
FilterConfiggetComparison in interface FilterConfigpublic String getField()
FilterConfiggetField in interface FilterConfigpublic String getType()
FilterConfiggetType in interface FilterConfigpublic String getValue()
FilterConfigFilterHandler.convertToObject(String).getValue in interface FilterConfigpublic void setComparison(String comparison)
FilterConfigsetComparison in interface FilterConfigcomparison - the type of filter comparisonpublic void setField(String field)
FilterConfigsetField in interface FilterConfigfield - the name of the filter fieldpublic <V> void setFieldAndType(ValueProvider<?,V> valueProvider, Class<? extends V> type)
valueProvider - the value provider. The value provider's path supplies
the field name.type - the field type. The class name supplies the field type.public void setType(String type)
FilterConfigsetType in interface FilterConfigtype - the type namepublic void setValue(String value)
FilterConfigFilterHandler.convertToString(Object).setValue in interface FilterConfigvalue - the string representation of the valueCopyright © 2012. All Rights Reserved.