00001 /* 00002 * Copyright 1999-2004 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #if !defined(XERCESENTITYREFERENCEBRIDGE_HEADER_GUARD_1357924680) 00017 #define XERCESENTITYREFERENCEBRIDGE_HEADER_GUARD_1357924680 00018 00019 00020 00021 #include <xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp> 00022 00023 00024 00025 #if XERCES_VERSION_MAJOR >= 2 00026 #include <xercesc/dom/deprecated/DOM_EntityReference.hpp> 00027 #else 00028 #include <xercesc/dom/DOM_EntityReference.hpp> 00029 #endif 00030 00031 00032 00033 #include <xalanc/XalanDOM/XalanEntityReference.hpp> 00034 00035 00036 00037 #include <xalanc/XercesParserLiaison/Deprecated/XercesBridgeTypes.hpp> 00038 #include <xalanc/XercesParserLiaison/Deprecated/XercesNodeListBridge.hpp> 00039 00040 00041 00042 XALAN_CPP_NAMESPACE_BEGIN 00043 00044 00045 00046 class XercesBridgeNavigator; 00047 00048 00054 class XALAN_XERCESPARSERLIAISON_EXPORT XercesEntityReferenceBridge : public XalanEntityReference 00055 { 00056 public: 00057 00058 XercesEntityReferenceBridge( 00059 const DOM_EntityReferenceType& theXercesDOMEntityReference, 00060 const XercesBridgeNavigator& theNavigator); 00061 00062 virtual 00063 ~XercesEntityReferenceBridge(); 00064 00065 00066 // These interfaces are inherited from XalanNode... 00067 00068 virtual const XalanDOMString& 00069 getNodeName() const; 00070 00074 virtual const XalanDOMString& 00075 getNodeValue() const; 00076 00080 virtual NodeType 00081 getNodeType() const; 00082 00092 virtual XalanNode* 00093 getParentNode() const; 00094 00108 virtual const XalanNodeList* 00109 getChildNodes() const; 00110 00116 virtual XalanNode* 00117 getFirstChild() const; 00118 00124 virtual XalanNode* 00125 getLastChild() const; 00126 00132 virtual XalanNode* 00133 getPreviousSibling() const; 00134 00140 virtual XalanNode* 00141 getNextSibling() const; 00142 00147 virtual const XalanNamedNodeMap* 00148 getAttributes() const; 00149 00159 virtual XalanDocument* 00160 getOwnerDocument() const; 00161 00163 00165 00184 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE) 00185 virtual XalanNode* 00186 #else 00187 virtual XercesEntityReferenceBridge* 00188 #endif 00189 cloneNode(bool deep) const; 00190 00192 00194 00211 virtual XalanNode* 00212 insertBefore( 00213 XalanNode* newChild, 00214 XalanNode* refChild); 00215 00229 virtual XalanNode* 00230 replaceChild( 00231 XalanNode* newChild, 00232 XalanNode* oldChild); 00233 00241 virtual XalanNode* 00242 removeChild(XalanNode* oldChild); 00243 00255 virtual XalanNode* 00256 appendChild(XalanNode* newChild); 00257 00259 00261 00269 virtual bool 00270 hasChildNodes() const; 00271 00272 00274 00276 00277 00291 virtual void 00292 setNodeValue(const XalanDOMString& nodeValue); 00293 00295 00297 00314 virtual void 00315 normalize(); 00316 00330 virtual bool 00331 isSupported( 00332 const XalanDOMString& feature, 00333 const XalanDOMString& version) const; 00334 00348 virtual const XalanDOMString& 00349 getNamespaceURI() const; 00350 00355 virtual const XalanDOMString& 00356 getPrefix() const; 00357 00365 virtual const XalanDOMString& 00366 getLocalName() const; 00367 00397 virtual void 00398 setPrefix(const XalanDOMString& prefix); 00399 00400 virtual bool 00401 isIndexed() const; 00402 00403 virtual IndexType 00404 getIndex() const; 00405 00411 DOM_EntityReferenceType 00412 getXercesNode() const 00413 { 00414 return m_xercesNode; 00415 } 00416 00418 00419 private: 00420 00421 // Not implemented... 00422 XercesEntityReferenceBridge(const XercesEntityReferenceBridge& theSource); 00423 00424 XercesEntityReferenceBridge& 00425 operator=(const XercesEntityReferenceBridge& theSource); 00426 00427 bool 00428 operator==(const XercesEntityReferenceBridge& theRHS) const; 00429 00430 // Data members... 00431 DOM_EntityReferenceType m_xercesNode; 00432 00433 const XercesBridgeNavigator& m_navigator; 00434 00435 XercesNodeListBridge m_children; 00436 }; 00437 00438 00439 00440 XALAN_CPP_NAMESPACE_END 00441 00442 00443 00444 #endif // !defined(XERCESENTITYREFERENCEBRIDGE_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.10 |
|