Xalan-C++ API Documentation
Go to the documentation of this file.
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)
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*
289 virtual const XalanDOMChar*
307 virtual const XalanDOMChar*
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)
422 #if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
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;
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;
771 XALAN_CPP_NAMESPACE_END
775 #endif // XercesPARSERLIAISON_HEADER_GUARD_1357924680
virtual void setExternalNoNamespaceSchemaLocation(const XalanDOMChar *location)
This method sets the location for an external schema document for parsing.
virtual void setDoNamespaces(bool newState)
This method allows users to enable or disable the parser's namespace processing.
virtual void setEntityResolver(EntityResolver *resolver)
This method installs the user-specified EntityResolver on the parser.
XERCES_CPP_NAMESPACE_QUALIFIER XercesDOMParser DOMParserType
MemoryManager & getMemoryManager()
Get a reference to the current MemoryManager instance.
virtual void resetErrors()
virtual bool getDoNamespaces() const
This method returns the state of the parser's namespace handling capability.
virtual void setErrorHandler(ErrorHandler *handler)
This method installs the user-specified error handler.
virtual bool getIncludeIgnorableWhitespace() const
Get the 'include ignorable whitespace' flag.
virtual void fatalError(const SAXParseExceptionType &exception)
virtual DOMDocument_Type * createDOMFactory()
Create an instance of the Xerces default document that is suitable as a raw document.
#define XALAN_DEFAULT_MEMMGR
virtual const XalanDOMString & getParserDescription(XalanDOMString &theResult) const
Return a string suitable for telling the user what parser is being used.
XercesDocumentWrapper * mapDocumentToWrapper(const XalanDocument *theDocument) const
Map a pointer to a XalanDocument instance to its implementation class pointer.
virtual ErrorHandler * getErrorHandler() const
This method returns the installed error handler.
void setThreadSafe(bool newState)
This functions sets the state of the liaison's thread-safe flag.
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.
void setBuildMaps(bool newState)
This functions sets the state of the liaison's buildMaps flag.
XERCES_CPP_NAMESPACE_QUALIFIER SAXParser SAXParserType
XalanMap< const XalanDocument *, DocumentEntry > DocumentMapType
bool getBuildBridgeNodes() const
This API is deprecated.
XERCES_CPP_NAMESPACE_QUALIFIER SAXParseException SAXParseExceptionType
XercesDocumentWrapper * doCreateDocument(const DOMDocument_Type *theXercesDocument, bool threadSafe, bool buildWrapper, bool buildMaps, bool isOwned)
Create a XalanDocument proxy for an existing Xerces document.
virtual void setIndent(int i)
Set the amount to indent when indent-result="yes".
void setBuildBridgeNodes(bool newState)
This API is deprecated.
virtual const XalanDOMChar * getExternalNoNamespaceSchemaLocation() const
This method returns the location for an external schema document for parsing.
bool getBuildMaps() const
This functions returns the state of the liaison's buildMaps flag.
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 const XalanDOMChar * getExternalSchemaLocation() const
This method returns the location for an external schema document for parsing.
virtual bool getExitOnFirstFatalError() const
This method returns the state of the parser's exit-on-First-Fatal-Error flag.
virtual EntityResolver * getEntityResolver() const
This method returns the installed EntityResolver.
XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument DOMDocument_Type
virtual void setUseValidation(bool b)
If set to true, validation will be performed.
XERCES_CPP_NAMESPACE_QUALIFIER DOM_Document DOM_Document_Type
static MemoryManager & getDummyMemMgr()
XercesParserLiaison(XercesDOMSupport &theSupport, 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.
This class is deprecated.
#define XALAN_XERCESPARSERLIAISON_EXPORT
virtual void destroyDocument(DOMDocument_Type *theDocument)
Destroy an instance created by a call to createDOMFactory().
virtual void setXMLEntityResolver(XMLEntityResolver *resolver)
This method installs the user-specified XMLEntityResolver on the parser.
virtual void error(const SAXParseExceptionType &exception)
bool getBuildWrapperNodes() const
This functions returns the state of the liaison's build-wrapper-nodes flag.
virtual XMLEntityResolver * getXMLEntityResolver() const
This method returns the installed XMLEntityResolver.
static void formatErrorMessage(const SAXParseExceptionType &e, XalanDOMString &theMessage)
virtual void setIncludeIgnorableWhitespace(bool include)
Set the 'include ignorable whitespace' flag.
DocumentEntry & operator=(XercesDocumentWrapper *theWrapper)
XercesParserLiaison(MemoryManager &theManager XALAN_DEFAULT_MEMMGR)
Construct a XercesParserLiaison instance.
virtual void setExitOnFirstFatalError(bool newState)
This method allows users to set the parser's behaviour when it encounters the first fatal error.
virtual void reset()
Reset the instance, freeing any XalanDocument instances created through parseXMLStream().
virtual bool getUseValidation() const
Get whether or not validation will be performed.
XercesDocumentWrapper * m_wrapper
virtual ~XercesParserLiaison()
XalanDocument * createDocument(const DOMDocument_Type *theXercesDocument, bool threadSafe, bool buildWrapper, bool buildMaps=false)
Create a XalanDocument proxy for an existing Xerces document.
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 void setExternalSchemaLocation(const XalanDOMChar *location)
This method sets the location for an external schema document for parsing.
XalanDocument * createDocument(const DOMDocument_Type *theXercesDocument)
Create a XalanDocument proxy for an existing Xerces document.
virtual ExecutionContext * getExecutionContext() const
Get a pointer to the current ExecutionContext instance, which may be null.
virtual int getIndent() const
Get the amount to indent when indent-result="yes".
virtual void warning(const SAXParseExceptionType &exception)
virtual void destroyDocument(XalanDocument *theDocument)
Destroy the supplied XalanDocument instance.
bool isDeprecated() const
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.
|
|