Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.common.xmap
Class XMethodAccessor

java.lang.Object
  extended by org.nuxeo.common.xmap.XMethodAccessor
All Implemented Interfaces:
XAccessor

public class XMethodAccessor
extends Object
implements XAccessor

Author:
Bogdan Stefanescu

Constructor Summary
XMethodAccessor(Method method, Class klass)
           
 
Method Summary
 Class getType()
          Gets the type of the object to be set by this setter.
 Object getValue(Object instance)
           
 void setValue(Object instance, Object value)
          Sets the value of the underlying member.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMethodAccessor

public XMethodAccessor(Method method,
                       Class klass)
Method Detail

getType

public Class getType()
Description copied from interface: XAccessor
Gets the type of the object to be set by this setter.

Specified by:
getType in interface XAccessor
Returns:
the setter object type

setValue

public void setValue(Object instance,
                     Object value)
              throws IllegalAccessException,
                     InvocationTargetException
Description copied from interface: XAccessor
Sets the value of the underlying member.

Specified by:
setValue in interface XAccessor
Parameters:
instance - the instance of the object that owns this field
value - the value to set
Throws:
IllegalAccessException
InvocationTargetException

toString

public String toString()
Overrides:
toString in class Object

getValue

public Object getValue(Object instance)
                throws Exception
Specified by:
getValue in interface XAccessor
Throws:
Exception

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.