Apache CXF API

org.apache.cxf.jaxrs.utils
Class AnnotationUtils

java.lang.Object
  extended by org.apache.cxf.jaxrs.utils.AnnotationUtils

public final class AnnotationUtils
extends java.lang.Object


Method Summary
static java.lang.reflect.Method getAnnotatedMethod(java.lang.reflect.Method m)
           
static
<T> T
getAnnotation(java.lang.annotation.Annotation[] anns, java.lang.Class<T> type)
           
static java.lang.String getAnnotationValue(java.lang.annotation.Annotation a)
           
static
<A extends java.lang.annotation.Annotation>
A
getClassAnnotation(java.lang.Class<?> c, java.lang.Class<A> aClass)
           
static java.lang.String getDefaultParameterValue(java.lang.annotation.Annotation[] anns)
           
static java.lang.String getHttpMethodValue(java.lang.reflect.Method m)
           
static
<A extends java.lang.annotation.Annotation>
A
getMethodAnnotation(java.lang.reflect.Method m, java.lang.Class<A> aClass)
           
static boolean isContextClass(java.lang.Class<?> contextClass)
           
static boolean isMethodAnnotation(java.lang.annotation.Annotation a)
           
static boolean isParamAnnotationClass(java.lang.Class<?> annotationClass)
           
static boolean isValidParamAnnotationClass(java.lang.Class<?> annotationClass)
           
static boolean isValidParamAnnotations(java.lang.annotation.Annotation[] paramAnnotations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isContextClass

public static boolean isContextClass(java.lang.Class<?> contextClass)

isParamAnnotationClass

public static boolean isParamAnnotationClass(java.lang.Class<?> annotationClass)

isValidParamAnnotationClass

public static boolean isValidParamAnnotationClass(java.lang.Class<?> annotationClass)

isValidParamAnnotations

public static boolean isValidParamAnnotations(java.lang.annotation.Annotation[] paramAnnotations)

isMethodAnnotation

public static boolean isMethodAnnotation(java.lang.annotation.Annotation a)

getAnnotationValue

public static java.lang.String getAnnotationValue(java.lang.annotation.Annotation a)

getAnnotation

public static <T> T getAnnotation(java.lang.annotation.Annotation[] anns,
                                  java.lang.Class<T> type)

getAnnotatedMethod

public static java.lang.reflect.Method getAnnotatedMethod(java.lang.reflect.Method m)

getHttpMethodValue

public static java.lang.String getHttpMethodValue(java.lang.reflect.Method m)

getMethodAnnotation

public static <A extends java.lang.annotation.Annotation> A getMethodAnnotation(java.lang.reflect.Method m,
                                                                                java.lang.Class<A> aClass)

getClassAnnotation

public static <A extends java.lang.annotation.Annotation> A getClassAnnotation(java.lang.Class<?> c,
                                                                               java.lang.Class<A> aClass)

getDefaultParameterValue

public static java.lang.String getDefaultParameterValue(java.lang.annotation.Annotation[] anns)

Apache CXF API

Apache CXF