Nuxeo Enterprise Platform 5.4

org.nuxeo.common.xmap
Class XMethodAccessor

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

public class XMethodAccessor
extends java.lang.Object
implements XAccessor

Author:
Bogdan Stefanescu

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

Constructor Detail

XMethodAccessor

public XMethodAccessor(java.lang.reflect.Method method,
                       java.lang.Class klass)
Method Detail

getType

public java.lang.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(java.lang.Object instance,
                     java.lang.Object value)
              throws java.lang.IllegalAccessException,
                     java.lang.reflect.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:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getValue

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.