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(XALANDOMIMPLEMENTATION_HEADER_GUARD_1357924680) 00019 #define XALANDOMIMPLEMENTATION_HEADER_GUARD_1357924680 00020 00021 00022 00023 #include <xalanc/XalanDOM/XalanDOMDefinitions.hpp> 00024 00025 00026 00027 XALAN_CPP_NAMESPACE_BEGIN 00028 00029 00030 00031 class XalanDocument; 00032 class XalanDocumentType; 00033 class XalanDOMString; 00034 00035 00036 00037 /* 00038 * <meta name="usage" content="deprecated"/> 00039 * 00040 * Base class for the DOM DOMImplementation interface. 00041 * 00042 * This class is deprecated and should not be used!! 00043 */ 00044 00045 class XALAN_DOM_EXPORT XalanDOMImplementation 00046 { 00047 public: 00048 00049 XalanDOMImplementation(); 00050 00051 virtual 00052 ~XalanDOMImplementation(); 00053 00054 /** @name Getter functions */ 00055 //@{ 00056 00057 /** 00058 * Test if the DOM implementation implements a specific feature. 00059 * 00060 * @param feature The string of the feature to test (case-insensitive). The legal 00061 * values are defined throughout this specification. The string must be 00062 * an <EM>XML name</EM> (see also Compliance). 00063 * @param version This is the version number of the package name to test. 00064 * In Level 1, this is the string "1.0". If the version is not specified, 00065 * supporting any version of the feature will cause the method to return 00066 * <code>true</code>. 00067 * @return <code>true</code> if the feature is implemented in the specified 00068 * version, <code>false</code> otherwise. 00069 */ 00070 virtual bool 00071 hasFeature( 00072 const XalanDOMString& feature, 00073 const XalanDOMString& version) = 0; 00074 00075 //@} 00076 00077 /** @name Functions introduced in DOM Level 2. */ 00078 //@{ 00079 00080 /** 00081 * Creates an empty <code>DocumentType</code> node. 00082 * Entity declarations and notations are not made available. 00083 * Entity reference expansions and default attribute additions 00084 * do not occur. It is expected that a future version of the DOM 00085 * will provide a way for populating a <code>DocumentType</code>. 00086 * @param qualifiedName The <em>qualified name</em> 00087 * of the document type to be created. 00088 * @param publicId The external subset public identifier. 00089 * @param systemId The external subset system identifier. 00090 * @return A new <code>DocumentType</code> node with 00091 * <code>Node.ownerDocument</code> set to <code>null</code>. 00092 */ 00093 virtual XalanDocumentType* 00094 createDocumentType( 00095 const XalanDOMString& qualifiedName, 00096 const XalanDOMString& publicId, 00097 const XalanDOMString& systemId) = 0; 00098 00099 /** 00100 * Creates an XML <code>Document</code> object of the specified type 00101 * with its document element. 00102 * @param namespaceURI The <em>namespace URI</em> of 00103 * the document element to create, or <code>null</code>. 00104 * @param qualifiedName The <em>qualified name</em> 00105 * of the document element to be created. 00106 * @param doctype The type of document to be created or <code>null</code>. 00107 * <p>When <code>doctype</code> is not <code>null</code>, its 00108 * <code>Node.ownerDocument</code> attribute is set to the document 00109 * being created. 00110 * @return A new <code>Document</code> object. 00111 * @exception DOMException 00112 * WRONG_DOCUMENT_ERR: Raised if <code>doctype</code> has already 00113 * been used with a different document. 00114 */ 00115 virtual XalanDocument* 00116 createDocument( 00117 const XalanDOMString& namespaceURI, 00118 const XalanDOMString& qualifiedName, 00119 const XalanDocumentType& doctype) = 0; 00120 00121 //@} 00122 00123 protected: 00124 00125 XalanDOMImplementation(const XalanDOMImplementation& theSource); 00126 00127 XalanDOMImplementation& 00128 operator=(const XalanDOMImplementation& theSource); 00129 00130 bool 00131 operator==(const XalanDOMImplementation& theRHS) const; 00132 00133 private: 00134 }; 00135 00136 00137 00138 XALAN_CPP_NAMESPACE_END 00139 00140 00141 00142 #endif // !defined (XALANDOMIMPLEMENTATION_HEADER_GUARD_1357924680)
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|