|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nci.cagrid.data.sdk32query.ClassAccessUtilities
public class ClassAccessUtilities
ClassAccessUtilities A package of utilities for accessing classes in the context of CQL query processing
| Constructor Summary | |
|---|---|
ClassAccessUtilities()
|
|
| Method Summary | |
|---|---|
static java.lang.reflect.Field[] |
getFieldsOfType(java.lang.Class clazz,
java.lang.String typeName)
Gets all fields from a class and it's superclasses of a given type |
static java.lang.reflect.Field |
getNamedField(java.lang.Class clazz,
java.lang.String fieldName)
Gets the named field from the class or any of its super classes |
static java.lang.reflect.Method |
getNamedGetterMethod(java.lang.Class clazz,
java.lang.String fieldName)
Gets the 'getter' method from the class or any of its super classes for a named field. |
static java.lang.String |
getRoleName(java.lang.String parentName,
Association assoc)
Gets the role name of an association relative to its parent class. |
static java.lang.reflect.Method[] |
getSettersForType(java.lang.Class clazz,
java.lang.String typeName)
Gets the setter methods of a class that take a parameter of a certain type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassAccessUtilities()
| Method Detail |
|---|
public static java.lang.String getRoleName(java.lang.String parentName,
Association assoc)
throws QueryProcessingException
parentName - The class name of the parent of the associationassoc - The associated object restriction
QueryProcessingException
public static java.lang.reflect.Field[] getFieldsOfType(java.lang.Class clazz,
java.lang.String typeName)
clazz - The class to explore for typed fieldstypeName - The name of the type to search for
public static java.lang.reflect.Method[] getSettersForType(java.lang.Class clazz,
java.lang.String typeName)
clazz - The class to find setter methods ontypeName - The name of the type to find setters for
public static java.lang.reflect.Field getNamedField(java.lang.Class clazz,
java.lang.String fieldName)
clazz - The class to retrieve a field fromfieldName - The name of the field to retrieve
null if it was not found
public static java.lang.reflect.Method getNamedGetterMethod(java.lang.Class clazz,
java.lang.String fieldName)
getFoo on the class.
clazz - The class to retrieve a getter method fromfieldName - The name of the field
null if it was not found
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||