Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

java.lang.Object
  extended by org.nuxeo.ecm.core.api.model.impl.osm.util.MethodAccessor
All Implemented Interfaces:
Serializable, MemberAccessor

public class MethodAccessor
extends Object
implements MemberAccessor

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Constructor Summary
MethodAccessor(Method getter, Method setter)
           
 
Method Summary
 Object get(Object instance)
           
 Class<?> getDeclaringClass()
           
 Method getGetterMethod()
           
 Method getSetterMethod()
           
 Class<?> getType()
           
 boolean isReadOnly()
           
 void set(Object instance, Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodAccessor

public MethodAccessor(Method getter,
                      Method setter)
Method Detail

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface MemberAccessor

get

public Object get(Object instance)
           throws AccessException
Specified by:
get in interface MemberAccessor
Throws:
AccessException

set

public void set(Object instance,
                Object value)
         throws AccessException
Specified by:
set in interface MemberAccessor
Throws:
AccessException

getType

public Class<?> getType()
Specified by:
getType in interface MemberAccessor

getDeclaringClass

public Class<?> getDeclaringClass()
Specified by:
getDeclaringClass in interface MemberAccessor

getSetterMethod

public Method getSetterMethod()

getGetterMethod

public Method getGetterMethod()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.