Xalan-C++ API Reference  1.12.0
XercesEntityWrapper.hpp
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 #if !defined(XERCESENTITYWRAPPER_HEADER_GUARD_1357924680)
19 #define XERCESENTITYWRAPPER_HEADER_GUARD_1357924680
20 
21 
22 
24 
25 
27 
28 
30 
31 
32 
35 
36 
37 
38 namespace XALAN_CPP_NAMESPACE {
39 
40 
41 
42 class XercesWrapperNavigator;
43 
44 
45 
47 {
48 public:
49 
51  const DOMEntityType* theXercesDOMEntity,
52  const XercesWrapperNavigator& theNavigator);
53 
54  static XercesEntityWrapper*
55  create( MemoryManager& theManager,
56  const DOMEntityType* theXercesDOMEntity,
57  const XercesWrapperNavigator& theNavigator);
58 
59  virtual
61 
62 
63  // These interfaces are inherited from XalanEntity...
64 
65  virtual const XalanDOMString&
66  getNodeName() const;
67 
68  virtual const XalanDOMString&
69  getNodeValue() const;
70 
71  virtual NodeType
72  getNodeType() const;
73 
74  virtual XalanNode*
75  getParentNode() const;
76 
77  virtual const XalanNodeList*
78  getChildNodes() const;
79 
80  virtual XalanNode*
81  getFirstChild() const;
82 
83  virtual XalanNode*
84  getLastChild() const;
85 
86  virtual XalanNode*
88 
89  virtual XalanNode*
90  getNextSibling() const;
91 
92  virtual const XalanNamedNodeMap*
93  getAttributes() const;
94 
95  virtual XalanDocument*
97 
98  virtual const XalanDOMString&
99  getNamespaceURI() const;
100 
101  virtual const XalanDOMString&
102  getPrefix() const;
103 
104  virtual const XalanDOMString&
105  getLocalName() const;
106 
107  virtual bool
108  isIndexed() const;
109 
110  virtual IndexType
111  getIndex() const;
112 
113  virtual const XalanDOMString&
114  getPublicId() const;
115 
116  virtual const XalanDOMString&
117  getSystemId() const;
118 
119  virtual const XalanDOMString&
121 
122  const DOMEntityType*
124  {
125  return m_xercesNode;
126  }
127 
128 private:
129 
130  // Not implemented...
131  XercesEntityWrapper(const XercesEntityWrapper& theSource);
132 
134  operator=(const XercesEntityWrapper& theSource);
135 
136  bool
137  operator==(const XercesEntityWrapper& theRHS) const;
138 
139  // Data members...
140  const DOMEntityType* const m_xercesNode;
141 
142  const XercesWrapperNavigator& m_navigator;
143 
144  XercesNodeListWrapper m_children;
145 };
146 
147 
148 
149 }
150 
151 
152 
153 #endif // !defined(XERCESENTITYWRAPPER_HEADER_GUARD_1357924680)
xalanc::XercesEntityWrapper::getNodeName
virtual const XalanDOMString & getNodeName() const
Gets the name of this node, depending on its type.
xalanc::XercesEntityWrapper::getParentNode
virtual XalanNode * getParentNode() const
Gets the parent of this node.
xalanc::DOMEntityType
xercesc::DOMEntity DOMEntityType
Definition: XercesWrapperTypes.hpp:66
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
xalanc::XercesEntityWrapper::getNamespaceURI
virtual const XalanDOMString & getNamespaceURI() const
Get the namespace URI of this node, or null if it is unspecified.
xalanc::XalanNode
Definition: XalanNode.hpp:39
xalanc::XercesEntityWrapper::getPublicId
virtual const XalanDOMString & getPublicId() const
Get the public identifier of this notation.
xalanc::XercesEntityWrapper::getIndex
virtual IndexType getIndex() const
Get the node's index.
xalanc::XalanNode::NodeType
NodeType
Definition: XalanNode.hpp:48
xalanc::XercesEntityWrapper::getLastChild
virtual XalanNode * getLastChild() const
Gets the last child of this node.
xalanc::XercesEntityWrapper::getNotationName
virtual const XalanDOMString & getNotationName() const
For unparsed entities, the name of the notation for the entity.
xalanc::XercesEntityWrapper::getNodeType
virtual NodeType getNodeType() const
An enum value representing the type of the underlying object.
xalanc::XalanDocument
Definition: XalanDocument.hpp:37
xalanc::XercesEntityWrapper::getPreviousSibling
virtual XalanNode * getPreviousSibling() const
Gets the node immediately preceding this node.
xalanc::XercesEntityWrapper::getLocalName
virtual const XalanDOMString & getLocalName() const
Returns the local part of the qualified name of this node.
xalanc::operator==
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition: XalanVector.hpp:1118
xalanc::XercesEntityWrapper::getPrefix
virtual const XalanDOMString & getPrefix() const
Get the namespace prefix of this node, or null if it is unspecified.
xalanc::XercesEntityWrapper::getFirstChild
virtual XalanNode * getFirstChild() const
Gets the first child of this node.
xalanc::XalanNode::IndexType
unsigned long IndexType
Definition: XalanNode.hpp:64
xalanc::XercesEntityWrapper::getXercesNode
const DOMEntityType * getXercesNode() const
Definition: XercesEntityWrapper.hpp:123
xalanc::XercesEntityWrapper::create
static XercesEntityWrapper * create(MemoryManager &theManager, const DOMEntityType *theXercesDOMEntity, const XercesWrapperNavigator &theNavigator)
xalanc::XercesEntityWrapper::XercesEntityWrapper
XercesEntityWrapper(const DOMEntityType *theXercesDOMEntity, const XercesWrapperNavigator &theNavigator)
XercesParserLiaisonDefinitions.hpp
xalanc::XalanNodeList
Definition: XalanNodeList.hpp:37
XalanEntity.hpp
xalanc::XercesEntityWrapper
Definition: XercesEntityWrapper.hpp:47
XercesNodeListWrapper.hpp
xalanc::XercesEntityWrapper::isIndexed
virtual bool isIndexed() const
Determine if the document is node-order indexed.
xalanc::XercesEntityWrapper::~XercesEntityWrapper
virtual ~XercesEntityWrapper()
xalanc::XercesEntityWrapper::getOwnerDocument
virtual XalanDocument * getOwnerDocument() const
Gets the Document object associated with this node.
xalanc::XercesNodeListWrapper
Definition: XercesNodeListWrapper.hpp:44
xalanc::XercesEntityWrapper::getNodeValue
virtual const XalanDOMString & getNodeValue() const
Gets the value of this node, depending on its type.
XALAN_XERCESPARSERLIAISON_EXPORT
#define XALAN_XERCESPARSERLIAISON_EXPORT
Definition: XercesParserLiaisonDefinitions.hpp:39
xalanc::XalanNamedNodeMap
Definition: XalanNamedNodeMap.hpp:37
XercesWrapperTypes.hpp
xalanc::XercesWrapperNavigator
Definition: XercesWrapperNavigator.hpp:56
xalanc::XalanDOMString
Definition: XalanDOMString.hpp:46
xalanc::XercesEntityWrapper::getAttributes
virtual const XalanNamedNodeMap * getAttributes() const
Gets a NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.
xalanc::XercesEntityWrapper::getSystemId
virtual const XalanDOMString & getSystemId() const
Get the system identifier of this notation.
xalanc::XalanEntity
Definition: XalanEntity.hpp:41
xalanc::XercesEntityWrapper::getChildNodes
virtual const XalanNodeList * getChildNodes() const
Gets a NodeList that contains all children of this node.
xalanc::XercesEntityWrapper::getNextSibling
virtual XalanNode * getNextSibling() const
Gets the node immediately following this node.
XalanMemMgrAutoPtr.hpp