Class XMethodAccessor

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

public class XMethodAccessor extends Object implements XAccessor
Author:
Bogdan Stefanescu
  • Constructor Details

    • XMethodAccessor

      public XMethodAccessor(Method method, Class<?> klass)
  • Method Details

    • 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)
      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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getValue

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