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(XERCESNOTATIONBRIDGE_HEADER_GUARD_1357924680) 00017 #define XERCESNOTATIONBRIDGE_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_Notation.hpp> 00027 #else 00028 #include <xercesc/dom/DOM_Notation.hpp> 00029 #endif 00030 00031 00032 00033 #include <xalanc/XalanDOM/XalanNotation.hpp> 00034 00035 00036 00037 #include <xalanc/XercesParserLiaison/Deprecated/XercesBridgeTypes.hpp> 00038 00039 00040 00041 XALAN_CPP_NAMESPACE_BEGIN 00042 00043 00044 00045 class XercesBridgeNavigator; 00046 00047 00053 class XALAN_XERCESPARSERLIAISON_EXPORT XercesNotationBridge : public XalanNotation 00054 { 00055 public: 00056 00057 XercesNotationBridge( 00058 const DOM_NotationType& theXercesDOMNotation, 00059 const XercesBridgeNavigator& theNavigator); 00060 00061 virtual 00062 ~XercesNotationBridge(); 00063 00064 00065 // These interfaces are inherited from XalanNode... 00066 00067 virtual const XalanDOMString& 00068 getNodeName() const; 00069 00073 virtual const XalanDOMString& 00074 getNodeValue() const; 00075 00079 virtual NodeType 00080 getNodeType() const; 00081 00091 virtual XalanNode* 00092 getParentNode() const; 00093 00107 virtual const XalanNodeList* 00108 getChildNodes() const; 00109 00115 virtual XalanNode* 00116 getFirstChild() const; 00117 00123 virtual XalanNode* 00124 getLastChild() const; 00125 00131 virtual XalanNode* 00132 getPreviousSibling() const; 00133 00139 virtual XalanNode* 00140 getNextSibling() const; 00141 00146 virtual const XalanNamedNodeMap* 00147 getAttributes() const; 00148 00158 virtual XalanDocument* 00159 getOwnerDocument() const; 00160 00162 00164 00183 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE) 00184 virtual XalanNode* 00185 #else 00186 virtual XercesNotationBridge* 00187 #endif 00188 cloneNode(bool deep) const; 00189 00191 00193 00210 virtual XalanNode* 00211 insertBefore( 00212 XalanNode* newChild, 00213 XalanNode* refChild); 00214 00228 virtual XalanNode* 00229 replaceChild( 00230 XalanNode* newChild, 00231 XalanNode* oldChild); 00232 00240 virtual XalanNode* 00241 removeChild(XalanNode* oldChild); 00242 00254 virtual XalanNode* 00255 appendChild(XalanNode* newChild); 00256 00258 00260 00268 virtual bool 00269 hasChildNodes() const; 00270 00271 00273 00275 00276 00290 virtual void 00291 setNodeValue(const XalanDOMString& nodeValue); 00292 00294 00296 00313 virtual void 00314 normalize(); 00315 00329 virtual bool 00330 isSupported( 00331 const XalanDOMString& feature, 00332 const XalanDOMString& version) const; 00333 00347 virtual const XalanDOMString& 00348 getNamespaceURI() const; 00349 00354 virtual const XalanDOMString& 00355 getPrefix() const; 00356 00364 virtual const XalanDOMString& 00365 getLocalName() const; 00366 00396 virtual void 00397 setPrefix(const XalanDOMString& prefix); 00398 00399 virtual bool 00400 isIndexed() const; 00401 00402 virtual IndexType 00403 getIndex() const; 00404 00406 00407 // These interfaces are inherited from XalanNotation... 00408 00416 virtual const XalanDOMString& 00417 getPublicId() const; 00418 00426 virtual const XalanDOMString& 00427 getSystemId() const; 00428 00434 DOM_NotationType 00435 getXercesNode() const 00436 { 00437 return m_xercesNode; 00438 } 00439 00440 private: 00441 00442 // Not implemented... 00443 XercesNotationBridge(const XercesNotationBridge& theSource); 00444 00445 XercesNotationBridge& 00446 operator=(const XercesNotationBridge& theSource); 00447 00448 bool 00449 operator==(const XercesNotationBridge& theRHS) const; 00450 00451 // Data members... 00452 DOM_NotationType m_xercesNode; 00453 00454 const XercesBridgeNavigator& m_navigator; 00455 }; 00456 00457 00458 00459 XALAN_CPP_NAMESPACE_END 00460 00461 00462 00463 #endif // !defined(XERCESNOTATIONBRIDGE_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 |
|