Xalan-C++ API Reference 1.12.0
DOMSupport.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(DOMSUPPORT_HEADER_GUARD_1357924680)
19#define DOMSUPPORT_HEADER_GUARD_1357924680
20
21
22
23// Base include file. Must be first.
25
26
27
28namespace XALAN_CPP_NAMESPACE {
29
30
31
32class XalanAttr;
33class XalanDocument;
34class XalanDOMString;
35class XalanElement;
36class XalanNode;
37class XalanText;
38
39
40
42{
43public:
44
46
47 virtual
49
50 // These interfaces are inherited from Resettable...
51
52 virtual void
53 reset() = 0;
54
55 // These interfaces are new to DOMSupport...
56
57 /**
58 * Retrieves the URI of the named unparsed entity
59 * from the supplied document.
60 *
61 * @param theName The name of the entity
62 * @param theDocument The document that contains the entity
63 * @return The URI of the entity
64 */
65 virtual const XalanDOMString&
67 const XalanDOMString& theName,
68 const XalanDocument& theDocument) const = 0;
69
70 /**
71 * Determine if a node is after another node, in document order.
72 *
73 * @param node1 The first node
74 * @param node2 The second node
75 * @return true if node1 one is after node2, or false if it is not.
76 */
77 virtual bool
79 const XalanNode& node1,
80 const XalanNode& node2) const = 0;
81};
82
83
84
85}
86
87
88
89#endif // DOMSUPPORT_HEADER_GUARD_1357924680
#define XALAN_DOMSUPPORT_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
virtual void reset()=0
virtual const XalanDOMString & getUnparsedEntityURI(const XalanDOMString &theName, const XalanDocument &theDocument) const =0
Retrieves the URI of the named unparsed entity from the supplied document.
virtual ~DOMSupport()
virtual bool isNodeAfter(const XalanNode &node1, const XalanNode &node2) const =0
Determine if a node is after another node, in document order.