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(XERCESDOMPARSEDSOURCE_HEADER_GUARD) 00019 #define XERCESDOMPARSEDSOURCE_HEADER_GUARD 00020 00021 00022 00023 // Base include file. Must be first. 00024 #include <xalanc/XalanTransformer/XalanTransformerDefinitions.hpp> 00025 00026 00027 00028 #include <xalanc/XercesParserLiaison/XercesParserLiaison.hpp> 00029 #include <xalanc/XercesParserLiaison/XercesDOMSupport.hpp> 00030 00031 00032 00033 #include <xalanc/XalanTransformer/XalanParsedSource.hpp> 00034 00035 00036 00037 XALAN_CPP_NAMESPACE_BEGIN 00038 00039 00040 00041 class XALAN_TRANSFORMER_EXPORT XercesDOMParsedSourceHelper : public XalanParsedSourceHelper 00042 { 00043 public: 00044 00045 XercesDOMParsedSourceHelper(MemoryManager& theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR); 00046 00047 ~XercesDOMParsedSourceHelper(); 00048 00049 static XercesDOMParsedSourceHelper* 00050 create(MemoryManager& theManager); 00051 00052 virtual DOMSupport& 00053 getDOMSupport(); 00054 00055 virtual XMLParserLiaison& 00056 getParserLiaison(); 00057 00058 private: 00059 00060 // There is an order dependency, because 00061 // XercesDOMSupport requires a XercesParserLiaison 00062 // instance. 00063 XercesParserLiaison m_parserLiaison; 00064 00065 XercesDOMSupport m_domSupport; 00066 }; 00067 00068 00069 00070 /** 00071 * This is designed to allow a XalanTranfomer object to reuse a parsed 00072 * document. 00073 */ 00074 class XALAN_TRANSFORMER_EXPORT XercesDOMParsedSource : public XalanParsedSource 00075 { 00076 public: 00077 00078 XercesDOMParsedSource( 00079 const InputSource& theInputSource, 00080 bool fValidate = false, 00081 ErrorHandler* theErrorHandler = 0, 00082 EntityResolver* theEntityResolver = 0, 00083 XMLEntityResolver* theXMLEntityResolver = 0, 00084 const XalanDOMChar* theExternalSchemaLocation = 0, 00085 const XalanDOMChar* theExternalNoNamespaceSchemaLocation = 0, 00086 MemoryManager& theManager XALAN_DEFAULT_MEMMGR); 00087 00088 static XercesDOMParsedSource* 00089 create( 00090 MemoryManager& theManager, 00091 const InputSource& theInputSource, 00092 bool fValidate = false, 00093 ErrorHandler* theErrorHandler = 0, 00094 EntityResolver* theEntityResolver = 0, 00095 XMLEntityResolver* theXMLEntityResolver = 0, 00096 const XalanDOMChar* theExternalSchemaLocation = 0, 00097 const XalanDOMChar* theExternalNoNamespaceSchemaLocation = 0); 00098 00099 virtual 00100 ~XercesDOMParsedSource(); 00101 00102 virtual XalanDocument* 00103 getDocument() const; 00104 00105 virtual XalanParsedSourceHelper* 00106 createHelper(MemoryManager& theManager) const; 00107 00108 virtual const XalanDOMString& 00109 getURI() const; 00110 00111 private: 00112 00113 XercesParserLiaison m_parserLiaison; 00114 00115 XalanDocument* m_parsedSource; 00116 00117 XalanDOMString m_uri; 00118 }; 00119 00120 00121 00122 XALAN_CPP_NAMESPACE_END 00123 00124 00125 00126 #endif // XERCESDOMPARSEDSOURCE_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 |
|