com.opensymphony.xwork.util
Class XWorkCollectionPropertyAccessor
java.lang.Object
ognl.ObjectPropertyAccessor
ognl.SetPropertyAccessor
com.opensymphony.xwork.util.XWorkCollectionPropertyAccessor
- All Implemented Interfaces:
- ognl.PropertyAccessor
public class XWorkCollectionPropertyAccessor
- extends ognl.SetPropertyAccessor
- Author:
- Gabe
Method Summary |
java.lang.Object |
getProperty(java.util.Map context,
java.lang.Object target,
java.lang.Object key)
Gets the property of a Collection by indexing the collection
based on a key property. |
java.lang.Object |
getPropertyThroughIteration(java.util.Map context,
java.util.Collection collection,
java.lang.String property,
java.lang.Object key)
|
void |
setProperty(java.util.Map arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
|
Methods inherited from class ognl.ObjectPropertyAccessor |
getPossibleProperty, hasGetProperty, hasGetProperty, hasSetProperty, hasSetProperty, setPossibleProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_PROPERTY_FOR_CREATION
public static final java.lang.String KEY_PROPERTY_FOR_CREATION
- See Also:
- Constant Field Values
XWorkCollectionPropertyAccessor
public XWorkCollectionPropertyAccessor()
getProperty
public java.lang.Object getProperty(java.util.Map context,
java.lang.Object target,
java.lang.Object key)
throws ognl.OgnlException
- Gets the property of a Collection by indexing the collection
based on a key property. For example, if the key property were
'id', this method would convert the key Object to whatever
type the id property was, and then access the Set like it was
a Map returning a JavaBean with the value of id property matching
the input.
- Specified by:
getProperty
in interface ognl.PropertyAccessor
- Overrides:
getProperty
in class ognl.SetPropertyAccessor
- Throws:
ognl.OgnlException
- See Also:
PropertyAccessor.getProperty(java.util.Map, Object, Object)
getPropertyThroughIteration
public java.lang.Object getPropertyThroughIteration(java.util.Map context,
java.util.Collection collection,
java.lang.String property,
java.lang.Object key)
throws ognl.OgnlException
- Throws:
ognl.OgnlException
setProperty
public void setProperty(java.util.Map arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
throws ognl.OgnlException
- Specified by:
setProperty
in interface ognl.PropertyAccessor
- Overrides:
setProperty
in class ognl.ObjectPropertyAccessor
- Throws:
ognl.OgnlException