Xalan-C++ API Reference
1.12.0
xalanc
XercesParserLiaison
XercesCommentWrapper.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(XERCESCOMMENTWRAPPER_HEADER_GUARD_1357924680)
19
#define XERCESCOMMENTWRAPPER_HEADER_GUARD_1357924680
20
21
22
23
#include <
xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp
>
24
25
#include <
xalanc/Include/XalanMemMgrAutoPtr.hpp
>
26
27
#include <
xalanc/XalanDOM/XalanComment.hpp
>
28
#include <
xalanc/XercesParserLiaison/XercesWrapperTypes.hpp
>
29
30
31
32
namespace
XALAN_CPP_NAMESPACE
{
33
34
35
36
class
XercesWrapperNavigator;
37
38
39
40
class
XALAN_XERCESPARSERLIAISON_EXPORT
XercesCommentWrapper
:
public
XalanComment
41
{
42
public
:
43
44
XercesCommentWrapper
(
45
const
DOMCommentType
*
theXercesComment
,
46
const
XercesWrapperNavigator
&
theNavigator
);
47
48
static
XercesCommentWrapper
*
49
create
( MemoryManager&
theManager
,
50
const
DOMCommentType
*
theXercesComment
,
51
const
XercesWrapperNavigator
&
theNavigator
);
52
53
virtual
54
~XercesCommentWrapper
();
55
56
57
// These interfaces are inherited from XalanComment...
58
59
virtual
const
XalanDOMString
&
60
getNodeName
()
const
;
61
62
virtual
const
XalanDOMString
&
63
getNodeValue
()
const
;
64
65
virtual
NodeType
66
getNodeType
()
const
;
67
68
virtual
XalanNode
*
69
getParentNode
()
const
;
70
71
virtual
const
XalanNodeList
*
72
getChildNodes
()
const
;
73
74
virtual
XalanNode
*
75
getFirstChild
()
const
;
76
77
virtual
XalanNode
*
78
getLastChild
()
const
;
79
80
virtual
XalanNode
*
81
getPreviousSibling
()
const
;
82
83
virtual
XalanNode
*
84
getNextSibling
()
const
;
85
86
virtual
const
XalanNamedNodeMap
*
87
getAttributes
()
const
;
88
89
virtual
XalanDocument
*
90
getOwnerDocument
()
const
;
91
92
virtual
const
XalanDOMString
&
93
getNamespaceURI
()
const
;
94
95
virtual
const
XalanDOMString
&
96
getPrefix
()
const
;
97
98
virtual
const
XalanDOMString
&
99
getLocalName
()
const
;
100
101
virtual
bool
102
isIndexed
()
const
;
103
104
virtual
IndexType
105
getIndex
()
const
;
106
107
virtual
const
XalanDOMString
&
108
getData
()
const
;
109
110
111
// These interfaces are new to XercesCommentWrapper...
112
113
/**
114
* Get the Xerces node this instance represent.
115
*
116
* @return The Xerces node
117
*/
118
const
DOMCommentType
*
119
getXercesNode
()
const
120
{
121
return
m_xercesNode;
122
}
123
124
//@}
125
126
private
:
127
128
// Not implemented...
129
XercesCommentWrapper
(
const
XercesCommentWrapper
&
theSource
);
130
131
XercesCommentWrapper
&
132
operator=(
const
XercesCommentWrapper
&
theSource
);
133
134
bool
135
operator==
(
const
XercesCommentWrapper
&
theRHS
)
const
;
136
137
// Data members...
138
const
DOMCommentType
*
const
m_xercesNode;
139
140
const
XercesWrapperNavigator
& m_navigator;
141
};
142
143
144
145
}
146
147
148
#endif
// !defined(XERCESCOMMENTWRAPPER_HEADER_GUARD_1357924680)
XalanComment.hpp
XalanMemMgrAutoPtr.hpp
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition
XalanVersion.hpp:76
XercesParserLiaisonDefinitions.hpp
XALAN_XERCESPARSERLIAISON_EXPORT
#define XALAN_XERCESPARSERLIAISON_EXPORT
Definition
XercesParserLiaisonDefinitions.hpp:39
XercesWrapperTypes.hpp
xalanc::XalanComment
Definition
XalanComment.hpp:33
xalanc::XalanDOMString
Definition
XalanDOMString.hpp:46
xalanc::XalanDocument
Definition
XalanDocument.hpp:37
xalanc::XalanMemMgrAutoPtr
Definition
XalanMemMgrAutoPtr.hpp:47
xalanc::XalanNamedNodeMap
Definition
XalanNamedNodeMap.hpp:37
xalanc::XalanNodeList
Definition
XalanNodeList.hpp:37
xalanc::XalanNode
Definition
XalanNode.hpp:39
xalanc::XalanNode::NodeType
NodeType
Definition
XalanNode.hpp:48
xalanc::XercesCommentWrapper
Definition
XercesCommentWrapper.hpp:41
xalanc::XercesCommentWrapper::getXercesNode
const DOMCommentType * getXercesNode() const
Get the Xerces node this instance represent.
Definition
XercesCommentWrapper.hpp:119
xalanc::XercesCommentWrapper::getLocalName
virtual const XalanDOMString & getLocalName() const
Returns the local part of the qualified name of this node.
xalanc::XercesCommentWrapper::getLastChild
virtual XalanNode * getLastChild() const
Gets the last child of this node.
xalanc::XercesCommentWrapper::create
static XercesCommentWrapper * create(MemoryManager &theManager, const DOMCommentType *theXercesComment, const XercesWrapperNavigator &theNavigator)
xalanc::XercesCommentWrapper::isIndexed
virtual bool isIndexed() const
Determine if the document is node-order indexed.
xalanc::XercesCommentWrapper::getOwnerDocument
virtual XalanDocument * getOwnerDocument() const
Gets the XalanDocument object associated with this node.
xalanc::XercesCommentWrapper::XercesCommentWrapper
XercesCommentWrapper(const DOMCommentType *theXercesComment, const XercesWrapperNavigator &theNavigator)
xalanc::XercesCommentWrapper::getNextSibling
virtual XalanNode * getNextSibling() const
Gets the node immediately following this node.
xalanc::XercesCommentWrapper::getData
virtual const XalanDOMString & getData() const
Returns the character data of the node that implements this interface.
xalanc::XercesCommentWrapper::~XercesCommentWrapper
virtual ~XercesCommentWrapper()
xalanc::XercesCommentWrapper::getParentNode
virtual XalanNode * getParentNode() const
Gets the parent of this node.
xalanc::XercesCommentWrapper::getAttributes
virtual const XalanNamedNodeMap * getAttributes() const
Gets a XalanNamedNodeMap containing the attributes of this node (if it is an XalanElement) or a null ...
xalanc::XercesCommentWrapper::getChildNodes
virtual const XalanNodeList * getChildNodes() const
Gets a XalanNodeList that contains all children of this node.
xalanc::XercesCommentWrapper::getNodeType
virtual NodeType getNodeType() const
An enum value representing the type of the underlying object.
xalanc::XercesCommentWrapper::getFirstChild
virtual XalanNode * getFirstChild() const
Gets the first child of this node.
xalanc::XercesCommentWrapper::getIndex
virtual IndexType getIndex() const
Get the node's index.
xalanc::XercesCommentWrapper::getNamespaceURI
virtual const XalanDOMString & getNamespaceURI() const
Get the namespace URI of this node.
xalanc::XercesCommentWrapper::getPreviousSibling
virtual XalanNode * getPreviousSibling() const
Gets the node immediately preceding this node.
xalanc::XercesCommentWrapper::getPrefix
virtual const XalanDOMString & getPrefix() const
Get the namespace prefix of this node.
xalanc::XercesCommentWrapper::getNodeValue
virtual const XalanDOMString & getNodeValue() const
Gets the value of this node, depending on its type.
xalanc::XercesCommentWrapper::getNodeName
virtual const XalanDOMString & getNodeName() const
Gets the name of this node, depending on its type.
xalanc::XercesWrapperNavigator
Definition
XercesWrapperNavigator.hpp:56
xalanc::operator==
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition
XalanVector.hpp:1118
xalanc::DOMCommentType
xercesc::DOMComment DOMCommentType
Definition
XercesWrapperTypes.hpp:58
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Tue Oct 10 2023 15:42:08 for Xalan-C++ API Reference by
1.9.8