public abstract class AbstractFactory extends Object
JXPathContext.createPath()method of JXPathContext can create missing objects as it traverses an XPath; it utilizes an AbstractFactory for that purpose. Install a factory on JXPathContext by calling
All methods of this class return false. Override any of them to return true to indicate that the factory has successfully created the described object.
|Constructor and Description|
|Modifier and Type||Method and Description|
The parameters may describe a collection element or an individual object.
Declare the specified variable
public boolean createObject(JXPathContext context, Pointer pointer, Object parent, String name, int index)
context- can be used to evaluate other XPaths, get to variables etc.
pointer- describes the location of the node to be created
parent- is the object that will serve as a parent of the new object
name- is the name of the child of the parent that needs to be created. In the case of DOM may be qualified.
index- is used if the pointer represents a collection element. You may need to expand or even create the collection to accommodate the new element.
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.