Class JXPathContextObjectFactory


public class JXPathContextObjectFactory

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:

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.