Xalan-C++ API Documentation
Xalan-C++ API Documentation
The Xalan-C++ XSL Transformer Version 1.0
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Compound Members File Members
SimpleNodeLocator Class Reference
SimpleNodeLocator implements a search of one or more DOM trees.
More...
#include <SimpleNodeLocator.hpp>
Inheritance diagram for SimpleNodeLocator:
Collaboration diagram for SimpleNodeLocator:
List of all members.
Public Methods
Static Public Methods
Protected Methods
- void step ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, MutableNodeRefList& queryResults)
- XalanNode* stepPattern ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, double& scoreHolder)
- Execute a step in a location path. More...
- int findNodeSet ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, int stepType, MutableNodeRefList& subQueryResults)
- int findRoot ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, int stepType, MutableNodeRefList& subQueryResults)
- int findParent ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, int stepType, MutableNodeRefList& subQueryResults)
- int findSelf ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, int stepType, MutableNodeRefList& subQueryResults)
- int findAncestors ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, int stepType, MutableNodeRefList& subQueryResults)
- int findAncestorsOrSelf ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, int stepType, MutableNodeRefList& subQueryResults)
- int findAttributes ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, int stepType, MutableNodeRefList& subQueryResults)
- int findChildren ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, int stepType, MutableNodeRefList& subQueryResults)
- int findDescendants ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, int stepType, MutableNodeRefList& subQueryResults)
- int findFollowing ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, int stepType, MutableNodeRefList& subQueryResults)
- int findFollowingSiblings ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, int stepType, MutableNodeRefList& subQueryResults)
- int findPreceeding ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, int stepType, MutableNodeRefList& subQueryResults)
- int findPreceedingSiblings ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, int stepType, MutableNodeRefList& subQueryResults)
- int findNamespace ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, int stepType, MutableNodeRefList& subQueryResults)
- int findNodesOnUnknownAxis ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, int stepType, MutableNodeRefList& subQueryResults)
- double nodeTest ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, int argLen, int stepType)
- void predicates ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* context, int opPos, MutableNodeRefList& subQueryResults, int& endPredicatesPos)
- double handleFoundIndex ( const XPath& xpath, XPathExecutionContext& executionContext, XalanNode* localContext, int startOpPos)
Detailed Description
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 & Destructor Documentation
explicit SimpleNodeLocator::SimpleNodeLocator () |
|
virtual SimpleNodeLocator::~SimpleNodeLocator () [virtual] |
|
Member Function Documentation
SimpleNodeLocator* SimpleNodeLocator::getDefaultInstance () [static] |
|
Execute a location path.
Normally, this method simply moves past the
OP_LOCATIONPATH and its length member, and calls the Step function,
which will recursively process the rest of the location path, and then
wraps the resulting node list in an XNodeSet object.
-
Parameters:
-
xpath
|
xpath that is executing
|
context
|
current source tree context node
|
opPos
|
current position in the xpath.m_opMap array
|
-
Returns:
-
result of the query in a pointer to an XObject
Reimplemented from XLocator.
Execute a location path pattern.
-
Parameters:
-
xpath
|
xpath that is executing
|
context
|
current source tree context node
|
opPos
|
current position in the xpath operation map array
|
-
Returns:
-
score, one of MATCH_SCORE_NODETEST, MATCH_SCORE_NONE,
MATCH_SCORE_OTHER, MATCH_SCORE_QNAME
Reimplemented from XLocator.
Execute a step in a location path.
-
Parameters:
-
xpath
|
The xpath that is executing
|
context
|
The current source tree context node
|
opPos
|
The current position in the xpath operation map array
|
scoreHolder
|
a reference to a double to receive the result.
|
-
Returns:
-
the last matched context node
The documentation for this class was generated from the following file:
Interpreting class diagrams
Doxygen and
GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSL Transformer Version 1.0
Copyright © 2000 The Apache Software Foundation. All Rights Reserved.
|
|