|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jmscts.core.AttributeHelper
A helper class for retrieving attributes from class meta-data.
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 |
public static boolean getBoolean(java.lang.Class clazz, java.lang.String attribute)
clazz
- the class to look up attributes forattribute
- the attribute nameattribute
, or
false
if attribute
doesn't existspublic static boolean getBoolean(java.lang.Class clazz, java.lang.String methodName, java.lang.String attribute)
clazz
- the class to look up attributes formethodName
- the name of the method. The method must take no args.
May be null.attribute
- the attribute nameattribute
, or
false
if attribute
doesn't existspublic static boolean getBoolean(java.lang.Class clazz, java.lang.String methodName, java.lang.String attribute, boolean all)
clazz
- the class to look up attributes formethodName
- the name of the method. The method must take no args.
May be null.attribute
- the attribute nameall
- if true
include method and class attributesattribute
, or
false
if attribute
doesn't existspublic static java.lang.String[] getAttributes(java.lang.Class clazz, java.lang.String attribute)
clazz
- the class to look up attributes forattribute
- the attribute namepublic static java.lang.String[] getAttributes(java.lang.Class clazz, java.lang.String methodName, java.lang.String attribute, boolean all)
clazz
- the class to look up attributes formethodName
- the name of the method. The method must take no args.
May be null.attribute
- the attribute nameall
- if true
include method and class attributespublic static java.lang.String[] getAttributes(java.lang.Class clazz, java.lang.String methodName, java.lang.String attribute)
clazz
- the class to look up attributes formethodName
- the name of the method. The method must take no args.attribute
- the attribute namepublic static java.lang.String[] getAttributes(java.lang.reflect.Method method, java.lang.String attribute)
method
- the methodattribute
- the attribute name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |