00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one 00003 * or more contributor license agreements. See the NOTICE file 00004 * distributed with this work for additional information 00005 * regarding copyright ownership. The ASF licenses this file 00006 * to you under the Apache License, Version 2.0 (the "License"); 00007 * you may not use this file except in compliance with the License. 00008 * You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, software 00013 * distributed under the License is distributed on an "AS IS" BASIS, 00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 * See the License for the specific language governing permissions and 00016 * limitations under the License. 00017 */ 00018 #if !defined(XERCESDOMWRAPPERPARSEDSOURCE_HEADER_GUARD) 00019 #define XERCESDOMWRAPPERPARSEDSOURCE_HEADER_GUARD 00020 00021 00022 00023 // Base include file. Must be first. 00024 #include <xalanc/XalanTransformer/XalanTransformerDefinitions.hpp> 00025 00026 00027 00028 #include <xalanc/XalanDOM/XalanDOMString.hpp> 00029 00030 00031 00032 #include <xalanc/XalanTransformer/XalanParsedSource.hpp> 00033 00034 00035 00036 XALAN_DECLARE_XERCES_CLASS(DOM_Document) 00037 XALAN_DECLARE_XERCES_CLASS(DOMDocument) 00038 00039 00040 00041 XALAN_CPP_NAMESPACE_BEGIN 00042 00043 00044 00045 typedef XERCES_CPP_NAMESPACE_QUALIFIER DOM_Document DOM_Document_Type; 00046 typedef XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument DOMDocument_Type; 00047 00048 00049 00050 class XercesParserLiaison; 00051 class XercesDOMSupport; 00052 00053 00054 00055 /** 00056 * This is designed to allow a XalanTranfomer object to wrap a parsed 00057 * Xerces document. 00058 */ 00059 class XALAN_TRANSFORMER_EXPORT XercesDOMWrapperParsedSource : public XalanParsedSource 00060 { 00061 00062 public: 00063 00064 #if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE) 00065 /** 00066 * Constructor 00067 * 00068 * @param theDocument The Xerces document to wrap 00069 * @param theParserLiaison The XercesParserLiaison instance that will own the document. 00070 * @param theDOMSupport The XercesDOMSupport instance 00071 * @param theURI The URI of the document, if any. 00072 * 00073 * @deprecated This constructor is deprecated. 00074 */ 00075 XercesDOMWrapperParsedSource( 00076 const DOM_Document_Type& theDocument, 00077 XercesParserLiaison& theParserLiaison, 00078 XercesDOMSupport& theDOMSupport, 00079 const XalanDOMString& theURI = XalanDOMString(XalanMemMgrs::getDummyMemMgr()) 00080 MemoryManager& theManager XALAN_DEFAULT_MEMMGR); 00081 #endif 00082 00083 /** 00084 * Constructor 00085 * 00086 * @param theDocument The Xerces document to wrap 00087 * @param theParserLiaison The XercesParserLiaison instance that will own the document. 00088 * @param theDOMSupport The XercesDOMSupport instance 00089 * @param theURI The URI of the document, if any. 00090 */ 00091 XercesDOMWrapperParsedSource( 00092 const DOMDocument_Type* theDocument, 00093 XercesParserLiaison& theParserLiaison, 00094 XercesDOMSupport& theDOMSupport, 00095 const XalanDOMString& theURI = XalanDOMString(XalanMemMgrs::getDummyMemMgr()), 00096 MemoryManager& theManager XALAN_DEFAULT_MEMMGR); 00097 00098 virtual 00099 ~XercesDOMWrapperParsedSource(); 00100 00101 virtual XalanDocument* 00102 getDocument() const; 00103 00104 virtual XalanParsedSourceHelper* 00105 createHelper(MemoryManager& theManager XALAN_DEFAULT_MEMMGR) const; 00106 00107 virtual const XalanDOMString& 00108 getURI() const; 00109 00110 private: 00111 //Not implemented 00112 XercesDOMWrapperParsedSource(); 00113 XercesDOMWrapperParsedSource(const XercesDOMWrapperParsedSource&); 00114 00115 XercesParserLiaison& m_parserLiaison; 00116 00117 XercesDOMSupport& m_domSupport; 00118 00119 XalanDocument* const m_parsedSource; 00120 00121 const XalanDOMString m_uri; 00122 }; 00123 00124 00125 00126 XALAN_CPP_NAMESPACE_END 00127 00128 00129 00130 #endif // XERCESDOMWRAPPERPARSEDSOURCE_HEADER_GUARD
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|