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(XERCESDOCUMENTTYPEWRAPPER_HEADER_GUARD_1357924680) 00019 #define XERCESDOCUMENTTYPEWRAPPER_HEADER_GUARD_1357924680 00020 00021 00022 00023 #include <xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp> 00024 00025 00026 00027 #include <xalanc/XalanDOM/XalanDocumentType.hpp> 00028 00029 #include <xalanc/Include/XalanMemMgrAutoPtr.hpp> 00030 00031 #include <xalanc/XercesParserLiaison/XercesNamedNodeMapWrapper.hpp> 00032 #include <xalanc/XercesParserLiaison/XercesWrapperTypes.hpp> 00033 00034 00035 00036 XALAN_CPP_NAMESPACE_BEGIN 00037 00038 00039 00040 class XercesWrapperNavigator; 00041 class XercesDocumentWrapper; 00042 00043 00044 00045 class XALAN_XERCESPARSERLIAISON_EXPORT XercesDocumentTypeWrapper : public XalanDocumentType 00046 { 00047 public: 00048 00049 XercesDocumentTypeWrapper( 00050 const DOMDocumentType_Type* theXercesDOMDocumentType, 00051 const XercesWrapperNavigator& theNavigator); 00052 00053 static XercesDocumentTypeWrapper* 00054 create( MemoryManager& theManager, 00055 const DOMDocumentType_Type* theXercesDOMDocumentType, 00056 const XercesWrapperNavigator& theNavigator); 00057 00058 virtual 00059 ~XercesDocumentTypeWrapper(); 00060 00061 00062 // These interfaces are inherited from XalanDocumentType... 00063 00064 virtual const XalanDOMString& 00065 getNodeName() const; 00066 00067 virtual const XalanDOMString& 00068 getNodeValue() const; 00069 00070 virtual NodeType 00071 getNodeType() const; 00072 00073 virtual XalanNode* 00074 getParentNode() const; 00075 00076 virtual const XalanNodeList* 00077 getChildNodes() const; 00078 00079 virtual XalanNode* 00080 getFirstChild() const; 00081 00082 virtual XalanNode* 00083 getLastChild() const; 00084 00085 virtual XalanNode* 00086 getPreviousSibling() const; 00087 00088 virtual XalanNode* 00089 getNextSibling() const; 00090 00091 virtual const XalanNamedNodeMap* 00092 getAttributes() const; 00093 00094 virtual XalanDocument* 00095 getOwnerDocument() const; 00096 00097 virtual const XalanDOMString& 00098 getNamespaceURI() const; 00099 00100 virtual const XalanDOMString& 00101 getPrefix() const; 00102 00103 virtual const XalanDOMString& 00104 getLocalName() const; 00105 00106 virtual bool 00107 isIndexed() const; 00108 00109 virtual IndexType 00110 getIndex() const; 00111 00112 virtual const XalanDOMString& 00113 getName() const; 00114 00115 virtual const XalanNamedNodeMap* 00116 getEntities() const; 00117 00118 virtual const XalanNamedNodeMap* 00119 getNotations() const; 00120 00121 virtual const XalanDOMString& 00122 getPublicId() const; 00123 00124 virtual const XalanDOMString& 00125 getSystemId() const; 00126 00127 virtual const XalanDOMString& 00128 getInternalSubset() const; 00129 00130 /** 00131 * Get the Xerces node this instance represent. 00132 * 00133 * @return The Xerces node 00134 */ 00135 const DOMDocumentType_Type* 00136 getXercesNode() const 00137 { 00138 return m_xercesNode; 00139 } 00140 00141 //@} 00142 00143 private: 00144 00145 // Not implemented... 00146 XercesDocumentTypeWrapper(const XercesDocumentTypeWrapper& theSource); 00147 00148 XercesDocumentTypeWrapper& 00149 operator=(const XercesDocumentTypeWrapper& theSource); 00150 00151 bool 00152 operator==(const XercesDocumentTypeWrapper& theRHS) const; 00153 00154 // Data members... 00155 const DOMDocumentType_Type* const m_xercesNode; 00156 00157 XercesNamedNodeMapWrapper m_entities; 00158 00159 XercesNamedNodeMapWrapper m_notations; 00160 00161 const XercesWrapperNavigator& m_navigator; 00162 }; 00163 00164 00165 00166 XALAN_CPP_NAMESPACE_END 00167 00168 00169 00170 #endif // !defined(XERCESDOCUMENTTYPEWRAPPER_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 |
|