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 
28 namespace XALAN_CPP_NAMESPACE {
29 
30 
31 
32 class XalanAttr;
33 class XalanDocument;
34 class XalanDOMString;
35 class XalanElement;
36 class XalanNode;
37 class XalanText;
38 
39 
40 
42 {
43 public:
44 
45  DOMSupport();
46 
47  virtual
48  ~DOMSupport();
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&
66  getUnparsedEntityURI(
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
78  isNodeAfter(
79  const XalanNode& node1,
80  const XalanNode& node2) const = 0;
81 };
82 
83 
84 
85 }
86 
87 
88 
89 #endif // DOMSUPPORT_HEADER_GUARD_1357924680
XALAN_DOMSUPPORT_EXPORT
#define XALAN_DOMSUPPORT_EXPORT
Definition: DOMSupportDefinitions.hpp:35
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
xalanc::XalanNode
Definition: XalanNode.hpp:38
xalanc::XalanDocument
Definition: XalanDocument.hpp:36
xalanc::DOMSupport
Definition: DOMSupport.hpp:41
DOMSupportDefinitions.hpp
xalanc::XalanDOMString
Definition: XalanDOMString.hpp:45