|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.extensions.validator.util.ExtValAnnotationUtils
public class ExtValAnnotationUtils
Contains helper methods which are dealing with general tasks liked to annotation
Constructor Summary | |
---|---|
ExtValAnnotationUtils()
|
Method Summary | ||
---|---|---|
static void |
addFieldAccessAnnotations(PropertyStorage storage,
Class entity,
String property,
PropertyInformation propertyInformation)
Extracts all annotations found at the field of the property. |
|
static void |
addPropertyAccessAnnotations(PropertyStorage storage,
Class entity,
String property,
PropertyInformation propertyInformation)
Extracts all annotations found at the getter method of a property. |
|
static PropertyInformation |
extractAnnotations(Class entityClass,
PropertyDetails propertyDetails)
Extracts all annotations found on a property. |
|
static
|
extractValueOf(Annotation annotation,
Class<T> targetClass)
Extracts the value of the given annotation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtValAnnotationUtils()
Method Detail |
---|
public static PropertyInformation extractAnnotations(Class entityClass, PropertyDetails propertyDetails)
entityClass
- target class which has to be scannedpropertyDetails
- information about the property
public static void addPropertyAccessAnnotations(PropertyStorage storage, Class entity, String property, PropertyInformation propertyInformation)
storage
- PropertyStorage
which is able to cache information of a propertyentity
- target class which has to be scannedproperty
- Name of the property we are interested in.propertyInformation
- Where the MetaDataEntries for the annotations are added.public static void addFieldAccessAnnotations(PropertyStorage storage, Class entity, String property, PropertyInformation propertyInformation)
storage
- PropertyStorage
which is able to cache information of a propertyentity
- target class which has to be scannedproperty
- Name of the property we are interested in.propertyInformation
- Where the MetaDataEntries for the annotations are added.public static <T> T extractValueOf(Annotation annotation, Class<T> targetClass)
T
- Result classannotation
- The target annotationtargetClass
- Type of the value-property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |