|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.search.FilterSpecification
A filter specification defines the parameters for a plugging into a condition defined by a filter type. For example a 'list of category ids' would be used in a 'restrict by category' filter condition.. These values are typically obtained from the user via a web form.
FilterType
Constructor Summary | |
protected |
FilterSpecification(Object[] values,
FilterType type)
Creates a new filter specification, initializing the value map from the array of values. |
Method Summary | |
boolean |
equals(Object o)
Two filter specifications are considered equal if they refer to the same filter type and their parameter sets contain the same (key, value) pairs |
protected Object |
get(String key)
Get the values for the filter specification |
FilterType |
getType()
Get the filter type |
int |
hashCode()
Returns a hashcode compatible with the definition of the equals() method |
protected void |
set(String key,
Object value)
Set the value for the specified key |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected FilterSpecification(Object[] values, FilterType type)
type
- the filter typevalues
- the values for the filter typeMethod Detail |
protected Object get(String key)
key
- the value
protected void set(String key, Object value)
key
- the keyvalue
- the valuepublic FilterType getType()
public boolean equals(Object o)
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |