org.exolab.castor.util

Class ReflectionUtil


public class ReflectionUtil
extends java.lang.Object

Utility class to support reflection-based operations.
Since:
1.1.2

Method Summary

static Boolean
isEnumViaReflection(Class type)
Calls isEnum() method on target class vi areflection to find out whether the given type is a Java 5 enumeration.

Method Details

isEnumViaReflection

public static Boolean isEnumViaReflection(Class type)
            throws NoSuchMethodException,
                   IllegalAccessException,
                   InvocationTargetException
Calls isEnum() method on target class vi areflection to find out whether the given type is a Java 5 enumeration.
Parameters:
type - The type to analyze.
Returns:
True if the type given is a Java 5.0 enum.

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com