1 | /* |
---|
2 | * Licensed to the Apache Software Foundation (ASF) under one or more |
---|
3 | * contributor license agreements. See the NOTICE file distributed with |
---|
4 | * this work for additional information regarding copyright ownership. |
---|
5 | * The ASF licenses this file to You under the Apache License, Version 2.0 |
---|
6 | * (the "License"); you may not use this file except in compliance with |
---|
7 | * the License. You may obtain a copy of the License at |
---|
8 | * |
---|
9 | * http://www.apache.org/licenses/LICENSE-2.0 |
---|
10 | * |
---|
11 | * Unless required by applicable law or agreed to in writing, software |
---|
12 | * distributed under the License is distributed on an "AS IS" BASIS, |
---|
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
14 | * See the License for the specific language governing permissions and |
---|
15 | * limitations under the License. |
---|
16 | */ |
---|
17 | |
---|
18 | #if !defined(DOMTYPEINFO_HPP) |
---|
19 | #define DOMTYPEINFO_HPP |
---|
20 | |
---|
21 | //------------------------------------------------------------------------------------ |
---|
22 | // Includes |
---|
23 | //------------------------------------------------------------------------------------ |
---|
24 | #include <xercesc/util/XMLString.hpp> |
---|
25 | |
---|
26 | |
---|
27 | XERCES_CPP_NAMESPACE_BEGIN |
---|
28 | |
---|
29 | /** |
---|
30 | * The <code>DOMTypeInfo</code> interface represent a type used by |
---|
31 | * <code>DOMElement</code> or <code>DOMAttr</code> nodes, specified in the |
---|
32 | * schemas associated with the document. The type is a pair of a namespace URI |
---|
33 | * and name properties, and depends on the document's schema. |
---|
34 | */ |
---|
35 | class CDOM_EXPORT DOMTypeInfo |
---|
36 | { |
---|
37 | protected: |
---|
38 | // ----------------------------------------------------------------------- |
---|
39 | // Hidden constructors |
---|
40 | // ----------------------------------------------------------------------- |
---|
41 | /** @name Hidden constructors */ |
---|
42 | //@{ |
---|
43 | DOMTypeInfo() {}; |
---|
44 | //@} |
---|
45 | |
---|
46 | private: |
---|
47 | // ----------------------------------------------------------------------- |
---|
48 | // Unimplemented constructors and operators |
---|
49 | // ----------------------------------------------------------------------- |
---|
50 | /** @name Unimplemented constructors and operators */ |
---|
51 | //@{ |
---|
52 | DOMTypeInfo(const DOMTypeInfo &); |
---|
53 | DOMTypeInfo & operator = (const DOMTypeInfo &); |
---|
54 | //@} |
---|
55 | |
---|
56 | public: |
---|
57 | |
---|
58 | // ----------------------------------------------------------------------- |
---|
59 | // All constructors are hidden, just the destructor is available |
---|
60 | // ----------------------------------------------------------------------- |
---|
61 | /** @name Destructor */ |
---|
62 | //@{ |
---|
63 | /** |
---|
64 | * Destructor |
---|
65 | * |
---|
66 | */ |
---|
67 | virtual ~DOMTypeInfo() {}; |
---|
68 | //@} |
---|
69 | |
---|
70 | //@{ |
---|
71 | // ----------------------------------------------------------------------- |
---|
72 | // Getter methods |
---|
73 | // ----------------------------------------------------------------------- |
---|
74 | /** |
---|
75 | * Returns The name of a type declared for the associated <code>DOMElement</code> |
---|
76 | * or <code>DOMAttr</code>, or null if undeclared. |
---|
77 | * |
---|
78 | * <p><b>"Experimental - subject to change"</b></p> |
---|
79 | * |
---|
80 | * @return The name of a type declared for the associated <code>DOMElement</code> |
---|
81 | * or <code>DOMAttribute</code>, or null if undeclared. |
---|
82 | * @since DOM level 3 |
---|
83 | */ |
---|
84 | virtual const XMLCh* getName() const = 0; |
---|
85 | |
---|
86 | /** |
---|
87 | * The namespace of the type declared for the associated <code>DOMElement</code> |
---|
88 | * or <code>DOMAttr</code> or null if the <code>DOMElement</code> does not have |
---|
89 | * declaration or if no namespace information is available. |
---|
90 | * |
---|
91 | * <p><b>"Experimental - subject to change"</b></p> |
---|
92 | * |
---|
93 | * @return The namespace of the type declared for the associated <code>DOMElement</code> |
---|
94 | * or <code>DOMAttr</code> or null if the <code>DOMElement</code> does not have |
---|
95 | * declaration or if no namespace information is available. |
---|
96 | * @since DOM level 3 |
---|
97 | */ |
---|
98 | virtual const XMLCh* getNamespace() const = 0; |
---|
99 | //@} |
---|
100 | }; |
---|
101 | |
---|
102 | XERCES_CPP_NAMESPACE_END |
---|
103 | |
---|
104 | #endif |
---|
105 | |
---|
106 | /** |
---|
107 | * End of file DOMTypeInfo.hpp |
---|
108 | */ |
---|