org.exolab.jmscts.core
Class AttributeHelper

java.lang.Object
  |
  +--org.exolab.jmscts.core.AttributeHelper

public final class AttributeHelper
extends java.lang.Object

A helper class for retrieving attributes from class meta-data.

Version:
$Revision: 1.5 $ $Date: 2004/01/31 13:44:24 $
Author:
Tim Anderson

Method Summary
static java.lang.String[] getAttributes(java.lang.Class clazz, java.lang.String attribute)
          Return a list of attribute values for the specified attribute name, associated with a particular class
static java.lang.String[] getAttributes(java.lang.Class clazz, java.lang.String methodName, java.lang.String attribute)
          Return a list of attribute values for the specified attribute name, associated with a particular method
static java.lang.String[] getAttributes(java.lang.Class clazz, java.lang.String methodName, java.lang.String attribute, boolean all)
          Return a list of attribute values for the specified attribute name, associated with a particular method and/or class.
static java.lang.String[] getAttributes(java.lang.reflect.Method method, java.lang.String attribute)
          Return a list of attribute values for the specified attribute name associated with a particular method
static boolean getBoolean(java.lang.Class clazz, java.lang.String attribute)
          Returns the boolean value of an attribute, associated with a particular class
static boolean getBoolean(java.lang.Class clazz, java.lang.String methodName, java.lang.String attribute)
          Returns the boolean value of an attribute, associated with a particular method
static boolean getBoolean(java.lang.Class clazz, java.lang.String methodName, java.lang.String attribute, boolean all)
          Returns the boolean value of an attribute, associated with a particular method and/or class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBoolean

public static boolean getBoolean(java.lang.Class clazz,
                                 java.lang.String attribute)
Returns the boolean value of an attribute, associated with a particular class
Parameters:
clazz - the class to look up attributes for
attribute - the attribute name
Returns:
the boolean value of attribute, or false if attribute doesn't exists

getBoolean

public static boolean getBoolean(java.lang.Class clazz,
                                 java.lang.String methodName,
                                 java.lang.String attribute)
Returns the boolean value of an attribute, associated with a particular method
Parameters:
clazz - the class to look up attributes for
methodName - the name of the method. The method must take no args. May be null.
attribute - the attribute name
Returns:
the boolean value of attribute, or false if attribute doesn't exists

getBoolean

public static boolean getBoolean(java.lang.Class clazz,
                                 java.lang.String methodName,
                                 java.lang.String attribute,
                                 boolean all)
Returns the boolean value of an attribute, associated with a particular method and/or class
Parameters:
clazz - the class to look up attributes for
methodName - the name of the method. The method must take no args. May be null.
attribute - the attribute name
all - if true include method and class attributes
Returns:
the boolean value of attribute, or false if attribute doesn't exists

getAttributes

public static java.lang.String[] getAttributes(java.lang.Class clazz,
                                               java.lang.String attribute)
Return a list of attribute values for the specified attribute name, associated with a particular class
Parameters:
clazz - the class to look up attributes for
attribute - the attribute name
Returns:
a list of attribute values for the specified attribute name.

getAttributes

public static java.lang.String[] getAttributes(java.lang.Class clazz,
                                               java.lang.String methodName,
                                               java.lang.String attribute,
                                               boolean all)
Return a list of attribute values for the specified attribute name, associated with a particular method and/or class.
Parameters:
clazz - the class to look up attributes for
methodName - the name of the method. The method must take no args. May be null.
attribute - the attribute name
all - if true include method and class attributes
Returns:
a list of attribute values for the specified attribute name.

getAttributes

public static java.lang.String[] getAttributes(java.lang.Class clazz,
                                               java.lang.String methodName,
                                               java.lang.String attribute)
Return a list of attribute values for the specified attribute name, associated with a particular method
Parameters:
clazz - the class to look up attributes for
methodName - the name of the method. The method must take no args.
attribute - the attribute name
Returns:
a list of attribute values for the specified attribute name.

getAttributes

public static java.lang.String[] getAttributes(java.lang.reflect.Method method,
                                               java.lang.String attribute)
Return a list of attribute values for the specified attribute name associated with a particular method
Parameters:
method - the method
attribute - the attribute name
Returns:
a list of attribute values for the specified attribute name.


Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.