|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap
java.util.HashMap
org.apache.avalon.util.criteria.Criteria
A abstract utility class that can be used to simplify the creation of domain specific criteria.
Constructor Summary | |
Criteria(Parameter[] params)
Creation of a new criteria instance. |
Method Summary | |
Object |
get(Object key)
Return the currently assigned value for a key. |
protected Parameter |
getParameter(String key)
|
protected Parameter[] |
getParameters()
Return the parameter associated to the criteria. |
protected Object |
getValue(Parameter param)
Return the currently assigned value for a key. |
Object |
put(Object key,
Object value)
Set a named parameter of the criteria to a value. |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
Constructor Detail |
public Criteria(Parameter[] params)
params
- the set of parameters managed by the criteriaMethod Detail |
public Object put(Object key, Object value)
key
- the parameter keyvalue
- the value to assign to the key
CriteriaRuntimeException
- if the supplied value fails
the validation test for its associated parameterpublic Object get(Object key)
protected Object getValue(Parameter param)
protected Parameter[] getParameters()
protected Parameter getParameter(String key)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |