|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.extensions.validator.core.validation.parameter.DefaultValidationParameterExtractor
public class DefaultValidationParameterExtractor
Default implementation of the class which is capable of extracting ValidationParameter's from an annotation.
Field Summary | |
---|---|
protected Logger |
logger
|
Constructor Summary | |
---|---|
DefaultValidationParameterExtractor()
|
Method Summary | ||
---|---|---|
Map<Object,List<Object>> |
extract(Annotation annotation)
Extracts all ValidationParameter s hosted by the given annotation. |
|
List<Object> |
extract(Annotation annotation,
Object key)
Extracts all ValidationParameter s for the given key which are hosted by the given annotation. |
|
|
extract(Annotation annotation,
Object key,
Class<T> valueType)
Extracts all ValidationParameter s for the given key which are hosted by the given annotation. |
|
|
extract(Annotation annotation,
Object key,
Class<T> valueType,
Class valueId)
Extracts all ValidationParameter s for the given key which are hosted by the given annotation. |
|
Map<Object,List<Object>> |
extractById(Annotation annotation,
Class valueId)
|
|
List<Object> |
extractById(Annotation annotation,
Object key,
Class valueId)
|
|
|
extractById(Annotation annotation,
Object key,
Class<T> valueType,
Class valueId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Logger logger
Constructor Detail |
---|
public DefaultValidationParameterExtractor()
Method Detail |
---|
public Map<Object,List<Object>> extract(Annotation annotation)
ValidationParameterExtractor
ValidationParameter
s hosted by the given annotation.
The wiki shows all supported styles.
extract
in interface ValidationParameterExtractor
annotation
- The annotation which might contain validation-parameters
public List<Object> extract(Annotation annotation, Object key)
ValidationParameterExtractor
ValidationParameter
s for the given key which are hosted by the given annotation.
The wiki shows all supported styles.
extract
in interface ValidationParameterExtractor
annotation
- The annotation for which we want to extract the information.key
- Value for the ParameterKey that is used for filtering the ValidationParameters.
public <T> List<T> extract(Annotation annotation, Object key, Class<T> valueType)
ValidationParameterExtractor
ValidationParameter
s for the given key which are hosted by the given annotation.
The result is filtered by the given type for the value.
The wiki shows all supported styles.
extract
in interface ValidationParameterExtractor
T
- Class type of the result which is the same as the class type of the parameter valueType.annotation
- The annotation which might contain validation-parameterskey
- Value for the ParameterKey that is used for filtering the ValidationParameters.valueType
- ParameterValue must be assignable to this type to be added to the result.
public <T> T extract(Annotation annotation, Object key, Class<T> valueType, Class valueId)
ValidationParameterExtractor
ValidationParameter
s for the given key which are hosted by the given annotation.
The result is filtered by the given type for the value and
the given id to receive a specific value if there are multiple parameters of the same type.
The wiki shows all supported styles.
extract
in interface ValidationParameterExtractor
T
- Class type of the result which is the same as the class type of the parameter valueType.annotation
- The annotation which might contain validation-parameterskey
- Value for the ParameterKey that is used for filtering the ValidationParameters.valueType
- ParameterValue must be assignable to this type to be added to the result.valueId
- marker which identifies a specific value
(needed if there are multiple parameters of the same type)
public <T> List<T> extractById(Annotation annotation, Object key, Class<T> valueType, Class valueId)
public List<Object> extractById(Annotation annotation, Object key, Class valueId)
public Map<Object,List<Object>> extractById(Annotation annotation, Class valueId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |