Xalan-C++ API Reference  1.12.0
XercesDocumentTypeWrapper.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(XERCESDOCUMENTTYPEWRAPPER_HEADER_GUARD_1357924680)
19 #define XERCESDOCUMENTTYPEWRAPPER_HEADER_GUARD_1357924680
20 
21 
22 
24 
25 
26 
28 
30 
33 
34 
35 
36 namespace XALAN_CPP_NAMESPACE {
37 
38 
39 
40 class XercesWrapperNavigator;
41 class XercesDocumentWrapper;
42 
43 
44 
46 {
47 public:
48 
50  const DOMDocumentType_Type* theXercesDOMDocumentType,
51  const XercesWrapperNavigator& theNavigator);
52 
54  create( MemoryManager& theManager,
55  const DOMDocumentType_Type* theXercesDOMDocumentType,
56  const XercesWrapperNavigator& theNavigator);
57 
58  virtual
60 
61 
62  // These interfaces are inherited from XalanDocumentType...
63 
64  virtual const XalanDOMString&
65  getNodeName() const;
66 
67  virtual const XalanDOMString&
68  getNodeValue() const;
69 
70  virtual NodeType
71  getNodeType() const;
72 
73  virtual XalanNode*
74  getParentNode() const;
75 
76  virtual const XalanNodeList*
77  getChildNodes() const;
78 
79  virtual XalanNode*
80  getFirstChild() const;
81 
82  virtual XalanNode*
83  getLastChild() const;
84 
85  virtual XalanNode*
87 
88  virtual XalanNode*
89  getNextSibling() const;
90 
91  virtual const XalanNamedNodeMap*
92  getAttributes() const;
93 
94  virtual XalanDocument*
96 
97  virtual const XalanDOMString&
98  getNamespaceURI() const;
99 
100  virtual const XalanDOMString&
101  getPrefix() const;
102 
103  virtual const XalanDOMString&
104  getLocalName() const;
105 
106  virtual bool
107  isIndexed() const;
108 
109  virtual IndexType
110  getIndex() const;
111 
112  virtual const XalanDOMString&
113  getName() const;
114 
115  virtual const XalanNamedNodeMap*
116  getEntities() const;
117 
118  virtual const XalanNamedNodeMap*
119  getNotations() const;
120 
121  virtual const XalanDOMString&
122  getPublicId() const;
123 
124  virtual const XalanDOMString&
125  getSystemId() const;
126 
127  virtual const XalanDOMString&
129 
130  /**
131  * Get the Xerces node this instance represent.
132  *
133  * @return The Xerces node
134  */
135  const DOMDocumentType_Type*
137  {
138  return m_xercesNode;
139  }
140 
141  //@}
142 
143 private:
144 
145  // Not implemented...
147 
149  operator=(const XercesDocumentTypeWrapper& theSource);
150 
151  bool
152  operator==(const XercesDocumentTypeWrapper& theRHS) const;
153 
154  // Data members...
155  const DOMDocumentType_Type* const m_xercesNode;
156 
157  XercesNamedNodeMapWrapper m_entities;
158 
159  XercesNamedNodeMapWrapper m_notations;
160 
161  const XercesWrapperNavigator& m_navigator;
162 };
163 
164 
165 
166 }
167 
168 
169 
170 #endif // !defined(XERCESDOCUMENTTYPEWRAPPER_HEADER_GUARD_1357924680)
xalanc::XercesDocumentTypeWrapper::getEntities
virtual const XalanNamedNodeMap * getEntities() const
This function returns a NamedNodeMap containing the general entities, both external and internal,...
xalanc::XercesDocumentTypeWrapper::getNextSibling
virtual XalanNode * getNextSibling() const
Gets the node immediately following this node.
xalanc::DOMDocumentType_Type
xercesc::DOMDocumentType DOMDocumentType_Type
Definition: XercesWrapperTypes.hpp:61
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
xalanc::XercesDocumentTypeWrapper::getSystemId
virtual const XalanDOMString & getSystemId() const
Get the system identifier of the external subset.
xalanc::XercesDocumentTypeWrapper::getIndex
virtual IndexType getIndex() const
Get the node's index.
xalanc::XalanNode
Definition: XalanNode.hpp:39
xalanc::XercesDocumentTypeWrapper::getPreviousSibling
virtual XalanNode * getPreviousSibling() const
Gets the node immediately preceding this node.
xalanc::XercesDocumentTypeWrapper::getNotations
virtual const XalanNamedNodeMap * getNotations() const
This function returns a named node map containing an entry for each notation declared in a document's...
xalanc::XalanNode::NodeType
NodeType
Definition: XalanNode.hpp:48
xalanc::XercesDocumentTypeWrapper::getAttributes
virtual const XalanNamedNodeMap * getAttributes() const
Gets a NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.
xalanc::XercesDocumentTypeWrapper::getNodeType
virtual NodeType getNodeType() const
An enum value representing the type of the underlying object.
xalanc::XalanDocument
Definition: XalanDocument.hpp:37
xalanc::XercesDocumentTypeWrapper::getParentNode
virtual XalanNode * getParentNode() const
Gets the parent of this node.
xalanc::operator==
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition: XalanVector.hpp:1118
xalanc::XercesDocumentTypeWrapper::getChildNodes
virtual const XalanNodeList * getChildNodes() const
Gets a NodeList that contains all children of this node.
xalanc::XercesDocumentTypeWrapper::getNodeValue
virtual const XalanDOMString & getNodeValue() const
Gets the value of this node, depending on its type.
xalanc::XalanNode::IndexType
unsigned long IndexType
Definition: XalanNode.hpp:64
xalanc::XercesDocumentTypeWrapper
Definition: XercesDocumentTypeWrapper.hpp:46
xalanc::XercesDocumentTypeWrapper::isIndexed
virtual bool isIndexed() const
Determine if the document is node-order indexed.
xalanc::XercesDocumentTypeWrapper::getName
virtual const XalanDOMString & getName() const
The name of DTD; i.e., the name immediately following the DOCTYPE keyword in an XML source document.
xalanc::XercesDocumentTypeWrapper::getOwnerDocument
virtual XalanDocument * getOwnerDocument() const
Gets the Document object associated with this node.
XercesParserLiaisonDefinitions.hpp
xalanc::XalanNodeList
Definition: XalanNodeList.hpp:37
xalanc::XercesDocumentTypeWrapper::getLastChild
virtual XalanNode * getLastChild() const
Gets the last child of this node.
XalanDocumentType.hpp
xalanc::XercesNamedNodeMapWrapper
Definition: XercesNamedNodeMapWrapper.hpp:44
xalanc::XercesDocumentTypeWrapper::getXercesNode
const DOMDocumentType_Type * getXercesNode() const
Get the Xerces node this instance represent.
Definition: XercesDocumentTypeWrapper.hpp:136
xalanc::XercesDocumentTypeWrapper::getNamespaceURI
virtual const XalanDOMString & getNamespaceURI() const
Get the namespace URI of this node, or null if it is unspecified.
xalanc::XercesDocumentTypeWrapper::~XercesDocumentTypeWrapper
virtual ~XercesDocumentTypeWrapper()
XercesNamedNodeMapWrapper.hpp
xalanc::XalanDocumentType
Definition: XalanDocumentType.hpp:41
xalanc::XercesDocumentTypeWrapper::getPrefix
virtual const XalanDOMString & getPrefix() const
Get the namespace prefix of this node, or null if it is unspecified.
xalanc::XercesDocumentTypeWrapper::create
static XercesDocumentTypeWrapper * create(MemoryManager &theManager, const DOMDocumentType_Type *theXercesDOMDocumentType, const XercesWrapperNavigator &theNavigator)
XALAN_XERCESPARSERLIAISON_EXPORT
#define XALAN_XERCESPARSERLIAISON_EXPORT
Definition: XercesParserLiaisonDefinitions.hpp:39
xalanc::XercesDocumentTypeWrapper::getPublicId
virtual const XalanDOMString & getPublicId() const
Get the public identifier of the external subset.
xalanc::XercesDocumentTypeWrapper::getInternalSubset
virtual const XalanDOMString & getInternalSubset() const
Get the internal subset as a string.
xalanc::XalanNamedNodeMap
Definition: XalanNamedNodeMap.hpp:37
XercesWrapperTypes.hpp
xalanc::XercesWrapperNavigator
Definition: XercesWrapperNavigator.hpp:56
xalanc::XercesDocumentTypeWrapper::getFirstChild
virtual XalanNode * getFirstChild() const
Gets the first child of this node.
xalanc::XercesDocumentTypeWrapper::XercesDocumentTypeWrapper
XercesDocumentTypeWrapper(const DOMDocumentType_Type *theXercesDOMDocumentType, const XercesWrapperNavigator &theNavigator)
xalanc::XercesDocumentTypeWrapper::getNodeName
virtual const XalanDOMString & getNodeName() const
Gets the name of this node.
xalanc::XalanDOMString
Definition: XalanDOMString.hpp:46
xalanc::XercesDocumentTypeWrapper::getLocalName
virtual const XalanDOMString & getLocalName() const
Returns the local part of the qualified name of this node.
XalanMemMgrAutoPtr.hpp