Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api.model.impl.osm.util
Class ObjectAccessorHelper

java.lang.Object
  extended by org.nuxeo.ecm.core.api.model.impl.osm.util.ObjectAccessorHelper

public class ObjectAccessorHelper
extends Object

Author:
Bogdan Stefanescu

Method Summary
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMethod

public static Method getMethod(Class<?> containerType,
                               String name)
                        throws NoSuchMethodException
Throws:
NoSuchMethodException

getField

public static Field getField(Class<?> containerType,
                             String name)
                      throws NoSuchFieldException
Throws:
NoSuchFieldException

getGetterName

public static String getGetterName(String name)

getSetterName

public static String getSetterName(String name)

getPropertyName

public static String getPropertyName(String methodName)

getFieldAccessor

public static MemberAccessor getFieldAccessor(Class<?> containerType,
                                              String name)
                                       throws NoSuchFieldException
Throws:
NoSuchFieldException

getFieldAccessor

public static MemberAccessor getFieldAccessor(Class<?> containerType,
                                              String name,
                                              boolean isReadOnly)
                                       throws NoSuchFieldException
Throws:
NoSuchFieldException

getPropertyAccessor

public static MemberAccessor getPropertyAccessor(Class<?> containerType,
                                                 String name)
                                          throws NoSuchMethodException
Throws:
NoSuchMethodException

getPropertyAccessor

public static MemberAccessor getPropertyAccessor(Class<?> containerType,
                                                 String name,
                                                 boolean IsReadOnly)
                                          throws NoSuchMethodException
Throws:
NoSuchMethodException

getMethodAccessor

public static MemberAccessor getMethodAccessor(Class<?> containerType,
                                               String getterName,
                                               String setterName)
                                        throws NoSuchMethodException
Throws:
NoSuchMethodException

getMemberAccessor

public static MemberAccessor getMemberAccessor(Class<?> containerType,
                                               String name)
                                        throws NoSuchMemberException
Throws:
NoSuchMemberException

getMemberAccessor

public static MemberAccessor getMemberAccessor(Class<?> containerType,
                                               String name,
                                               boolean isReadOnly)
                                        throws NoSuchMemberException
Throws:
NoSuchMemberException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.