Xalan-C++ API Reference  1.12.0
XObjectResultTreeFragProxyText.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(XOBJECTRESULTTREEFRAGPROXYTEXT_HEADER_GUARD_1357924680)
19 #define XOBJECTRESULTTREEFRAGPROXYTEXT_HEADER_GUARD_1357924680
20 
21 
22 
24 
25 
27 
28 
30 
31 
32 
33 namespace XALAN_CPP_NAMESPACE {
34 
35 
36 
37 class XPathExecutionContext;
38 class XObject;
39 
40 
41 
43 {
44 public:
45 
46  /**
47  * Perform static initialization. See class XPathInit.
48  */
49  static void
50  initialize(MemoryManager& theManager);
51 
52  /**
53  * Perform static shut down. See class XPathInit.
54  */
55  static void
57 
58  /**
59  * Constructor.
60  *
61  * @param theXObject The XObject instance for which this is a proxy.
62  * @param theManager The MemoryManager for this instance.
63  * @param theExecutionContext An optional XPathExecutionContext instance.
64  */
66  const XObject& theXObject,
67  MemoryManager& theManager,
68  XPathExecutionContext* theExecutionContext);
69 
70  virtual
72 
73  MemoryManager&
75  {
76  return m_memoryManager;
77  }
78 
81  {
82  return m_executionContext;
83  }
84 
85  // These interfaces are inherited from XalanText...
86  virtual const XalanDOMString&
87  getNodeName() const;
88 
89  virtual const XalanDOMString&
90  getNodeValue() const;
91 
92  virtual NodeType
93  getNodeType() const;
94 
95  virtual XalanNode*
96  getParentNode() const;
97 
98  virtual const XalanNodeList*
99  getChildNodes() const;
100 
101  virtual XalanNode*
102  getFirstChild() const;
103 
104  virtual XalanNode*
105  getLastChild() const;
106 
107  virtual XalanNode*
109 
110  virtual XalanNode*
111  getNextSibling() const;
112 
113  virtual const XalanNamedNodeMap*
114  getAttributes() const;
115 
116  virtual XalanDocument*
118 
119  virtual const XalanDOMString&
121 
122  virtual const XalanDOMString&
123  getPrefix() const;
124 
125  virtual const XalanDOMString&
126  getLocalName() const;
127 
128  virtual bool
129  isIndexed() const;
130 
131  virtual IndexType
132  getIndex() const;
133 
134  virtual const XalanDOMString&
135  getData() const;
136 
137  virtual bool
138  isWhitespace() const;
139 
140 private:
141 
142  // Not implemented...
144  operator=(const XObjectResultTreeFragProxyText& theSource);
145 
146  bool
147  operator==(const XObjectResultTreeFragProxyText& theRHS) const;
148 
149 
150  // Data members...
151  const XObject& m_value;
152 
153  MemoryManager& m_memoryManager;
154 
155  XPathExecutionContext* m_executionContext;
156 
157  static const XalanDOMString& s_nameString;
158 };
159 
160 
161 
162 }
163 
164 
165 
166 #endif // XOBJECTRESULTTREEFRAGPROXYTEXT_HEADER_GUARD_1357924680
xalanc::XObjectResultTreeFragProxyText::getPreviousSibling
virtual XalanNode * getPreviousSibling() const
Gets the node immediately preceding this node.
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
xalanc::XObjectResultTreeFragProxyText::getData
virtual const XalanDOMString & getData() const
Returns the character data of the node that implements this interface.
xalanc::XObjectResultTreeFragProxyText::getNodeName
virtual const XalanDOMString & getNodeName() const
Gets the name of this node, depending on its type.
XalanText.hpp
xalanc::XObjectResultTreeFragProxyText::getParentNode
virtual XalanNode * getParentNode() const
Gets the parent of this node.
xalanc::XalanNode
Definition: XalanNode.hpp:39
xalanc::XObjectResultTreeFragProxyText::getNextSibling
virtual XalanNode * getNextSibling() const
Gets the node immediately following this node.
xalanc::XalanNode::NodeType
NodeType
Definition: XalanNode.hpp:48
xalanc::XalanText
Definition: XalanText.hpp:41
xalanc::XObjectResultTreeFragProxyText::getNodeValue
virtual const XalanDOMString & getNodeValue() const
Gets the value of this node, depending on its type.
xalanc::XObjectResultTreeFragProxyText::getPrefix
virtual const XalanDOMString & getPrefix() const
Get the namespace prefix of this node, or null if it is unspecified.
xalanc::XalanDocument
Definition: XalanDocument.hpp:37
xalanc::operator==
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition: XalanVector.hpp:1118
xalanc::XObjectResultTreeFragProxyText::getNodeType
virtual NodeType getNodeType() const
An enum value representing the type of the underlying object.
XALAN_XPATH_EXPORT
#define XALAN_XPATH_EXPORT
Definition: XPathDefinitions.hpp:35
xalanc::XObjectResultTreeFragProxyText::getOwnerDocument
virtual XalanDocument * getOwnerDocument() const
Gets the Document object associated with this node.
xalanc::XObjectResultTreeFragProxyText::getFirstChild
virtual XalanNode * getFirstChild() const
Gets the first child of this node.
xalanc::XObjectResultTreeFragProxyText::getAttributes
virtual const XalanNamedNodeMap * getAttributes() const
Gets a NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.
xalanc::XalanNode::IndexType
unsigned long IndexType
Definition: XalanNode.hpp:64
xalanc::XObjectResultTreeFragProxyText::getIndex
virtual IndexType getIndex() const
Get the node's index.
xalanc::XObjectResultTreeFragProxyText::XObjectResultTreeFragProxyText
XObjectResultTreeFragProxyText(const XObject &theXObject, MemoryManager &theManager, XPathExecutionContext *theExecutionContext)
Constructor.
XalanMemoryManagement.hpp
xalanc::XObject
Class to hold XPath return types.
Definition: XObject.hpp:64
xalanc::XalanNodeList
Definition: XalanNodeList.hpp:37
xalanc::XObjectResultTreeFragProxyText::terminate
static void terminate()
Perform static shut down.
xalanc::XObjectResultTreeFragProxyText::getNamespaceURI
virtual const XalanDOMString & getNamespaceURI() const
Get the namespace URI of this node, or null if it is unspecified.
xalanc::XObjectResultTreeFragProxyText::~XObjectResultTreeFragProxyText
virtual ~XObjectResultTreeFragProxyText()
xalanc::XObjectResultTreeFragProxyText::getMemoryManager
MemoryManager & getMemoryManager()
Definition: XObjectResultTreeFragProxyText.hpp:74
xalanc::XObjectResultTreeFragProxyText::initialize
static void initialize(MemoryManager &theManager)
Perform static initialization.
xalanc::XObjectResultTreeFragProxyText::isWhitespace
virtual bool isWhitespace() const
Determine whether the text node instance is composed entirely of XML whitespace.
xalanc::XalanNamedNodeMap
Definition: XalanNamedNodeMap.hpp:37
xalanc::XObjectResultTreeFragProxyText::getLastChild
virtual XalanNode * getLastChild() const
Gets the last child of this node.
xalanc::XPathExecutionContext
Definition: XPathExecutionContext.hpp:83
xalanc::XObjectResultTreeFragProxyText
Definition: XObjectResultTreeFragProxyText.hpp:43
xalanc::XObjectResultTreeFragProxyText::getExecutionContext
XPathExecutionContext * getExecutionContext()
Definition: XObjectResultTreeFragProxyText.hpp:80
xalanc::XObjectResultTreeFragProxyText::getChildNodes
virtual const XalanNodeList * getChildNodes() const
Gets a NodeList that contains all children of this node.
xalanc::XalanDOMString
Definition: XalanDOMString.hpp:46
xalanc::XObjectResultTreeFragProxyText::getLocalName
virtual const XalanDOMString & getLocalName() const
Returns the local part of the qualified name of this node.
XPathDefinitions.hpp
xalanc::XObjectResultTreeFragProxyText::isIndexed
virtual bool isIndexed() const
Determine if the document is node-order indexed.