|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xalan.xpath.SimpleNodeLocator
**For advanced use only** SimpleNodeLocator implements a search of one or more DOM trees. By using the connect function as an extension, the user may specify a directory and a filter specification for XML files that will be searched. This is a singleton class.
Constructor Summary | |
SimpleNodeLocator()
**For advanced use only** Create a SimpleNodeLocator object. |
Method Summary | |
static XLocator |
connect(java.lang.String path,
java.lang.String fileSpec)
**For advanced use only** (Same as query for the moment). |
XNodeSet |
connectToNodes(XPath xpath,
XPathSupport execContext,
org.w3c.dom.Node context,
int opPos,
java.util.Vector connectArgs)
**For advanced use only** Execute a connection (if it was not executed by the static connect method) and process the following LocationPath, if it is present. |
static XPathFactory |
factory()
**For advanced use only** Create an XPathFactory for this XLocator. |
static XLocator |
getDefaultLocator()
**For advanced use only** The the default locator. |
XNodeSet |
locationPath(XPath xpath,
XPathSupport execContext,
org.w3c.dom.Node context,
int opPos,
NodeCallback callback,
java.lang.Object callbackInfo,
boolean stopAtFirst)
**For advanced use only** Execute a location path. |
double |
locationPathPattern(XPath xpath,
XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
**For advanced use only** Execute a a location path pattern. |
double |
nodeTest(XPath xpath,
XPathSupport execContext,
org.w3c.dom.Node context,
int opPos,
int argLen,
int stepType)
**For advanced use only** Test a node to see if it matches the given node test. |
static XLocator |
query(java.lang.String path,
java.lang.String fileSpec)
**For advanced use only** Execute the proprietary connect() function, which returns an instance of XLocator. |
XNodeSet |
union(XPath xpath,
XPathSupport execContext,
org.w3c.dom.Node context,
int opPos,
NodeCallback callback,
java.lang.Object callbackInfo)
**For advanced use only** Computes the union of its operands which must be node-sets. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SimpleNodeLocator()
Method Detail |
public static XLocator getDefaultLocator()
public static XLocator query(java.lang.String path, java.lang.String fileSpec)
opPos
- The current position in the xpath.m_opMap array.args
- The function args.public static XLocator connect(java.lang.String path, java.lang.String fileSpec)
opPos
- The current position in the xpath.m_opMap array.args
- The function args.public XNodeSet connectToNodes(XPath xpath, XPathSupport execContext, org.w3c.dom.Node context, int opPos, java.util.Vector connectArgs) throws org.xml.sax.SAXException
xpath
- The xpath that is executing.context
- The current source tree context node.opPos
- The current position in the xpath.m_opMap array.connectArgs
- The same arguments that were passed to the
static connect function.public XNodeSet union(XPath xpath, XPathSupport execContext, org.w3c.dom.Node context, int opPos, NodeCallback callback, java.lang.Object callbackInfo) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.public XNodeSet locationPath(XPath xpath, XPathSupport execContext, org.w3c.dom.Node context, int opPos, NodeCallback callback, java.lang.Object callbackInfo, boolean stopAtFirst) throws org.xml.sax.SAXException
xpath
- The xpath that is executing.execContext
- The execution context.context
- The current source tree context node.opPos
- The current position in the xpath.m_opMap array.callback
- Interface that implements the processLocatedNode method.callbackInfo
- Object that will be passed to the processLocatedNode method.public double locationPathPattern(XPath xpath, XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
xpath
- The xpath that is executing.context
- The current source tree context node.opPos
- The current position in the xpath.m_opMap array.public double nodeTest(XPath xpath, XPathSupport execContext, org.w3c.dom.Node context, int opPos, int argLen, int stepType) throws org.xml.sax.SAXException
xpath
- The xpath that is executing.context
- The current source tree context node.opPos
- The current position in the xpath.m_opMap array.len
- The length of the argument.len
- The type of the step.public static XPathFactory factory()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |