org.nuxeo.common.xmap
Class XFieldAccessor
java.lang.Object
org.nuxeo.common.xmap.XFieldAccessor
- All Implemented Interfaces:
- XAccessor
public class XFieldAccessor
- extends java.lang.Object
- implements XAccessor
- Author:
- Bogdan Stefanescu
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XFieldAccessor
public XFieldAccessor(java.lang.reflect.Field field)
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
- 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 fieldvalue
- the value to set
- Throws:
java.lang.IllegalAccessException
getValue
public java.lang.Object getValue(java.lang.Object instance)
throws java.lang.Exception
- Specified by:
getValue
in interface XAccessor
- Throws:
java.lang.Exception
Copyright © 2010 Nuxeo SAS. All Rights Reserved.