16 #if !defined(XercesPARSERLIAISON_HEADER_GUARD_1357924680)
17 #define XercesPARSERLIAISON_HEADER_GUARD_1357924680
31 #include <xercesc/sax/ErrorHandler.hpp>
40 #if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
47 #if XERCES_VERSION_MAJOR >= 2
48 XALAN_DECLARE_XERCES_CLASS(XercesDOMParser)
50 XALAN_DECLARE_XERCES_CLASS(DOMParser)
52 XALAN_DECLARE_XERCES_CLASS(SAXParser)
56 XALAN_CPP_NAMESPACE_BEGIN
61 #if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
102 return m_externalSchemaLocation.getMemoryManager();
183 getIncludeIgnorableWhitespace()
const;
204 setIncludeIgnorableWhitespace(
bool include);
235 getDoNamespaces()
const;
255 setDoNamespaces(
bool newState);
267 getExitOnFirstFatalError()
const;
285 setExitOnFirstFatalError(
bool newState);
293 virtual const XalanDOMChar*
294 getExternalSchemaLocation()
const;
303 setExternalSchemaLocation(
const XalanDOMChar* location);
311 virtual const XalanDOMChar*
312 getExternalNoNamespaceSchemaLocation()
const;
321 setExternalNoNamespaceSchemaLocation(
const XalanDOMChar* location);
323 #if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
339 return createDocument(theXercesDocument, m_threadSafe, m_buildBridge);
375 return createDocument(theXercesDocument, m_threadSafe, m_buildWrapper, m_buildMaps);
395 bool buildMaps =
false);
397 #if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
424 mapDocumentToWrapper(
const XalanDocument* theDocument)
const;
426 #if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
458 warning(
const SAXParseExceptionType& exception);
461 error(
const SAXParseExceptionType& exception);
464 fatalError(
const SAXParseExceptionType& exception);
471 #if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
477 return m_isDeprecated;
495 #if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
505 m_isDeprecated =
true;
507 m_bridge = theBridge;
517 m_isDeprecated =
false;
519 m_wrapper = theWrapper;
531 m_wrapper = theWrapper;
554 return m_buildBridge;
572 m_buildBridge = newState;
574 if (newState ==
false)
576 m_threadSafe =
false;
589 return m_buildWrapper;
604 m_buildWrapper = newState;
606 if (newState ==
false)
608 m_threadSafe =
false;
640 m_threadSafe = newState;
642 if (m_threadSafe ==
true)
644 m_buildWrapper =
true;
645 m_buildBridge =
true;
677 m_buildMaps = newState;
680 #if XERCES_VERSION_MAJOR >= 2
681 typedef XERCES_CPP_NAMESPACE_QUALIFIER XercesDOMParser DOMParserType;
690 const SAXParseExceptionType& e,
693 #if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
747 bool m_useValidation;
749 bool m_includeIgnorableWhitespace;
753 bool m_exitOnFirstFatalError;
782 XALAN_CPP_NAMESPACE_END
786 #endif // XercesPARSERLIAISON_HEADER_GUARD_1357924680
void setBuildBridgeNodes(bool newState)
This API is deprecated.
Definition: XercesParserLiaison.hpp:570
bool getBuildMaps() const
This functions returns the state of the liaison's buildMaps flag.
Definition: XercesParserLiaison.hpp:657
Definition: XercesDOMSupport.hpp:35
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
This class is deprecated.
Definition: XercesDocumentBridge.hpp:90
XERCES_CPP_NAMESPACE_QUALIFIER DOMParser DOMParserType
Definition: XercesParserLiaison.hpp:683
void setThreadSafe(bool newState)
This functions sets the state of the liaison's thread-safe flag.
Definition: XercesParserLiaison.hpp:638
virtual int getIndent() const =0
Get the amount to indent when indent-result="yes".
XERCES_CPP_NAMESPACE_QUALIFIER SAXParseException SAXParseExceptionType
Definition: XercesParserLiaison.hpp:64
void setBuildMaps(bool newState)
This functions sets the state of the liaison's buildMaps flag.
Definition: XercesParserLiaison.hpp:675
#define XALAN_XERCESPARSERLIAISON_EXPORT
Definition: XercesParserLiaisonDefinitions.hpp:37
DocumentEntry & operator=(XercesDocumentWrapper *theWrapper)
Definition: XercesParserLiaison.hpp:529
XalanMap< const XalanDocument *, DocumentEntry > DocumentMapType
Definition: XercesParserLiaison.hpp:540
XERCES_CPP_NAMESPACE_QUALIFIER InputSource InputSourceType
Definition: XMLParserLiaison.hpp:44
virtual EntityResolverType * getEntityResolver() const =0
This method returns the installed entity resolver.
bool getThreadSafe() const
This functions returns the state of the liaison's thread-safe flag.
Definition: XercesParserLiaison.hpp:622
virtual XalanDocument * parseXMLStream(const InputSourceType &inputSource, const XalanDOMString &identifier)=0
Parse the text pointed at by the reader as XML, and return a DOM Document interface.
MemoryManagerType & getMemoryManager()
Definition: XercesParserLiaison.hpp:100
void setBuildWrapperNodes(bool newState)
This functions sets the state of the liaison's build-wrapper-nodes flag.
Definition: XercesParserLiaison.hpp:602
#define XALAN_DEFAULT_MEMMGR
Definition: XalanMemoryManagement.hpp:402
XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument DOMDocument_Type
Definition: XercesDOMWrapperParsedSource.hpp:44
bool m_isOwned
Definition: XercesParserLiaison.hpp:487
virtual ErrorHandlerType * getErrorHandler() const =0
This method returns the installed error handler.
virtual const XalanDOMString & getParserDescription(XalanDOMString &theResult) const =0
Return a string suitable for telling the user what parser is being used.
Definition: XercesDocumentWrapper.hpp:76
static MemoryManager & getDummyMemMgr()
Definition: ExecutionContext.hpp:45
XERCES_CPP_NAMESPACE_QUALIFIER ErrorHandler ErrorHandlerType
Definition: XalanCompiledStylesheetDefault.hpp:53
XERCES_CPP_NAMESPACE_QUALIFIER DOM_Document DOM_Document_Type
Definition: XercesBridgeTypes.hpp:63
Definition: XercesParserLiaison.hpp:70
virtual void setUseValidation(bool b)=0
If set to true, validation will be performed.
bool getBuildBridgeNodes() const
This API is deprecated.
Definition: XercesParserLiaison.hpp:551
Definition: XercesParserLiaison.hpp:469
virtual void setEntityResolver(EntityResolverType *resolver)=0
This method installs the user specified entity resolver on the parser.
Definition: XMLParserLiaison.hpp:54
Definition: XalanDocument.hpp:51
virtual void setErrorHandler(ErrorHandlerType *handler)=0
This method installs the user-specified error handler.
virtual ExecutionContext * getExecutionContext() const =0
XERCES_CPP_NAMESPACE_QUALIFIER DocumentHandler DocumentHandlerType
Definition: StylesheetConstructionContext.hpp:50
XalanDocument * createDocument(const DOMDocument_Type *theXercesDocument)
Create a XalanDocument proxy for an existing Xerces document.
Definition: XercesParserLiaison.hpp:373
virtual void setIndent(int i)=0
Set the amount to indent when indent-result="yes".
XercesDocumentWrapper * m_wrapper
Definition: XercesParserLiaison.hpp:526
virtual void destroyDocument(XalanDocument *theDocument)=0
Destroy the supplied XalanDocument instance.
Definition: XalanDOMString.hpp:42
bool isOwned() const
Definition: XercesParserLiaison.hpp:490
bool getBuildWrapperNodes() const
This functions returns the state of the liaison's build-wrapper-nodes flag.
Definition: XercesParserLiaison.hpp:586
virtual void setExecutionContext(ExecutionContext &theContext)=0
bool isDeprecated() const
Definition: XercesParserLiaison.hpp:481
virtual bool getUseValidation() const =0
Get whether or not validation will be performed.
XERCES_CPP_NAMESPACE_QUALIFIER SAXParser SAXParserType
Definition: XercesParserLiaison.hpp:77
XERCES_CPP_NAMESPACE_QUALIFIER EntityResolver EntityResolverType
Definition: XMLParserLiaison.hpp:42