org.kuali.student.contract.model.util
Class JavaClassAnnotationUtils

java.lang.Object
  extended by org.kuali.student.contract.model.util.JavaClassAnnotationUtils

public final class JavaClassAnnotationUtils
extends Object

Utility methods for extracting annotation details from a QDox JavaClass.

Author:
Kuali Student Team

Method Summary
static boolean doesAnnotationExist(String simpleAnnotationName, com.thoughtworks.qdox.model.JavaClass javaClass)
           
static Class<?> extractXmlEnumValue(com.thoughtworks.qdox.model.JavaClass javaClass)
          Extract the value of the XmlEnum annotation from the class provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

doesAnnotationExist

public static boolean doesAnnotationExist(String simpleAnnotationName,
                                          com.thoughtworks.qdox.model.JavaClass javaClass)

extractXmlEnumValue

public static Class<?> extractXmlEnumValue(com.thoughtworks.qdox.model.JavaClass javaClass)
Extract the value of the XmlEnum annotation from the class provided. returns null if the annotation does not exist on the class. returns String.class if no value is specified which is the default specified by the annotation.

Parameters:
javaClass -
Returns:
the class value stored in the XmlEnum annotation on the class specified.


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.