public class JXPathContextObjectFactory
extends org.apache.commons.jxpath.AbstractFactory
AbstractFactory
implementation that uses reflection to create missing objects, see related JXPath guide: Creating objects. Implements createObject
method and attempts to create what is missing. The following objects are automatically created if found in the path:
Collection
or List
- ArrayList
Set
- HashSet
Queue
- LinkedList
NOTE: when assigning to Arrays or Collections by index, remember that in XPath "1" is the index for first element (NOT 0). Using "1" in an XPath assigns to the first slot, using "0" will raise an IndexOutOfBoundsException.