T
- The root object type from which the target object will be
extracted.public class NestedObjectDelegatePropertyAccessor<T> extends Object implements ognl.PropertyAccessor
PropertyAccessor
as a delegate, but passing a nested object as
target.Constructor and Description |
---|
NestedObjectDelegatePropertyAccessor(NestedObjectExtractor<T> nestedObjectExtractor,
ognl.PropertyAccessor propertyAccessor)
Constructor.
|
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) |
public NestedObjectDelegatePropertyAccessor(NestedObjectExtractor<T> nestedObjectExtractor, ognl.PropertyAccessor propertyAccessor)
nestedObjectExtractor
- The extractor of the nested object.propertyAccessor
- The delegated property accessor.public Object getProperty(Map context, Object target, Object name) throws ognl.OgnlException
getProperty
in interface ognl.PropertyAccessor
ognl.OgnlException
public void setProperty(Map context, Object target, Object name, Object value) throws ognl.OgnlException
setProperty
in interface ognl.PropertyAccessor
ognl.OgnlException
public String getSourceAccessor(ognl.OgnlContext context, Object target, Object index)
getSourceAccessor
in interface ognl.PropertyAccessor
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.