|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValidationParameterExtractor
Allows the extraction of ValidationParameter
s.
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. |
Method Detail |
---|
Map<Object,List<Object>> extract(Annotation annotation)
ValidationParameter
s hosted by the given annotation.
The wiki shows all supported styles.
annotation
- The annotation which might contain validation-parameters
List<Object> extract(Annotation annotation, Object key)
ValidationParameter
s for the given key which are hosted by the given annotation.
The wiki shows all supported styles.
annotation
- The annotation for which we want to extract the information.key
- Value for the ParameterKey that is used for filtering the ValidationParameters.
<T> List<T> extract(Annotation annotation, Object key, Class<T> valueType)
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.
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.
<T> T extract(Annotation annotation, Object key, Class<T> valueType, Class valueId)
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.
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |