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(XERCESCOMMENTWRAPPER_HEADER_GUARD_1357924680) 00017 #define XERCESCOMMENTWRAPPER_HEADER_GUARD_1357924680 00018 00019 00020 00021 #include <xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp> 00022 00023 00024 00025 #include <xalanc/XalanDOM/XalanComment.hpp> 00026 #include <xalanc/XercesParserLiaison/XercesWrapperTypes.hpp> 00027 00028 00029 00030 XALAN_CPP_NAMESPACE_BEGIN 00031 00032 00033 00034 class XercesWrapperNavigator; 00035 00036 00037 00038 class XALAN_XERCESPARSERLIAISON_EXPORT XercesCommentWrapper : public XalanComment 00039 { 00040 public: 00041 00042 XercesCommentWrapper( 00043 const DOMCommentType* theXercesComment, 00044 const XercesWrapperNavigator& theNavigator); 00045 00046 virtual 00047 ~XercesCommentWrapper(); 00048 00049 00053 virtual const XalanDOMString& 00054 getNodeName() const; 00055 00059 virtual const XalanDOMString& 00060 getNodeValue() const; 00061 00065 virtual NodeType 00066 getNodeType() const; 00067 00077 virtual XalanNode* 00078 getParentNode() const; 00079 00093 virtual const XalanNodeList* 00094 getChildNodes() const; 00095 00101 virtual XalanNode* 00102 getFirstChild() const; 00103 00109 virtual XalanNode* 00110 getLastChild() const; 00111 00117 virtual XalanNode* 00118 getPreviousSibling() const; 00119 00125 virtual XalanNode* 00126 getNextSibling() const; 00127 00132 virtual const XalanNamedNodeMap* 00133 getAttributes() const; 00134 00144 virtual XalanDocument* 00145 getOwnerDocument() const; 00146 00148 00150 00169 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE) 00170 virtual XalanNode* 00171 #else 00172 virtual XercesCommentWrapper* 00173 #endif 00174 cloneNode(bool deep) const; 00175 00177 00179 00196 virtual XalanNode* 00197 insertBefore( 00198 XalanNode* newChild, 00199 XalanNode* refChild); 00200 00214 virtual XalanNode* 00215 replaceChild( 00216 XalanNode* newChild, 00217 XalanNode* oldChild); 00218 00226 virtual XalanNode* 00227 removeChild(XalanNode* oldChild); 00228 00240 virtual XalanNode* 00241 appendChild(XalanNode* newChild); 00242 00244 00246 00254 virtual bool 00255 hasChildNodes() const; 00256 00257 00259 00261 00275 virtual void 00276 setNodeValue(const XalanDOMString& nodeValue); 00277 00279 00281 00298 virtual void 00299 normalize(); 00300 00314 virtual bool 00315 isSupported( 00316 const XalanDOMString& feature, 00317 const XalanDOMString& version) const; 00318 00332 virtual const XalanDOMString& 00333 getNamespaceURI() const; 00334 00339 virtual const XalanDOMString& 00340 getPrefix() const; 00341 00349 virtual const XalanDOMString& 00350 getLocalName() const; 00351 00381 virtual void 00382 setPrefix(const XalanDOMString& prefix); 00383 00384 virtual bool 00385 isIndexed() const; 00386 00387 virtual IndexType 00388 getIndex() const; 00389 00391 00392 // These interfaces are inherited from XalanCDATASection... 00393 00412 virtual const XalanDOMString& 00413 getData() const; 00414 00422 virtual unsigned int 00423 getLength() const; 00424 00440 virtual XalanDOMString 00441 substringData( 00442 unsigned int offset, 00443 unsigned int count) const; 00444 00446 00457 virtual void 00458 appendData(const XalanDOMString& arg); 00459 00470 virtual void 00471 insertData( 00472 unsigned int offset, 00473 const XalanDOMString& arg); 00474 00491 virtual void 00492 deleteData( 00493 unsigned int offset, 00494 unsigned int count); 00495 00514 virtual void 00515 replaceData( 00516 unsigned int offset, 00517 unsigned int count, 00518 const XalanDOMString& arg); 00519 00525 const DOMCommentType* 00526 getXercesNode() const 00527 { 00528 return m_xercesNode; 00529 } 00530 00532 00533 private: 00534 00535 // Not implemented... 00536 XercesCommentWrapper(const XercesCommentWrapper& theSource); 00537 00538 XercesCommentWrapper& 00539 operator=(const XercesCommentWrapper& theSource); 00540 00541 bool 00542 operator==(const XercesCommentWrapper& theRHS) const; 00543 00544 // Data members... 00545 const DOMCommentType* const m_xercesNode; 00546 00547 const XercesWrapperNavigator& m_navigator; 00548 }; 00549 00550 00551 00552 XALAN_CPP_NAMESPACE_END 00553 00554 00555 #endif // !defined(XERCESCOMMENTWRAPPER_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.8 |
|