org.apache.tiles.ognl
Class NestedObjectDelegatePropertyAccessor<T>

java.lang.Object
  extended by org.apache.tiles.ognl.NestedObjectDelegatePropertyAccessor<T>
Type Parameters:
T - The root object type from which the target object will be extracted.

public class NestedObjectDelegatePropertyAccessor<T>
extends java.lang.Object

Uses a PropertyAccessor as a delegate, but passing a nested object as target.

Since:
2.2.0
Version:
$Rev: 817009 $ $Date: 2009-09-20 13:26:26 +0200 (dom, 20 set 2009) $

Constructor Summary
NestedObjectDelegatePropertyAccessor(NestedObjectExtractor<T> nestedObjectExtractor, PropertyAccessor propertyAccessor)
          Constructor.
 
Method Summary
 java.lang.Object getProperty(java.util.Map context, java.lang.Object target, java.lang.Object name)
          
 java.lang.String getSourceAccessor(OgnlContext context, java.lang.Object target, java.lang.Object index)
          
 java.lang.String getSourceSetter(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,
                                            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 OgnlException

Throws:
OgnlException

setProperty

public void setProperty(java.util.Map context,
                        java.lang.Object target,
                        java.lang.Object name,
                        java.lang.Object value)
                 throws OgnlException

Throws:
OgnlException

getSourceAccessor

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


getSourceSetter

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