Xalan-C++ API Documentation
Go to the documentation of this file.
18 #if !defined(XPATHEXECUTIONCONTEXT_HEADER_GUARD_1357924680)
19 #define XPATHEXECUTIONCONTEXT_HEADER_GUARD_1357924680
49 XALAN_DECLARE_XERCES_CLASS(ErrorHandler)
53 XALAN_CPP_NAMESPACE_BEGIN
89 MemoryManager& theMemoryManager,
131 m_executionContext(theExecutionContext)
138 m_executionContext.popCurrentNode();
154 assert(m_xobjectFactory != 0);
156 return *m_xobjectFactory;
192 m_executionContext(theExecutionContext)
194 m_executionContext.pushContextNodeList(theNodeList);
199 m_executionContext.popContextNodeList();
256 const Locator* locator)
const = 0;
279 const Locator* locator)
const = 0;
297 const Locator* locator) = 0;
310 MemoryManager& theManager,
313 ErrorHandler* theErrorHandler = 0)
const = 0;
337 m_xpathExecutionContext(&executionContext),
338 m_mutableNodeRefList(executionContext.borrowMutableNodeRefList())
340 assert(m_mutableNodeRefList != 0);
345 m_xpathExecutionContext(theSource.m_xpathExecutionContext),
346 m_mutableNodeRefList(theSource.m_mutableNodeRefList)
348 assert(m_mutableNodeRefList != 0);
361 assert(m_mutableNodeRefList != 0);
363 return *m_mutableNodeRefList;
369 return m_mutableNodeRefList;
381 assert(m_xpathExecutionContext != 0);
383 if (m_mutableNodeRefList != 0)
385 m_xpathExecutionContext->returnMutableNodeRefList(m_mutableNodeRefList);
387 m_mutableNodeRefList = 0;
394 assert(m_xpathExecutionContext != 0);
398 *theResult = *m_mutableNodeRefList;
409 m_xpathExecutionContext = theRHS.m_xpathExecutionContext;
411 m_mutableNodeRefList = theRHS.m_mutableNodeRefList;
413 theRHS.m_mutableNodeRefList = 0;
450 m_executionContext(&theExecutionContext),
451 m_string(&theExecutionContext.getCachedString())
457 m_executionContext(theSource.m_executionContext),
458 m_string(theSource.m_string)
460 theSource.m_string = 0;
467 m_executionContext->releaseCachedString(*m_string);
474 assert(m_string != 0);
482 return *m_executionContext;
528 const Locator* locator,
548 const Locator* locator,
562 const Locator* locator = 0) = 0;
587 m_executionContext(theExecutionContext),
588 m_savedResolver(theExecutionContext.getPrefixResolver())
590 m_executionContext.setPrefixResolver(theResolver);
597 m_executionContext(theExecutionContext),
598 m_savedResolver(theOldResolver)
600 m_executionContext.setPrefixResolver(theNewResolver);
605 m_executionContext.setPrefixResolver(m_savedResolver);
682 const Locator* locator = 0) = 0;
701 const Locator* locator = 0) = 0;
710 const Locator* locator,
730 XALAN_CPP_NAMESPACE_END
734 #endif // XPATHEXECUTIONCONTEXT_HEADER_GUARD_1357924680
XObjectFactory & getXObjectFactory() const
Retrieve the factory object for creating XObjects.
virtual const XObjectPtr getVariable(const XalanQName &name, const Locator *locator=0)=0
Given a name, locate a variable in the current context, and return a pointer to the object.
virtual const XalanDOMString & findURIFromDoc(const XalanDocument *owner) const =0
Given a DOM Document, tell what URI was used to parse it.
virtual ~XPathExecutionContext()
PrefixResolverSetAndRestore(XPathExecutionContext &theExecutionContext, const PrefixResolver *theOldResolver, const PrefixResolver *theNewResolver)
NodeRefListBase::size_type size_type
virtual void getNodeSetByKey(XalanNode *context, const XalanQName &qname, const XalanDOMString &ref, const Locator *locator, MutableNodeRefList &nodelist)=0
Given a valid element key, return the corresponding node list.
This class defines an interface for classes that resolve namespace prefixes to their URIs.
virtual void pushCurrentNode(XalanNode *theCurrentNode)=0
Change the node currently being executed.
virtual void reset()=0
Reset the instance.
Class to hold XPath return types.
GetCachedNodeList(const GetCachedNodeList &theSource)
virtual MutableNodeRefList * borrowMutableNodeRefList()=0
Borrow a cached MutableNodeRefList instance.
virtual const XObjectPtr extFunction(const XalanDOMString &theNamespace, const XalanDOMString &functionName, XalanNode *context, const XObjectArgVectorType &argVec, const Locator *locator)=0
Handle an extension function.
virtual bool releaseCachedString(XalanDOMString &theString)=0
Return a cached string.
virtual XalanDocument * getSourceDocument(const XalanDOMString &theURI) const =0
Get the document associated with the given URI.
virtual bool isNodeAfter(const XalanNode &node1, const XalanNode &node2) const =0
Determine if a node is after another node, in document order.
GetCachedNodeList BorrowReturnMutableNodeRefList
virtual const XalanDOMString * getNamespaceForPrefix(const XalanDOMString &prefix) const =0
Retrieve the URI corresponding to a namespace prefix.
GetCachedNodeList & operator=(GetCachedNodeList &theRHS)
PrefixResolverSetAndRestore(XPathExecutionContext &theExecutionContext, const PrefixResolver *theResolver)
virtual const PrefixResolver * getPrefixResolver() const =0
Retrieve the resolver for namespaces.
virtual void setSourceDocument(const XalanDOMString &theURI, XalanDocument *theDocument)=0
Associate a document with a given URI.
virtual const XalanDOMString & getUnparsedEntityURI(const XalanDOMString &theName, const XalanDocument &theDocument) const =0
The getUnparsedEntityURI function returns the URI of the unparsed entity with the specified name in t...
virtual MutableNodeRefList * createMutableNodeRefList(MemoryManager &theManager) const =0
Create a MutableNodeRefList with the appropriate context.
virtual bool shouldStripSourceNode(const XalanText &node)=0
Determine if a text node should be stripped from the source tree, as if it weren't there.
virtual void getNodeSetByKey(XalanNode *context, const XalanDOMString &name, const XalanDOMString &ref, const Locator *locator, MutableNodeRefList &nodelist)=0
Given a valid element key, return the corresponding node list.
ContextNodeListPushAndPop(XPathExecutionContext &theExecutionContext, const NodeRefListBase &theNodeList)
#define XALAN_XPATH_EXPORT
virtual void popCurrentNode()=0
Reset the node currently being executed.
virtual bool functionAvailable(const XalanDOMString &theName, const Locator *locator) const =0
Determine if a function is available.
virtual bool returnMutableNodeRefList(MutableNodeRefList *theList)=0
Return a previously borrowed MutableNodeRefList instance.
virtual bool functionAvailable(const XalanQName &theQName) const =0
Determine if a function is available.
virtual size_type getContextNodeListLength() const =0
virtual void popContextNodeList()=0
Pop the node list for current context.
virtual XalanNode * getCurrentNode() const =0
Retrieve the node currently being executed.
virtual const NodeRefListBase & getContextNodeList() const =0
Get the node list for current context.
GetCachedString(XPathExecutionContext &theExecutionContext)
This class handles the creation of XObjects and manages their lifetime.
MutableNodeRefList * operator->() const
XalanVector< XObjectPtr > XObjectArgVectorType
virtual void formatNumber(double number, const XalanDOMString &pattern, XalanDOMString &theResult, const XalanNode *context=0, const Locator *locator=0)=0
Formats a number according to the specified pattern.
virtual XalanDocument * parseXML(MemoryManager &theManager, const XalanDOMString &urlString, const XalanDOMString &base, ErrorHandler *theErrorHandler=0) const =0
Provides support for XML parsing service.
XALAN_CPP_NAMESPACE_BEGIN XALAN_USING_XERCES(Locator)
GetCachedNodeList clone() const
XPathExecutionContext(MemoryManager &theMemoryManager, XObjectFactory *theXObjectFactory=0)
virtual void problem(eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode)=0
Function that is called when a problem event occurs.
Class to hold XObjectPtr return types.
XPathExecutionContext & getExecutionContext() const
Local implementation of NodeRefList.
virtual void setPrefixResolver(const PrefixResolver *thePrefixResolver)=0
Change the resolver for namespaces.
virtual void pushContextNodeList(const NodeRefListBase &theList)=0
Push the node list for current context.
MutableNodeRefList * get() const
virtual bool elementAvailable(const XalanQName &theQName) const =0
Determine if an external element is available.
virtual XalanDOMString & getCachedString()=0
Get a cached string for temporary use.
Class to represent a qualified name.
XalanDOMString & get() const
XObjectFactory * m_xobjectFactory
MutableNodeRefList & operator*() const
~ContextNodeListPushAndPop()
GetCachedNodeList(XPathExecutionContext &executionContext)
Local implementation of MutableNodeRefList.
virtual void problem(eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode)=0
Function that is called when a problem event occurs.
GetCachedString(GetCachedString &theSource)
GetCachedString GetAndReleaseCachedString
virtual bool elementAvailable(const XalanDOMString &theName, const Locator *locator) const =0
Determine if an external element is available by resolving a string to a QName.
virtual void formatNumber(double number, const XalanDOMString &pattern, const XalanDOMString &dfsName, XalanDOMString &theResult, const XalanNode *context=0, const Locator *locator=0)=0
Formats a number according to the specified pattern.
virtual size_type getContextNodeListPosition(const XalanNode &contextNode) const =0
CurrentNodePushAndPop(XPathExecutionContext &theExecutionContext, XalanNode *theNewNode)
~PrefixResolverSetAndRestore()
Interpreting class diagrams
Doxygen and
GraphViz are
used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.
|
|