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(XOBJECTRESULTTREEFRAGPROXYBASE_HEADER_GUARD_1357924680)
19 #define XOBJECTRESULTTREEFRAGPROXYBASE_HEADER_GUARD_1357924680
20 
21 
22 
23 // Base include file.  Must be first.
24 #include <xalanc/XPath/XPathDefinitions.hpp>
25 
26 #include <xalanc/Include/XalanMemoryManagement.hpp>
27 
28 
29 #include <xalanc/XalanDOM/XalanNodeList.hpp>
30 #include <xalanc/XalanDOM/XalanDocumentFragment.hpp>
31 
32 
33 
34 namespace XALAN_CPP_NAMESPACE {
35 
36 
37 
38 class XALAN_XPATH_EXPORT XObjectResultTreeFragProxyBase : public XalanDocumentFragment
39 {
40 public:
41 
42     XObjectResultTreeFragProxyBase();
43 
44     virtual
45     ~XObjectResultTreeFragProxyBase();
46 
47 
48     // These interfaces are inherited from XalanDocumentFragment...
49 
50     virtual const XalanDOMString&
51     getNodeName() const;
52 
53     virtual const XalanDOMString&
54     getNodeValue() const;
55 
56     virtual NodeType
57     getNodeType() const;
58 
59     virtual XalanNode*
60     getParentNode() const;
61 
62     virtual const XalanNodeList*
63     getChildNodes() const;
64 
65     virtual XalanNode*
66     getFirstChild() const = 0;
67 
68     virtual XalanNode*
69     getLastChild() const = 0;
70 
71     virtual XalanNode*
72     getPreviousSibling() const;
73 
74     virtual XalanNode*
75     getNextSibling() const;
76 
77     virtual const XalanNamedNodeMap*
78     getAttributes() const;
79 
80     virtual XalanDocument*
81     getOwnerDocument() const;
82 
83     virtual const XalanDOMString&
84     getNamespaceURI() const;
85 
86     virtual const XalanDOMString&
87     getPrefix() const;
88 
89     virtual const XalanDOMString&
90     getLocalName() const;
91 
92     virtual bool
93     isIndexed() const;
94 
95     virtual IndexType
96     getIndex() const;
97 
98 protected:
99 
100     XObjectResultTreeFragProxyBase(const XObjectResultTreeFragProxyBase&    theRHS);
101 
102 private:
103 
104     // Not implemented...
105     XObjectResultTreeFragProxyBase&
106     operator=(const XObjectResultTreeFragProxyBase& theRHS);
107 
108     bool
109     operator==(const XObjectResultTreeFragProxyBase&    theRHS);
110 
111 
112     // Data members...
113     static const XalanDOMString             s_emptyString;
114 };
115 
116 
117 
118 }
119 
120 
121 
122 #endif  // XOBJECTRESULTTREEFRAGPROXYBASE_HEADER_GUARD_1357924680
123