Class NestedObjectDelegatePropertyAccessor<T>

  • Type Parameters:
    T - The root object type from which the target object will be extracted.
    All Implemented Interfaces:
    ognl.PropertyAccessor

    public class NestedObjectDelegatePropertyAccessor<T>
    extends java.lang.Object
    implements ognl.PropertyAccessor
    Uses a PropertyAccessor as a delegate, but passing a nested object as target.
    Since:
    2.2.0
    Version:
    $Rev: 1049696 $ $Date: 2010-12-16 07:30:10 +1100 (Thu, 16 Dec 2010) $
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getProperty​(java.util.Map context, java.lang.Object target, java.lang.Object name)
      java.lang.String getSourceAccessor​(ognl.OgnlContext context, java.lang.Object target, java.lang.Object index)
      java.lang.String getSourceSetter​(ognl.OgnlContext context, java.lang.Object target, java.lang.Object index)
      void setProperty​(java.util.Map context, java.lang.Object target, java.lang.Object name, java.lang.Object value)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NestedObjectDelegatePropertyAccessor

        public NestedObjectDelegatePropertyAccessor​(NestedObjectExtractor<T> nestedObjectExtractor,
                                                    ognl.PropertyAccessor propertyAccessor)
        Constructor.
        Parameters:
        nestedObjectExtractor - The extractor of the nested object.
        propertyAccessor - The delegated property accessor.
        Since:
        2.2.0
    • Method Detail

      • getProperty

        public java.lang.Object getProperty​(java.util.Map context,
                                            java.lang.Object target,
                                            java.lang.Object name)
                                     throws ognl.OgnlException
        Specified by:
        getProperty in interface ognl.PropertyAccessor
        Throws:
        ognl.OgnlException
      • setProperty

        public void setProperty​(java.util.Map context,
                                java.lang.Object target,
                                java.lang.Object name,
                                java.lang.Object value)
                         throws ognl.OgnlException
        Specified by:
        setProperty in interface ognl.PropertyAccessor
        Throws:
        ognl.OgnlException
      • getSourceAccessor

        public java.lang.String getSourceAccessor​(ognl.OgnlContext context,
                                                  java.lang.Object target,
                                                  java.lang.Object index)
        Specified by:
        getSourceAccessor in interface ognl.PropertyAccessor
      • getSourceSetter

        public java.lang.String getSourceSetter​(ognl.OgnlContext context,
                                                java.lang.Object target,
                                                java.lang.Object index)
        Specified by:
        getSourceSetter in interface ognl.PropertyAccessor