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(XALANDEFAULTDOCUMENTBUILDER_HEADER_GUARD) 00019 #define XALANDEFAULTDOCUMENTBUILDER_HEADER_GUARD 00020 00021 00022 00023 // Base include file. Must be first. 00024 #include <xalanc/XalanTransformer/XalanTransformerDefinitions.hpp> 00025 00026 00027 00028 #include <xalanc/XalanTransformer/XalanDocumentBuilder.hpp> 00029 00030 00031 00032 #include <xalanc/XalanSourceTree/XalanSourceTreeContentHandler.hpp> 00033 #include <xalanc/XalanSourceTree/XalanSourceTreeDOMSupport.hpp> 00034 #include <xalanc/XalanSourceTree/XalanSourceTreeParserLiaison.hpp> 00035 00036 00037 00038 XALAN_CPP_NAMESPACE_BEGIN 00039 00040 00041 00042 /** 00043 * This is class is designed to allow a XalanTranfomer object 00044 * to use a document that is build dynamically by a user. 00045 */ 00046 class XALAN_TRANSFORMER_EXPORT XalanDefaultDocumentBuilder : public XalanDocumentBuilder 00047 { 00048 00049 public: 00050 00051 /** 00052 * Create a XalanDefaultDocumentBuilder instance, 00053 * 00054 * @param theURI An optional string to identify the document. 00055 */ 00056 XalanDefaultDocumentBuilder(MemoryManager& theManager, const XalanDOMString& theURI); 00057 00058 static XalanDefaultDocumentBuilder* 00059 create(MemoryManager& theManager, const XalanDOMString& theURI); 00060 00061 virtual 00062 ~XalanDefaultDocumentBuilder(); 00063 00064 virtual XalanDocument* 00065 getDocument() const; 00066 00067 virtual XalanParsedSourceHelper* 00068 createHelper(MemoryManager& theManager) const; 00069 00070 virtual const XalanDOMString& 00071 getURI() const; 00072 00073 virtual ContentHandlerType* 00074 getContentHandler(); 00075 00076 virtual DTDHandlerType* 00077 getDTDHandler(); 00078 00079 virtual LexicalHandlerType* 00080 getLexicalHandler(); 00081 00082 private: 00083 00084 // not implemented... 00085 XalanDefaultDocumentBuilder(const XalanDefaultDocumentBuilder&); 00086 00087 XalanDefaultDocumentBuilder& 00088 operator=(const XalanDefaultDocumentBuilder&); 00089 00090 // Data members... 00091 XalanSourceTreeDOMSupport m_domSupport; 00092 00093 XalanSourceTreeParserLiaison m_parserLiaison; 00094 00095 XalanSourceTreeContentHandler m_contentHandler; 00096 00097 const XalanDOMString m_uri; 00098 }; 00099 00100 00101 00102 XALAN_CPP_NAMESPACE_END 00103 00104 00105 00106 #endif // XALANDEFAULTDOCUMENTBUILDER_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 |
|