Xalan-C++ API Documentation

The Xalan C++ XSL Transformer Version 1.1

Main Page   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

Inheritance graph

[legend]
Collaboration diagram for SimpleNodeLocator:

Collaboration graph

[legend]
List of all members.

Public Methods

Static Public Methods

Protected Methods


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

SimpleNodeLocator::SimpleNodeLocator ( ) [explicit]
 

virtual SimpleNodeLocator::~SimpleNodeLocator ( ) [virtual]
 


Member Function Documentation

int SimpleNodeLocator::findAncestors ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
int stepType,
MutableNodeRefList & subQueryResults ) [protected]
 

int SimpleNodeLocator::findAncestorsOrSelf ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
int stepType,
MutableNodeRefList & subQueryResults ) [protected]
 

int SimpleNodeLocator::findAttributes ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
int stepType,
MutableNodeRefList & subQueryResults ) [protected]
 

int SimpleNodeLocator::findChildren ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
int stepType,
MutableNodeRefList & subQueryResults ) [protected]
 

int SimpleNodeLocator::findDescendants ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
int stepType,
MutableNodeRefList & subQueryResults ) [protected]
 

int SimpleNodeLocator::findFollowing ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
int stepType,
MutableNodeRefList & subQueryResults ) [protected]
 

int SimpleNodeLocator::findFollowingSiblings ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
int stepType,
MutableNodeRefList & subQueryResults ) [protected]
 

int SimpleNodeLocator::findNamespace ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
int stepType,
MutableNodeRefList & subQueryResults ) [protected]
 

int SimpleNodeLocator::findNodeSet ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
int stepType,
MutableNodeRefList & subQueryResults ) [protected]
 

int SimpleNodeLocator::findNodesOnUnknownAxis ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
int stepType,
MutableNodeRefList & subQueryResults ) [protected]
 

int SimpleNodeLocator::findParent ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
int stepType,
MutableNodeRefList & subQueryResults ) [protected]
 

int SimpleNodeLocator::findPreceeding ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
int stepType,
MutableNodeRefList & subQueryResults ) [protected]
 

int SimpleNodeLocator::findPreceedingSiblings ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
int stepType,
MutableNodeRefList & subQueryResults ) [protected]
 

int SimpleNodeLocator::findRoot ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
int stepType,
MutableNodeRefList & subQueryResults ) [protected]
 

int SimpleNodeLocator::findSelf ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
int stepType,
MutableNodeRefList & subQueryResults ) [protected]
 

SimpleNodeLocator* SimpleNodeLocator::getDefaultInstance ( ) [static]
 

double SimpleNodeLocator::handleFoundIndex ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * localContext,
int startOpPos ) [protected]
 

virtual const XObjectPtr SimpleNodeLocator::locationPath ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode & context,
int opPos ) [virtual]
 

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.

virtual double SimpleNodeLocator::locationPathPattern ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode & context,
int opPos ) [virtual]
 

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.

double SimpleNodeLocator::nodeTest ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
int argLen,
int stepType ) [protected]
 

void SimpleNodeLocator::predicates ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
MutableNodeRefList & subQueryResults,
int & endPredicatesPos ) [protected]
 

void SimpleNodeLocator::step ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
MutableNodeRefList & queryResults ) [protected]
 

XalanNode * SimpleNodeLocator::stepPattern ( const XPath & xpath,
XPathExecutionContext & executionContext,
XalanNode * context,
int opPos,
double & scoreHolder ) [protected]
 

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.1
Copyright © 2000, 2001 The Apache Software Foundation. All Rights Reserved.