|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgov.usda.gdpc.AbstractFilter
This class provides a skeletal implementation of the Filter interface to minimize the effort required to implement this interface.
| Constructor Summary | |
protected |
AbstractFilter()
AbstractFilter constructor. |
| Method Summary | |
void |
addValue(FilterValue value)
Adds a value for a particular property for this filter. |
Property[] |
getDefinedProperties()
Gets all the properties that have defined criteria. |
Property[] |
getDefinedProperties(FilterValueType type)
Gets all the properties that have defined criteria for the given filter value type. |
FilterValueType[] |
getDefinedTypes()
Gets all the filter value types that have defined critera. |
java.lang.String |
getType()
Get type of this element. |
FilterValue[] |
getValues(FilterValueType type)
Gets all the values set for the given filter value type. |
FilterValue[] |
getValues(Property property)
Gets all the values set for the given property. |
FilterValue[] |
getValues(Property property,
FilterValueType type)
Gets all the values set for the given property and filter value type. |
boolean |
matches(java.util.Map properties)
Returns whether the given properties match this filter. |
void |
resetProperty(Property property)
Reset the specified property to have no values for this filter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected AbstractFilter()
| Method Detail |
public void resetProperty(Property property)
resetProperty in interface Filterproperty - propertypublic void addValue(FilterValue value)
addValue in interface Filtervalue - valuepublic Property[] getDefinedProperties(FilterValueType type)
getDefinedProperties in interface Filtertype - type of value (i.e. SINGLE_VALUE, RANGE, etc.)
public Property[] getDefinedProperties()
getDefinedProperties in interface Filter
public FilterValue[] getValues(Property property,
FilterValueType type)
getValues in interface Filterproperty - propertytype - type of value (i.e. SINGLE_VALUE, RANGE, etc.)
public FilterValue[] getValues(FilterValueType type)
getValues in interface Filtertype - type of value (i.e. SINGLE_VALUE, RANGE, etc.)
public FilterValue[] getValues(Property property)
getValues in interface Filterproperty - property
public FilterValueType[] getDefinedTypes()
getDefinedTypes in interface Filterpublic boolean matches(java.util.Map properties)
matches in interface Filterproperties - properties to check
public java.lang.String getType()
getType in interface Filter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||