Xalan-C++ API Reference 1.12.0
|
#include <xalanc/XPath/XPathExecutionContext.hpp>
Classes | |
class | ContextNodeListPushAndPop |
class | CurrentNodePushAndPop |
class | GetCachedNodeList |
class | GetCachedString |
class | PrefixResolverSetAndRestore |
Public Types | |
typedef XalanVector< XObjectPtr > | XObjectArgVectorType |
typedef NodeRefListBase::size_type | size_type |
typedef GetCachedNodeList | BorrowReturnMutableNodeRefList |
typedef GetCachedString | GetAndReleaseCachedString |
![]() | |
enum | eSource { eXMLPARSER = 0 , eXMLParser = 0 , eXSLPROCESSOR = 1 , eXSLTProcessor = 1 , eXPATH = 2 , eXPath = 2 , eSourceCount } |
enum | eClassification { eMESSAGE = 0 , eMessage = 0 , eWARNING = 1 , eWarning = 1 , eERROR = 2 , eError = 2 , eClassificationCount } |
typedef eSource | eProblemSource |
Protected Attributes | |
XObjectFactory * | m_xobjectFactory |
![]() | |
MemoryManager & | m_memoryManager |
bool | m_hasPreserveOrStripConditions |
Additional Inherited Members | |
![]() | |
static void | defaultFormat (PrintWriter &pw, eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode) |
Function to format a problem call to a PrintWriter instance. | |
static void | defaultFormat (PrintWriter &pw, eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode) |
Function to format a problem call to a PrintWriter instance. | |
![]() | |
static const XalanMessages::Codes | s_messageCodes [eSourceCount][eClassificationCount] |
Definition at line 82 of file XPathExecutionContext.hpp.
Definition at line 428 of file XPathExecutionContext.hpp.
Definition at line 505 of file XPathExecutionContext.hpp.
Definition at line 88 of file XPathExecutionContext.hpp.
Definition at line 86 of file XPathExecutionContext.hpp.
|
explicit |
|
virtual |
|
pure virtual |
Borrow a cached MutableNodeRefList instance.
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Create a MutableNodeRefList with the appropriate context.
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Determine if an external element is available by resolving a string to a QName.
theName | The name of the element |
locator | A Locator instance for error reporting |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Determine if an external element is available.
theQName | The QName of the element |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Handle an extension function.
theNamespace | namespace of function |
functionName | extension function name |
context | The context node |
argVec | vector of arguments to function |
locator | A Locator instance for error reporting |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Given a DOM Document, tell what URI was used to parse it.
Needed for relative resolution.
owner | source document |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Formats a number according to the specified pattern.
number | the number to be formatted |
pattern | the format pattern |
dfsName | the name of decimal format to use |
theResult | the formatted number |
context | the source node |
locator | the locator |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Formats a number according to the specified pattern.
number | the number to be formatted |
pattern | the format pattern |
theResult | the formatted number |
context | the source node |
locator | the locator |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Determine if a function is available.
theName | The name of the function |
locator | A Locator instance for error reporting |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Determine if a function is available.
theQName | The QName of the function |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Get a cached string for temporary use.
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Get the node list for current context.
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
Retrieve the node currently being executed.
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Retrieve the URI corresponding to a namespace prefix.
prefix | prefix for a namespace |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Given a valid element key, return the corresponding node list.
context | context node |
name | name of the key, which must match the 'name' attribute on xsl:key. Will be resolved to a qname using the provided resolver. |
ref | value that must match the value found by the 'match' attribute on xsl:key |
locator | The Locator to use for error reporting. Can be 0. |
nodelist | A node list to contain the nodes found |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Given a valid element key, return the corresponding node list.
context | context node |
name | qname of the key, which must match the 'name' attribute on xsl:key |
ref | value that must match the value found by the 'match' attribute on xsl:key |
locator | The Locator to use for error reporting. Can be 0. |
nodelist | A node list to contain the nodes found |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Retrieve the resolver for namespaces.
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Get the document associated with the given URI.
theURI | document URI |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
The getUnparsedEntityURI function returns the URI of the unparsed entity with the specified name in the same document as the context node (see [3.3 Unparsed Entities]).
It returns the empty string if there is no such entity.
theName | name of entity |
theDocument | document containing entity |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Given a name, locate a variable in the current context, and return a pointer to the object.
theName | name of variable |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
inline |
Retrieve the factory object for creating XObjects.
Definition at line 155 of file XPathExecutionContext.hpp.
|
pure virtual |
Determine if a node is after another node, in document order.
node1 | The first node |
node2 | The second node |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Provides support for XML parsing service.
theManager | The MemoryManager instance to use. |
urlString | location of the XML |
base | base location for URI |
theErrorHandler | An optional ErrorHandler instance for error reporting. |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
Pop the node list for current context.
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
Reset the node currently being executed.
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Function that is called when a problem event occurs.
source | Either eXMLParser, eXSLProcessor, or eXPATH. |
classification | Either eMessage, eWarning, or eError. |
locator | The current Locator instance for the stylesheet. Maybe be a null pointer. |
sourceNode | The current source node, if any. |
msg | The error message. |
Implements xalanc::ExecutionContext.
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Function that is called when a problem event occurs.
This version assumes location information is already formatted into the message.
source | either eXMLPARSER, eXSLPROCESSOR, or eXPATH |
classification | either eMESSAGE, eERROR or eWARNING |
msg | string message explaining the problem. |
Implements xalanc::ExecutionContext.
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Push the node list for current context.
theList | new node list |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Change the node currently being executed.
theCurrentNode | new current node |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Return a cached string.
theString | The string to release. |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
Reset the instance.
This must be called before another execution is attempted.
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Return a previously borrowed MutableNodeRefList instance.
theList | A pointer the to previously borrowed instance. |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Change the resolver for namespaces.
thePrefixResolver | new object for namespace resolution |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Associate a document with a given URI.
theURI | document URI |
theDocument | source document |
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
pure virtual |
Determine if a text node should be stripped from the source tree, as if it weren't there.
textNode | text node from the source tree |
Implements xalanc::ExecutionContext.
Implemented in xalanc::XPathExecutionContextDefault, xalanc::StylesheetExecutionContextDefault, and xalanc::StylesheetExecutionContext.
|
protected |
Definition at line 728 of file XPathExecutionContext.hpp.
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Tue Oct 10 2023 15:42:22 for Xalan-C++ API Reference by