Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api.model.impl.osm.util
Class FieldAccessor

java.lang.Object
  extended by org.nuxeo.ecm.core.api.model.impl.osm.util.FieldAccessor
All Implemented Interfaces:
Serializable, MemberAccessor

public class FieldAccessor
extends Object
implements MemberAccessor

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Constructor Summary
FieldAccessor(Field field)
           
FieldAccessor(Field field, boolean isReadOnly)
           
 
Method Summary
 Object get(Object instance)
           
 Class<?> getDeclaringClass()
           
 Field getField()
           
 Class<?> getType()
           
 boolean isReadOnly()
           
 void set(Object instance, Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldAccessor

public FieldAccessor(Field field,
                     boolean isReadOnly)

FieldAccessor

public FieldAccessor(Field field)
Method Detail

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface MemberAccessor

get

public Object get(Object instance)
           throws AccessException
Specified by:
get in interface MemberAccessor
Throws:
AccessException

set

public void set(Object instance,
                Object value)
         throws AccessException
Specified by:
set in interface MemberAccessor
Throws:
AccessException

getType

public Class<?> getType()
Specified by:
getType in interface MemberAccessor

getDeclaringClass

public Class<?> getDeclaringClass()
Specified by:
getDeclaringClass in interface MemberAccessor

getField

public Field getField()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.