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 Details

  • Constructor Details

    • XWorkCollectionPropertyAccessor

      public XWorkCollectionPropertyAccessor()
  • Method Details

    • setXWorkConverter

      public void setXWorkConverter(XWorkConverter conv)
    • setObjectFactory

      public void setObjectFactory(ObjectFactory fac)
    • setObjectTypeDeterminer

      public void setObjectTypeDeterminer(ObjectTypeDeterminer ot)
    • setOgnlUtil

      public void setOgnlUtil(OgnlUtil util)
    • getProperty

      public Object getProperty(Map context, Object target, 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 Object getPropertyThroughIteration(Map context, Collection collection, String property, Object key) throws ognl.OgnlException
      Throws:
      ognl.OgnlException
    • setProperty

      public void setProperty(Map context, Object target, Object name, Object value) throws ognl.OgnlException
      Specified by:
      setProperty in interface ognl.PropertyAccessor
      Overrides:
      setProperty in class ognl.ObjectPropertyAccessor
      Throws:
      ognl.OgnlException