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(XALANPARSEDSOURCE_HEADER_GUARD) 00019 #define XALANPARSEDSOURCE_HEADER_GUARD 00020 00021 00022 00023 // Base include file. Must be first. 00024 #include <xalanc/XalanTransformer/XalanTransformerDefinitions.hpp> 00025 00026 00027 #include <xalanc/Include/XalanMemoryManagement.hpp> 00028 00029 00030 // We're bringing in XalanDocument so that its derivation from XalanNode 00031 // is known... 00032 #include <xalanc/XalanDOM/XalanDocument.hpp> 00033 00034 00035 00036 XALAN_CPP_NAMESPACE_BEGIN 00037 00038 00039 00040 class DOMSupport; 00041 class XMLParserLiaison; 00042 00043 00044 00045 class XALAN_TRANSFORMER_EXPORT XalanParsedSourceHelper 00046 { 00047 public: 00048 00049 virtual 00050 ~XalanParsedSourceHelper() 00051 { 00052 } 00053 00054 /** 00055 * Get the DOMSupport instance. 00056 * 00057 * @return A reference to a DOMSupport instance. 00058 */ 00059 virtual DOMSupport& 00060 getDOMSupport() = 0; 00061 00062 /** 00063 * Get the XMLParserLiaison instance. 00064 * 00065 * @return A rerefernce to an XMLParserLiaison instance. 00066 */ 00067 virtual XMLParserLiaison& 00068 getParserLiaison() = 0; 00069 }; 00070 00071 00072 00073 /** 00074 * This is abstract base class designed to allow a XalanTranfomer 00075 * object to reuse a parsed document. 00076 */ 00077 class XALAN_TRANSFORMER_EXPORT XalanParsedSource 00078 { 00079 public: 00080 00081 XalanParsedSource(); 00082 00083 virtual 00084 ~XalanParsedSource(); 00085 00086 /** 00087 * Get a pointer to the XalanDocument instance for the source 00088 * document 00089 * 00090 * @return A pointer to a XalanDocument instance. 00091 */ 00092 virtual XalanDocument* 00093 getDocument() const = 0; 00094 00095 /** 00096 * Create the appropriate XalanParsedSourceHelper instance to 00097 * use for transforming with the instance. 00098 * 00099 * The caller is responsible for deleting the object when finished. 00100 * 00101 * @return A pointer to a XalanParsedSourceHelper instance. 00102 */ 00103 virtual XalanParsedSourceHelper* 00104 createHelper(MemoryManager& theManager) const = 0; 00105 00106 /** 00107 * Get the URI for the parsed source, if any. 00108 * use for transforming with the instance. 00109 * 00110 * @return A const reference to a string containing the URI 00111 */ 00112 virtual const XalanDOMString& 00113 getURI() const = 0; 00114 }; 00115 00116 00117 00118 XALAN_CPP_NAMESPACE_END 00119 00120 00121 00122 #endif // XALANPARSEDSOURCE_HEADER_GUARD 00123 00124 00125
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|