Package org.apache.struts2.ognl.accessor
Class XWorkCollectionPropertyAccessor
java.lang.Object
ognl.ObjectPropertyAccessor
ognl.SetPropertyAccessor
org.apache.struts2.ognl.accessor.XWorkCollectionPropertyAccessor
- All Implemented Interfaces:
- ognl.PropertyAccessor
public class XWorkCollectionPropertyAccessor
extends ognl.SetPropertyAccessor
- Author:
- Gabe
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetProperty(Map context, Object target, Object key) Gets the property of a Collection by indexing the collection based on a key property.getPropertyThroughIteration(Map context, Collection collection, String property, Object key) voidvoidvoidsetOgnlUtil(OgnlUtil util) voidsetProperty(Map context, Object target, Object name, Object value) voidMethods inherited from class ognl.ObjectPropertyAccessorgetPossibleProperty, getPropertyClass, getSourceAccessor, getSourceSetter, hasGetProperty, hasGetProperty, hasSetProperty, hasSetProperty, setPossiblePropertyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ognl.PropertyAccessorgetSourceAccessor, getSourceSetter
- 
Field Details- 
KEY_PROPERTY_FOR_CREATION- See Also:
 
 
- 
- 
Constructor Details- 
XWorkCollectionPropertyAccessorpublic XWorkCollectionPropertyAccessor()
 
- 
- 
Method Details- 
setXWorkConverter
- 
setObjectFactory
- 
setObjectTypeDeterminer
- 
setOgnlUtil
- 
getPropertyGets 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:
- getPropertyin interface- ognl.PropertyAccessor
- Overrides:
- getPropertyin class- ognl.SetPropertyAccessor
- Throws:
- ognl.OgnlException
- See Also:
- 
- PropertyAccessor.getProperty(java.util.Map, Object, Object)
 
 
- 
getPropertyThroughIterationpublic Object getPropertyThroughIteration(Map context, Collection collection, String property, Object key) throws ognl.OgnlException - Throws:
- ognl.OgnlException
 
- 
setPropertypublic void setProperty(Map context, Object target, Object name, Object value) throws ognl.OgnlException - Specified by:
- setPropertyin interface- ognl.PropertyAccessor
- Overrides:
- setPropertyin class- ognl.ObjectPropertyAccessor
- Throws:
- ognl.OgnlException
 
 
-