Class AnnotationUtils
- java.lang.Object
-
- org.apache.commons.digester3.annotations.utils.AnnotationUtils
-
public class AnnotationUtils extends java.lang.Object
Simple utility class to introspect annotations.- Since:
- 2.1
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetAnnotationNamespaceURI(java.lang.annotation.Annotation annotation)Extract thenamespaceURI()from annotation.static java.lang.StringgetAnnotationPattern(java.lang.annotation.Annotation annotation)Extract thepattern()from annotation.static java.lang.annotation.Annotation[]getAnnotationsArrayValue(java.lang.annotation.Annotation annotation)Extract the Annotations arrayvalue()from annotation if present, nul otherwise.static java.lang.ObjectgetAnnotationValue(java.lang.annotation.Annotation annotation)Extract thevalue()from annotation.static booleangetFireOnBegin(java.lang.annotation.Annotation annotation)Extract thefireOnBegin()from annotation.
-
-
-
Method Detail
-
getAnnotationValue
public static java.lang.Object getAnnotationValue(java.lang.annotation.Annotation annotation)
Extract thevalue()from annotation.- Parameters:
annotation- the annotation has to be introspected.- Returns:
- the annotation
value().
-
getAnnotationPattern
public static java.lang.String getAnnotationPattern(java.lang.annotation.Annotation annotation)
Extract thepattern()from annotation.- Parameters:
annotation- the annotation has to be introspected.- Returns:
- the annotation
pattern().
-
getAnnotationNamespaceURI
public static java.lang.String getAnnotationNamespaceURI(java.lang.annotation.Annotation annotation)
Extract thenamespaceURI()from annotation.- Parameters:
annotation- The annotation has to be introspected- Returns:
- The annotation
namespaceURI()
-
getFireOnBegin
public static boolean getFireOnBegin(java.lang.annotation.Annotation annotation)
Extract thefireOnBegin()from annotation.- Parameters:
annotation- The annotation has to be introspected- Returns:
- The annotation
fireOnBegin()
-
getAnnotationsArrayValue
public static java.lang.annotation.Annotation[] getAnnotationsArrayValue(java.lang.annotation.Annotation annotation)
Extract the Annotations arrayvalue()from annotation if present, nul otherwise.- Parameters:
annotation- the annotation has to be introspected.- Returns:
- the annotation
value()as Annotations array.
-
-