public class ObjectAccessorHelper extends Object
Modifier and Type | Method and Description |
---|---|
static Field |
getField(Class<?> containerType,
String name) |
static MemberAccessor |
getFieldAccessor(Class<?> containerType,
String name) |
static MemberAccessor |
getFieldAccessor(Class<?> containerType,
String name,
boolean isReadOnly) |
static String |
getGetterName(String name) |
static MemberAccessor |
getMemberAccessor(Class<?> containerType,
String name) |
static MemberAccessor |
getMemberAccessor(Class<?> containerType,
String name,
boolean isReadOnly) |
static Method |
getMethod(Class<?> containerType,
String name) |
static MemberAccessor |
getMethodAccessor(Class<?> containerType,
String getterName,
String setterName) |
static MemberAccessor |
getPropertyAccessor(Class<?> containerType,
String name) |
static MemberAccessor |
getPropertyAccessor(Class<?> containerType,
String name,
boolean IsReadOnly) |
static String |
getPropertyName(String methodName) |
static String |
getSetterName(String name) |
public static Method getMethod(Class<?> containerType, String name) throws NoSuchMethodException
NoSuchMethodException
public static Field getField(Class<?> containerType, String name) throws NoSuchFieldException
NoSuchFieldException
public static MemberAccessor getFieldAccessor(Class<?> containerType, String name) throws NoSuchFieldException
NoSuchFieldException
public static MemberAccessor getFieldAccessor(Class<?> containerType, String name, boolean isReadOnly) throws NoSuchFieldException
NoSuchFieldException
public static MemberAccessor getPropertyAccessor(Class<?> containerType, String name) throws NoSuchMethodException
NoSuchMethodException
public static MemberAccessor getPropertyAccessor(Class<?> containerType, String name, boolean IsReadOnly) throws NoSuchMethodException
NoSuchMethodException
public static MemberAccessor getMethodAccessor(Class<?> containerType, String getterName, String setterName) throws NoSuchMethodException
NoSuchMethodException
public static MemberAccessor getMemberAccessor(Class<?> containerType, String name) throws NoSuchMemberException
NoSuchMemberException
public static MemberAccessor getMemberAccessor(Class<?> containerType, String name, boolean isReadOnly) throws NoSuchMemberException
NoSuchMemberException
Copyright © 2011 Nuxeo SA. All Rights Reserved.