Save This Page
Home » click-2.1.0 » ognl » [javadoc | source]
ognl
public class: ObjectPropertyAccessor [javadoc | source]
java.lang.Object
   ognl.ObjectPropertyAccessor

All Implemented Interfaces:
    PropertyAccessor

Direct Known Subclasses:
    EnumerationPropertyAccessor, ArrayPropertyAccessor, SetPropertyAccessor, ListPropertyAccessor, IteratorPropertyAccessor

Implementation of PropertyAccessor that uses reflection on the target object's class to find a field or a pair of set/get methods with the given property name.
Method from ognl.ObjectPropertyAccessor Summary:
getPossibleProperty,   getProperty,   hasGetProperty,   hasGetProperty,   hasSetProperty,   hasSetProperty,   setPossibleProperty,   setProperty
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from ognl.ObjectPropertyAccessor Detail:
 public Object getPossibleProperty(Map context,
    Object target,
    String name) throws OgnlException 
    Returns OgnlRuntime.NotFound if the property does not exist.
 public Object getProperty(Map context,
    Object target,
    Object oname) throws OgnlException 
 public boolean hasGetProperty(OgnlContext context,
    Object target,
    Object oname) throws OgnlException 
 public boolean hasGetProperty(Map context,
    Object target,
    Object oname) throws OgnlException 
 public boolean hasSetProperty(OgnlContext context,
    Object target,
    Object oname) throws OgnlException 
 public boolean hasSetProperty(Map context,
    Object target,
    Object oname) throws OgnlException 
 public Object setPossibleProperty(Map context,
    Object target,
    String name,
    Object value) throws OgnlException 
    Returns OgnlRuntime.NotFound if the property does not exist.
 public  void setProperty(Map context,
    Object target,
    Object oname,
    Object value) throws OgnlException