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 java.lang.annotation.Annotation getClassAnnotation(java.lang.Class<?> c, java.lang.Class<? extends java.lang.annotation.Annotation> aClass)
           
static java.lang.String getDefaultParameterValue(java.lang.annotation.Annotation[] anns, OperationResourceInfo ori)
           
static java.lang.String getHttpMethodValue(java.lang.reflect.Method m)
           
static java.lang.annotation.Annotation getMethodAnnotation(java.lang.reflect.Method m, java.lang.Class<? extends java.lang.annotation.Annotation> aClass)
           
static boolean isContextClass(java.lang.Class<?> contextClass)
           
static boolean isEncoded(java.lang.annotation.Annotation[] anns, OperationResourceInfo ori)
           
static boolean isMethodAnnotation(java.lang.annotation.Annotation a)
           
static boolean isMethodParamAnnotationClass(java.lang.Class<?> annotationClass)
           
static boolean isMethodParamAnnotations(java.lang.annotation.Annotation[] paramAnnotations)
           
static boolean isParamAnnotationClass(java.lang.Class<?> annotationClass)
           
 
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)

isMethodParamAnnotationClass

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

isMethodParamAnnotations

public static boolean isMethodParamAnnotations(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 java.lang.annotation.Annotation getMethodAnnotation(java.lang.reflect.Method m,
                                                                  java.lang.Class<? extends java.lang.annotation.Annotation> aClass)

getClassAnnotation

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

isEncoded

public static boolean isEncoded(java.lang.annotation.Annotation[] anns,
                                OperationResourceInfo ori)

getDefaultParameterValue

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


Apache CXF