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(XERCESTEXTWRAPPER_HEADER_GUARD_1357924680) 00019 #define XERCESTEXTWRAPPER_HEADER_GUARD_1357924680 00020 00021 00022 00023 #include <xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp> 00024 00025 00026 00027 #include <xalanc/XalanDOM/XalanText.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 XercesTextWrapper : public XalanText 00044 { 00045 public: 00046 00047 XercesTextWrapper( 00048 const DOMTextType* theXercesText, 00049 const XercesWrapperNavigator& theNavigator); 00050 00051 virtual 00052 ~XercesTextWrapper(); 00053 00054 00055 // These interfaces are inherited from XalanText 00056 00057 virtual const XalanDOMString& 00058 getNodeName() const; 00059 00060 virtual const XalanDOMString& 00061 getNodeValue() const; 00062 00063 virtual NodeType 00064 getNodeType() const; 00065 00066 virtual XalanNode* 00067 getParentNode() const; 00068 00069 virtual const XalanNodeList* 00070 getChildNodes() const; 00071 00072 virtual XalanNode* 00073 getFirstChild() const; 00074 00075 virtual XalanNode* 00076 getLastChild() const; 00077 00078 virtual XalanNode* 00079 getPreviousSibling() const; 00080 00081 virtual XalanNode* 00082 getNextSibling() const; 00083 00084 virtual const XalanNamedNodeMap* 00085 getAttributes() const; 00086 00087 virtual XalanDocument* 00088 getOwnerDocument() const; 00089 00090 virtual const XalanDOMString& 00091 getNamespaceURI() const; 00092 00093 virtual const XalanDOMString& 00094 getPrefix() const; 00095 00096 virtual const XalanDOMString& 00097 getLocalName() const; 00098 00099 virtual bool 00100 isIndexed() const; 00101 00102 virtual IndexType 00103 getIndex() const; 00104 00105 virtual const XalanDOMString& 00106 getData() const; 00107 00108 virtual bool 00109 isWhitespace() const; 00110 00111 /** 00112 * Get the Xerces node this instance represent. 00113 * 00114 * @return The Xerces node 00115 */ 00116 const DOMTextType* 00117 getXercesNode() const 00118 { 00119 return m_xercesNode; 00120 } 00121 00122 private: 00123 00124 // Not implemented... 00125 XercesTextWrapper(const XercesTextWrapper& theSource); 00126 00127 XercesTextWrapper& 00128 operator=(const XercesTextWrapper& theSource); 00129 00130 bool 00131 operator==(const XercesTextWrapper& theRHS) const; 00132 00133 // Data members... 00134 const DOMTextType* const m_xercesNode; 00135 00136 const XercesWrapperNavigator& m_navigator; 00137 }; 00138 00139 00140 00141 XALAN_CPP_NAMESPACE_END 00142 00143 00144 00145 #endif // !defined(XERCESTEXTWRAPPER_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 |
|