Xalan-C++ API Reference
1.12.0
|
#include <xalanc/XMLSupport/XMLParserLiaison.hpp>
Classes | |
class | EnsureDestroyDocument |
class | EnsureResetErrorHandler |
Public Member Functions | |
XMLParserLiaison () | |
virtual | ~XMLParserLiaison () |
virtual void | reset ()=0 |
Reset the instance, freeing any XalanDocument instances created through parseXMLStream(). More... | |
virtual ExecutionContext * | getExecutionContext () const =0 |
Get a pointer to the current ExecutionContext instance, which may be null. More... | |
virtual MemoryManager & | getMemoryManager ()=0 |
Get a reference to the current MemoryManager instance. More... | |
virtual void | setExecutionContext (ExecutionContext &theContext)=0 |
Set the current ExecutionContext instance. More... | |
virtual XalanDocument * | parseXMLStream (const InputSource &inputSource, const XalanDOMString &identifier)=0 |
Parse the text pointed at by the reader as XML, and return a DOM Document interface. More... | |
virtual void | parseXMLStream (const InputSource &inputSource, DocumentHandler &handler, const XalanDOMString &identifier)=0 |
Parse the text pointed at by the reader as XML. More... | |
virtual void | destroyDocument (XalanDocument *theDocument)=0 |
Destroy the supplied XalanDocument instance. More... | |
virtual int | getIndent () const =0 |
Get the amount to indent when indent-result="yes". More... | |
virtual void | setIndent (int i)=0 |
Set the amount to indent when indent-result="yes". More... | |
virtual bool | getUseValidation () const =0 |
Get whether or not validation will be performed. More... | |
virtual void | setUseValidation (bool b)=0 |
If set to true, validation will be performed. More... | |
virtual const XalanDOMString & | getParserDescription (XalanDOMString &theResult) const =0 |
Return a string suitable for telling the user what parser is being used. More... | |
virtual EntityResolver * | getEntityResolver () const =0 |
This method returns the installed EntityResolver. More... | |
virtual void | setEntityResolver (EntityResolver *resolver)=0 |
This method installs the user-specified EntityResolver on the parser. More... | |
virtual XMLEntityResolver * | getXMLEntityResolver () const =0 |
This method returns the installed XMLEntityResolver. More... | |
virtual void | setXMLEntityResolver (XMLEntityResolver *resolver)=0 |
This method installs the user-specified XMLEntityResolver on the parser. More... | |
virtual ErrorHandler * | getErrorHandler () const =0 |
This method returns the installed error handler. More... | |
virtual void | setErrorHandler (ErrorHandler *handler)=0 |
This method installs the user-specified error handler. More... | |
Definition at line 68 of file XMLParserLiaison.hpp.
xalanc::XMLParserLiaison::XMLParserLiaison | ( | ) |
|
virtual |
|
pure virtual |
Destroy the supplied XalanDocument instance.
It must be an instance that was created by a previous call to parseXMLStream().
theDocument | The XalanDocument instance to destroy. |
Implemented in xalanc::XalanSourceTreeParserLiaison, and xalanc::XercesParserLiaison.
|
pure virtual |
This method returns the installed EntityResolver.
Implemented in xalanc::XalanSourceTreeParserLiaison, and xalanc::XercesParserLiaison.
|
pure virtual |
This method returns the installed error handler.
Implemented in xalanc::XalanSourceTreeParserLiaison, and xalanc::XercesParserLiaison.
|
pure virtual |
Get a pointer to the current ExecutionContext instance, which may be null.
Implemented in xalanc::XalanSourceTreeParserLiaison, and xalanc::XercesParserLiaison.
|
pure virtual |
Get the amount to indent when indent-result="yes".
Implemented in xalanc::XalanSourceTreeParserLiaison, and xalanc::XercesParserLiaison.
|
pure virtual |
Get a reference to the current MemoryManager instance.
Implemented in xalanc::XercesParserLiaison, and xalanc::XalanSourceTreeParserLiaison.
|
pure virtual |
Return a string suitable for telling the user what parser is being used.
Implemented in xalanc::XalanSourceTreeParserLiaison, and xalanc::XercesParserLiaison.
|
pure virtual |
Get whether or not validation will be performed.
Validation is off by default.
Implemented in xalanc::XalanSourceTreeParserLiaison, and xalanc::XercesParserLiaison.
|
pure virtual |
This method returns the installed XMLEntityResolver.
Implemented in xalanc::XalanSourceTreeParserLiaison, and xalanc::XercesParserLiaison.
|
pure virtual |
Parse the text pointed at by the reader as XML, and return a DOM Document interface.
It is recommended that you pass in some sort of recognizable name, such as the filename or URI, with which the reader can be recognized if the parse fails.
The liaison owns the XalanDocument instance, and will delete it when asked (see DestroyDocument()), or when the liaison is reset, or goes out of scope.
This function is not reentrant, so you cannot call it again until the current call exits.
reader | stream that should hold valid XML |
identifier | used for diagnostic purposes only, some sort of identification for error reporting, default an empty string |
Implemented in xalanc::XalanSourceTreeParserLiaison, and xalanc::XercesParserLiaison.
|
pure virtual |
Parse the text pointed at by the reader as XML.
It is recommended that you pass in some sort of recognizable name, such as the filename or URI, with which the reader can be recognized if the parse fails.
This function is reentrant, so you can call it again before any other call exits. However, it is not thread-safe.
inputSource | input source that should hold valid XML |
handler | instance of a DocumentHandler |
identifier | used for diagnostic purposes only, some sort of identification for error reporting, default an empty string |
Implemented in xalanc::XercesParserLiaison, and xalanc::XalanSourceTreeParserLiaison.
|
pure virtual |
Reset the instance, freeing any XalanDocument instances created through parseXMLStream().
Implemented in xalanc::XalanSourceTreeParserLiaison, and xalanc::XercesParserLiaison.
|
pure virtual |
This method installs the user-specified EntityResolver on the parser.
It allows applications to trap and redirect calls to external entities.
A call to setEntityResolver with a non-null pointer will uninstall any XMLEntityResolver previously installed.
handler | A pointer to the EntityResolver to be called when the parser encounters references to external entities. |
Implemented in xalanc::XalanSourceTreeParserLiaison, and xalanc::XercesParserLiaison.
|
pure virtual |
This method installs the user-specified error handler.
handler | A pointer to the error handler to be called upon error. |
Implemented in xalanc::XalanSourceTreeParserLiaison, and xalanc::XercesParserLiaison.
Referenced by xalanc::XMLParserLiaison::EnsureResetErrorHandler::set().
|
pure virtual |
Set the current ExecutionContext instance.
@parameter theContext A reference to the new ExecutionContext instance.
Implemented in xalanc::XalanSourceTreeParserLiaison, and xalanc::XercesParserLiaison.
|
pure virtual |
Set the amount to indent when indent-result="yes".
i | number of characters to indent |
Implemented in xalanc::XalanSourceTreeParserLiaison, and xalanc::XercesParserLiaison.
|
pure virtual |
If set to true, validation will be performed.
Validation is off by default.
b | true to perform validation |
Implemented in xalanc::XalanSourceTreeParserLiaison, and xalanc::XercesParserLiaison.
|
pure virtual |
This method installs the user-specified XMLEntityResolver on the parser.
It allows applications to trap and redirect calls to external entities.
A call to setXMLEntityResolver with a non-null pointer will uninstall any EntityResolver previously installed.
handler | A pointer to the entity resolver to be called when the parser encounters references to external entities. |
Implemented in xalanc::XalanSourceTreeParserLiaison, and xalanc::XercesParserLiaison.
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:40 for Xalan-C++ API Reference by 1.8.17