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