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)
49 #if XERCES_VERSION_MAJOR >= 2
50 XALAN_DECLARE_XERCES_CLASS(XercesDOMParser)
52 XALAN_DECLARE_XERCES_CLASS(DOMParser)
54 XALAN_DECLARE_XERCES_CLASS(SAXParser)
58 XALAN_CPP_NAMESPACE_BEGIN
63 #if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
89 XercesDOMSupport& theSupport,
106 return m_externalSchemaLocation.getMemoryManager();
120 const InputSource& reader,
125 const InputSource& urlInputSource,
126 DocumentHandler& handler,
147 virtual EntityResolver*
153 virtual XMLEntityResolver*
159 virtual ErrorHandler*
198 getIncludeIgnorableWhitespace()
const;
219 setIncludeIgnorableWhitespace(
bool include);
231 getDoNamespaces()
const;
251 setDoNamespaces(
bool newState);
263 getExitOnFirstFatalError()
const;
281 setExitOnFirstFatalError(
bool newState);
289 virtual const XalanDOMChar*
290 getExternalSchemaLocation()
const;
299 setExternalSchemaLocation(
const XalanDOMChar* location);
307 virtual const XalanDOMChar*
308 getExternalNoNamespaceSchemaLocation()
const;
317 setExternalNoNamespaceSchemaLocation(
const XalanDOMChar* location);
319 #if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
335 return createDocument(theXercesDocument, m_threadSafe, m_buildBridge);
371 return createDocument(theXercesDocument, m_threadSafe, m_buildWrapper, m_buildMaps);
391 bool buildMaps =
false);
393 #if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
420 mapDocumentToWrapper(
const XalanDocument* theDocument)
const;
422 #if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
454 warning(
const SAXParseExceptionType& exception);
457 error(
const SAXParseExceptionType& exception);
460 fatalError(
const SAXParseExceptionType& exception);
467 #if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
473 return m_isDeprecated;
491 #if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
501 m_isDeprecated =
true;
503 m_bridge = theBridge;
513 m_isDeprecated =
false;
515 m_wrapper = theWrapper;
527 m_wrapper = theWrapper;
550 return m_buildBridge;
568 m_buildBridge = newState;
570 if (newState ==
false)
572 m_threadSafe =
false;
585 return m_buildWrapper;
600 m_buildWrapper = newState;
602 if (newState ==
false)
604 m_threadSafe =
false;
636 m_threadSafe = newState;
638 if (m_threadSafe ==
true)
640 m_buildWrapper =
true;
641 m_buildBridge =
true;
673 m_buildMaps = newState;
682 const SAXParseExceptionType& e,
685 #if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
736 bool m_useValidation;
738 bool m_includeIgnorableWhitespace;
742 bool m_exitOnFirstFatalError;
744 EntityResolver* m_entityResolver;
746 XMLEntityResolver* m_xmlEntityResolver;
748 ErrorHandler* m_errorHandler;
754 DocumentMapType m_documentMap;
766 DOMParserType* m_domParser;
771 XALAN_CPP_NAMESPACE_END
775 #endif // XercesPARSERLIAISON_HEADER_GUARD_1357924680
void setBuildBridgeNodes(bool newState)
This API is deprecated.
virtual void setXMLEntityResolver(XMLEntityResolver *resolver)=0
This method installs the user-specified XMLEntityResolver on the parser.
bool getBuildMaps() const
This functions returns the state of the liaison's buildMaps flag.
This class is deprecated.
void setThreadSafe(bool newState)
This functions sets the state of the liaison's thread-safe flag.
virtual int getIndent() const =0
Get the amount to indent when indent-result="yes".
virtual EntityResolver * getEntityResolver() const =0
This method returns the installed EntityResolver.
XERCES_CPP_NAMESPACE_QUALIFIER SAXParseException SAXParseExceptionType
void setBuildMaps(bool newState)
This functions sets the state of the liaison's buildMaps flag.
#define XALAN_XERCESPARSERLIAISON_EXPORT
DocumentEntry & operator=(XercesDocumentWrapper *theWrapper)
MemoryManager & getMemoryManager()
Get a reference to the current MemoryManager instance.
XalanMap< const XalanDocument *, DocumentEntry > DocumentMapType
virtual ErrorHandler * getErrorHandler() const =0
This method returns the installed error handler.
bool getThreadSafe() const
This functions returns the state of the liaison's thread-safe flag.
void setBuildWrapperNodes(bool newState)
This functions sets the state of the liaison's build-wrapper-nodes flag.
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.
virtual XMLEntityResolver * getXMLEntityResolver() const =0
This method returns the installed XMLEntityResolver.
#define XALAN_DEFAULT_MEMMGR
XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument DOMDocument_Type
virtual const XalanDOMString & getParserDescription(XalanDOMString &theResult) const =0
Return a string suitable for telling the user what parser is being used.
static MemoryManager & getDummyMemMgr()
XERCES_CPP_NAMESPACE_QUALIFIER DOM_Document DOM_Document_Type
XERCES_CPP_NAMESPACE_QUALIFIER XercesDOMParser DOMParserType
virtual void setUseValidation(bool b)=0
If set to true, validation will be performed.
bool getBuildBridgeNodes() const
This API is deprecated.
virtual void setEntityResolver(EntityResolver *resolver)=0
This method installs the user-specified EntityResolver on the parser.
virtual void setErrorHandler(ErrorHandler *handler)=0
This method installs the user-specified error handler.
virtual ExecutionContext * getExecutionContext() const =0
Get a pointer to the current ExecutionContext instance, which may be null.
XalanDocument * createDocument(const DOMDocument_Type *theXercesDocument)
Create a XalanDocument proxy for an existing Xerces document.
virtual void setIndent(int i)=0
Set the amount to indent when indent-result="yes".
virtual void reset()=0
Reset the instance, freeing any XalanDocument instances created through parseXMLStream().
XercesDocumentWrapper * m_wrapper
virtual void destroyDocument(XalanDocument *theDocument)=0
Destroy the supplied XalanDocument instance.
bool getBuildWrapperNodes() const
This functions returns the state of the liaison's build-wrapper-nodes flag.
virtual void setExecutionContext(ExecutionContext &theContext)=0
Set the current ExecutionContext instance.
bool isDeprecated() const
virtual bool getUseValidation() const =0
Get whether or not validation will be performed.
XERCES_CPP_NAMESPACE_QUALIFIER SAXParser SAXParserType