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()
FilterConfig
getComparison
in interface FilterConfig
public String getField()
FilterConfig
getField
in interface FilterConfig
public String getType()
FilterConfig
getType
in interface FilterConfig
public String getValue()
FilterConfig
FilterHandler.convertToObject(String)
.getValue
in interface FilterConfig
public void setComparison(String comparison)
FilterConfig
setComparison
in interface FilterConfig
comparison
- the type of filter comparisonpublic void setField(String field)
FilterConfig
setField
in interface FilterConfig
field
- 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)
FilterConfig
setType
in interface FilterConfig
type
- the type namepublic void setValue(String value)
FilterConfig
FilterHandler.convertToString(Object)
.setValue
in interface FilterConfig
value
- the string representation of the valueCopyright © 2018. All rights reserved.