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(XERCESCDATASECTIONWRAPPER_HEADER_GUARD_1357924680) 00017 #define XERCESCDATASECTIONWRAPPER_HEADER_GUARD_1357924680 00018 00019 00020 00021 #include <xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp> 00022 00023 00024 #include <xalanc/Include/XalanMemMgrAutoPtr.hpp> 00025 00026 00027 #include <xalanc/XalanDOM/XalanCDATASection.hpp> 00028 00029 00030 00031 #include <xalanc/XercesParserLiaison/XercesWrapperTypes.hpp> 00032 00033 00034 00035 XALAN_CPP_NAMESPACE_BEGIN 00036 00037 00038 00039 class XercesWrapperNavigator; 00040 00041 00042 00043 class XALAN_XERCESPARSERLIAISON_EXPORT XercesCDATASectionWrapper : public XalanCDATASection 00044 { 00045 public: 00046 00047 XercesCDATASectionWrapper( 00048 const DOMCDATASectionType* theXercesCDATASection, 00049 const XercesWrapperNavigator& theNavigator); 00050 00051 static XercesCDATASectionWrapper* 00052 create( MemoryManagerType& theManager, 00053 const DOMCDATASectionType* theXercesCDATASection, 00054 const XercesWrapperNavigator& theNavigator); 00055 00056 virtual 00057 ~XercesCDATASectionWrapper(); 00058 00059 00063 virtual const XalanDOMString& 00064 getNodeName() const; 00065 00069 virtual const XalanDOMString& 00070 getNodeValue() const; 00071 00075 virtual NodeType 00076 getNodeType() const; 00077 00087 virtual XalanNode* 00088 getParentNode() const; 00089 00103 virtual const XalanNodeList* 00104 getChildNodes() const; 00105 00111 virtual XalanNode* 00112 getFirstChild() const; 00113 00119 virtual XalanNode* 00120 getLastChild() const; 00121 00127 virtual XalanNode* 00128 getPreviousSibling() const; 00129 00135 virtual XalanNode* 00136 getNextSibling() const; 00137 00142 virtual const XalanNamedNodeMap* 00143 getAttributes() const; 00144 00154 virtual XalanDocument* 00155 getOwnerDocument() const; 00156 00158 00160 00179 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE) 00180 virtual XalanNode* 00181 #else 00182 virtual XercesCDATASectionWrapper* 00183 #endif 00184 cloneNode(bool deep) const; 00185 00187 00189 00206 virtual XalanNode* 00207 insertBefore( 00208 XalanNode* newChild, 00209 XalanNode* refChild); 00210 00224 virtual XalanNode* 00225 replaceChild( 00226 XalanNode* newChild, 00227 XalanNode* oldChild); 00228 00236 virtual XalanNode* 00237 removeChild(XalanNode* oldChild); 00238 00250 virtual XalanNode* 00251 appendChild(XalanNode* newChild); 00252 00254 00256 00264 virtual bool 00265 hasChildNodes() const; 00266 00267 00269 00271 00272 00286 virtual void 00287 setNodeValue(const XalanDOMString& nodeValue); 00288 00290 00292 00309 virtual void 00310 normalize(); 00311 00325 virtual bool 00326 isSupported( 00327 const XalanDOMString& feature, 00328 const XalanDOMString& version) const; 00329 00343 virtual const XalanDOMString& 00344 getNamespaceURI() const; 00345 00350 virtual const XalanDOMString& 00351 getPrefix() const; 00352 00360 virtual const XalanDOMString& 00361 getLocalName() const; 00362 00392 virtual void 00393 setPrefix(const XalanDOMString& prefix); 00394 00395 virtual bool 00396 isIndexed() const; 00397 00398 virtual IndexType 00399 getIndex() const; 00400 00402 00403 // These interfaces are inherited from XalanCDATASection... 00404 00407 00423 virtual const XalanDOMString& 00424 getData() const; 00425 00433 virtual unsigned int 00434 getLength() const; 00435 00451 virtual XalanDOMString& 00452 substringData( 00453 unsigned int offset, 00454 unsigned int count, 00455 XalanDOMString& theResult) const; 00456 00458 00460 00469 virtual void 00470 appendData(const XalanDOMString& arg); 00471 00482 virtual void 00483 insertData( 00484 unsigned int offset, 00485 const XalanDOMString& arg); 00486 00503 virtual void 00504 deleteData( 00505 unsigned int offset, 00506 unsigned int count); 00507 00526 virtual void 00527 replaceData( 00528 unsigned int offset, 00529 unsigned int count, 00530 const XalanDOMString& arg); 00531 00533 00535 00537 00555 virtual XalanText* 00556 splitText(unsigned int offset); 00557 00559 00560 virtual bool 00561 isIgnorableWhitespace() const; 00562 00568 const DOMCDATASectionType* 00569 getXercesNode() const 00570 { 00571 return m_xercesNode; 00572 } 00573 00574 private: 00575 00576 // Not implemented... 00577 XercesCDATASectionWrapper(const XercesCDATASectionWrapper& theSource); 00578 00579 XercesCDATASectionWrapper& 00580 operator=(const XercesCDATASectionWrapper& theSource); 00581 00582 bool 00583 operator==(const XercesCDATASectionWrapper& theRHS) const; 00584 00585 // Data members... 00586 const DOMCDATASectionType* m_xercesNode; 00587 00588 const XercesWrapperNavigator& m_navigator; 00589 }; 00590 00591 00592 00593 XALAN_CPP_NAMESPACE_END 00594 00595 00596 00597 #endif // !defined(XERCESCDATASECTIONWRAPPER_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 |
|