Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.common.xmap
Class XFieldAccessor

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

public class XFieldAccessor
extends Object
implements XAccessor

Author:
Bogdan Stefanescu

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

Constructor Detail

XFieldAccessor

public XFieldAccessor(Field field)
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
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

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.