18#if !defined(XercesPARSERLIAISON_HEADER_GUARD_1357924680)
19#define XercesPARSERLIAISON_HEADER_GUARD_1357924680
33#include <xercesc/sax/ErrorHandler.hpp>
42#if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
49namespace XERCES_CPP_NAMESPACE
51#if XERCES_VERSION_MAJOR >= 2
52 class XercesDOMParser;
64class XercesDOMSupport;
65#if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
66class XercesDocumentBridge;
68class XercesDocumentWrapper;
108 return m_externalSchemaLocation.getMemoryManager();
122 const InputSource&
reader,
149 virtual EntityResolver*
155 virtual XMLEntityResolver*
161 virtual ErrorHandler*
321#if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
373 return createDocument(
theXercesDocument, m_threadSafe, m_buildWrapper, m_buildMaps);
395#if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
424#if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
469#if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
493#if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
513 operator=(XercesDocumentWrapper* theWrapper)
515 m_isDeprecated =
false;
517 m_wrapper = theWrapper;
552 return m_buildBridge;
574 m_threadSafe =
false;
587 return m_buildWrapper;
606 m_threadSafe =
false;
640 if (m_threadSafe ==
true)
642 m_buildWrapper =
true;
643 m_buildBridge =
true;
687#if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
738 bool m_useValidation;
740 bool m_includeIgnorableWhitespace;
744 bool m_exitOnFirstFatalError;
746 EntityResolver* m_entityResolver;
748 XMLEntityResolver* m_xmlEntityResolver;
750 ErrorHandler* m_errorHandler;
#define XALAN_DEFAULT_MEMMGR
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
#define XALAN_XERCESPARSERLIAISON_EXPORT
This class is deprecated.
void setBuildBridgeNodes(bool newState)
This API is deprecated.
virtual ExecutionContext * getExecutionContext() const
Get a pointer to the current ExecutionContext instance, which may be null.
virtual void setExternalSchemaLocation(const XalanDOMChar *location)
This method sets the location for an external schema document for parsing.
XercesDocumentWrapper * mapDocumentToWrapper(const XalanDocument *theDocument) const
Map a pointer to a XalanDocument instance to its implementation class pointer.
virtual void destroyDocument(DOMDocument_Type *theDocument)
Destroy an instance created by a call to createDOMFactory().
virtual bool getUseValidation() const
Get whether or not validation will be performed.
virtual void setErrorHandler(ErrorHandler *handler)
This method installs the user-specified error handler.
void setBuildMaps(bool newState)
This functions sets the state of the liaison's buildMaps flag.
virtual void setIncludeIgnorableWhitespace(bool include)
Set the 'include ignorable whitespace' flag.
virtual ~XercesParserLiaison()
XalanDocument * createDocument(const DOMDocument_Type *theXercesDocument)
Create a XalanDocument proxy for an existing Xerces document.
virtual DOMDocument_Type * createDOMFactory()
Create an instance of the Xerces default document that is suitable as a raw document.
virtual const XalanDOMChar * getExternalSchemaLocation() const
This method returns the location for an external schema document for parsing.
virtual void fatalError(const SAXParseExceptionType &exception)
bool getThreadSafe() const
This functions returns the state of the liaison's thread-safe flag.
virtual ErrorHandler * getErrorHandler() const
This method returns the installed error handler.
XercesParserLiaison(MemoryManager &theManager XALAN_DEFAULT_MEMMGR)
Construct a XercesParserLiaison instance.
const DOMDocument_Type * mapToXercesDocument(const XalanDocument *theDocument) const
Map a pointer to a XalanDocument instance to its corresponding class pointer.
static void formatErrorMessage(const SAXParseExceptionType &e, XalanDOMString &theMessage)
void setBuildWrapperNodes(bool newState)
This functions sets the state of the liaison's build-wrapper-nodes flag.
virtual void setExitOnFirstFatalError(bool newState)
This method allows users to set the parser's behaviour when it encounters the first fatal error.
virtual EntityResolver * getEntityResolver() const
This method returns the installed EntityResolver.
virtual void setDoNamespaces(bool newState)
This method allows users to enable or disable the parser's namespace processing.
xercesc::XercesDOMParser DOMParserType
virtual void resetErrors()
XercesDocumentWrapper * doCreateDocument(const DOMDocument_Type *theXercesDocument, bool threadSafe, bool buildWrapper, bool buildMaps, bool isOwned)
Create a XalanDocument proxy for an existing Xerces document.
XercesParserLiaison(XercesDOMSupport &theSupport, MemoryManager &theManager XALAN_DEFAULT_MEMMGR)
Construct a XercesParserLiaison instance.
xercesc::SAXParser SAXParserType
virtual bool getIncludeIgnorableWhitespace() const
Get the 'include ignorable whitespace' flag.
MemoryManager & getMemoryManager()
Get a reference to the current MemoryManager instance.
virtual bool getDoNamespaces() const
This method returns the state of the parser's namespace handling capability.
virtual void setEntityResolver(EntityResolver *resolver)
This method installs the user-specified EntityResolver on the parser.
virtual void destroyDocument(XalanDocument *theDocument)
Destroy the supplied XalanDocument instance.
virtual const XalanDOMChar * getExternalNoNamespaceSchemaLocation() const
This method returns the location for an external schema document for parsing.
virtual void setExecutionContext(ExecutionContext &theContext)
Set the current ExecutionContext instance.
virtual void parseXMLStream(const InputSource &urlInputSource, DocumentHandler &handler, const XalanDOMString &identifier=XalanDOMString(XalanMemMgrs::getDummyMemMgr()))
Parse the text pointed at by the reader as XML.
virtual XalanDocument * parseXMLStream(const InputSource &reader, const XalanDOMString &identifier=XalanDOMString(XalanMemMgrs::getDummyMemMgr()))
Parse the text pointed at by the reader as XML, and return a DOM Document interface.
virtual void warning(const SAXParseExceptionType &exception)
virtual void setExternalNoNamespaceSchemaLocation(const XalanDOMChar *location)
This method sets the location for an external schema document for parsing.
bool getBuildBridgeNodes() const
This API is deprecated.
virtual void reset()
Reset the instance, freeing any XalanDocument instances created through parseXMLStream().
virtual void error(const SAXParseExceptionType &exception)
virtual const XalanDOMString & getParserDescription(XalanDOMString &theResult) const
Return a string suitable for telling the user what parser is being used.
virtual XMLEntityResolver * getXMLEntityResolver() const
This method returns the installed XMLEntityResolver.
XalanDocument * createDocument(const DOMDocument_Type *theXercesDocument, bool threadSafe, bool buildWrapper, bool buildMaps=false)
Create a XalanDocument proxy for an existing Xerces document.
virtual void setXMLEntityResolver(XMLEntityResolver *resolver)
This method installs the user-specified XMLEntityResolver on the parser.
bool getBuildWrapperNodes() const
This functions returns the state of the liaison's build-wrapper-nodes flag.
virtual bool getExitOnFirstFatalError() const
This method returns the state of the parser's exit-on-First-Fatal-Error flag.
virtual void setUseValidation(bool b)
If set to true, validation will be performed.
virtual void setIndent(int i)
Set the amount to indent when indent-result="yes".
bool getBuildMaps() const
This functions returns the state of the liaison's buildMaps flag.
void setThreadSafe(bool newState)
This functions sets the state of the liaison's thread-safe flag.
XalanMap< const XalanDocument *, DocumentEntry > DocumentMapType
virtual int getIndent() const
Get the amount to indent when indent-result="yes".
xercesc::DOMDocument DOMDocument_Type
xercesc::SAXParseException SAXParseExceptionType
xercesc::DOM_Document DOM_Document_Type
XercesDocumentWrapper * m_wrapper
DocumentEntry & operator=(XercesDocumentWrapper *theWrapper)
bool isDeprecated() const