public class CustomAttributeFilter
extends java.lang.Object
Constructor and Description |
---|
CustomAttributeFilter(CustomAttribute customAttribute)
Creates a new filter for a specific custom attribute.
|
Modifier and Type | Method and Description |
---|---|
void |
addSelectedValue(java.lang.String value)
Adds a selected value to the Filter.
|
CustomAttribute |
getCustomAttribute()
Returns the Custom Attribute.
|
java.lang.String |
getFilter()
Returns specified filter.
|
boolean |
isExclude()
Returns
true if exclude is set, false otherwise. |
void |
removeAllSelectedValues()
Removes all selected Custom Attributes values.
|
boolean |
removeSelectedValue(java.lang.String value)
Removes a selected Custom Attribute value.
|
java.util.Iterator<java.lang.String> |
selectedValuesIterator()
Returns an
java.util.Iterator of selected Custom Attributes values. |
void |
setExclude(boolean exclude)
If set to
true the filter values are excluded from the selection. |
void |
setFilter(java.lang.String filter)
Sets filter for the Custom Attribute.
|
public CustomAttributeFilter(CustomAttribute customAttribute)
customAttribute
- Custom Attributepublic CustomAttribute getCustomAttribute()
public void addSelectedValue(java.lang.String value)
value
- selected value of the Custom Attributepublic java.util.Iterator<java.lang.String> selectedValuesIterator()
java.util.Iterator
of selected Custom Attributes values.public void removeAllSelectedValues()
public boolean removeSelectedValue(java.lang.String value)
value
- selected valuetrue
if the selected value was removedpublic java.lang.String getFilter()
public void setFilter(java.lang.String filter)
filter
- Filter for the Custom Attributepublic boolean isExclude()
true
if exclude is set, false
otherwise.public void setExclude(boolean exclude)
true
the filter values are excluded from the selection.exclude
- Boolean value to exclude or include the filter values for the selection