org.apache.tiles.ognl

## Class DelegatePropertyAccessor<T>

- java.lang.Object
- - org.apache.tiles.ognl.DelegatePropertyAccessor<T>

- Type Parameters:
    `T` - The type of the accessed root object.
  All Implemented Interfaces:
    ognl.PropertyAccessor

      public class DelegatePropertyAccessor<T>
      extends Object
      implements ognl.PropertyAccessor

  Uses a `PropertyAccessorDelegateFactory` to delegate the methods to another `PropertyAccessor`.
  Since:
    2.2.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DelegatePropertyAccessor(PropertyAccessorDelegateFactory<T> factory)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `getProperty(Map context, Object target, Object name)`
    `String` | `getSourceAccessor(ognl.OgnlContext context, Object target, Object index)`
    `String` | `getSourceSetter(ognl.OgnlContext context, Object target, Object index)`
    `void` | `setProperty(Map context, Object target, Object name, Object value)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DelegatePropertyAccessor

          public DelegatePropertyAccessor(PropertyAccessorDelegateFactory<T> factory)

      Constructor.
      Parameters:
        `factory` - The property accessor factory.
      Since:
        2.2.0

  - ### Method Detail

    - #### getProperty

          public Object getProperty(Map context,
                                    Object target,
                                    Object name)
                             throws ognl.OgnlException

      Specified by:
        `getProperty` in interface `ognl.PropertyAccessor`
      Throws:
        `ognl.OgnlException`

    - #### setProperty

          public void setProperty(Map context,
                                  Object target,
                                  Object name,
                                  Object value)
                           throws ognl.OgnlException

      Specified by:
        `setProperty` in interface `ognl.PropertyAccessor`
      Throws:
        `ognl.OgnlException`

    - #### getSourceAccessor

          public String getSourceAccessor(ognl.OgnlContext context,
                                          Object target,
                                          Object index)

      Specified by:
        `getSourceAccessor` in interface `ognl.PropertyAccessor`

    - #### getSourceSetter

          public String getSourceSetter(ognl.OgnlContext context,
                                        Object target,
                                        Object index)

      Specified by:
        `getSourceSetter` in interface `ognl.PropertyAccessor`

Copyright © 2000–2024 Apache Software Foundation. All rights reserved.