1 | /*
|
---|
2 | * Copyright 2001-2002,2004 The Apache Software Foundation.
|
---|
3 | *
|
---|
4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
---|
5 | * you may not use this file except in compliance with the License.
|
---|
6 | * You may obtain a copy of the License at
|
---|
7 | *
|
---|
8 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
9 | *
|
---|
10 | * Unless required by applicable law or agreed to in writing, software
|
---|
11 | * distributed under the License is distributed on an "AS IS" BASIS,
|
---|
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
13 | * See the License for the specific language governing permissions and
|
---|
14 | * limitations under the License.
|
---|
15 | */
|
---|
16 |
|
---|
17 | #if !defined(DOMPSVITYPEINFO_HPP)
|
---|
18 | #define DOMPSVITYPEINFO_HPP
|
---|
19 |
|
---|
20 | //------------------------------------------------------------------------------------
|
---|
21 | // Includes
|
---|
22 | //------------------------------------------------------------------------------------
|
---|
23 | #include <xercesc/util/XMLString.hpp>
|
---|
24 |
|
---|
25 |
|
---|
26 | XERCES_CPP_NAMESPACE_BEGIN
|
---|
27 |
|
---|
28 | /**
|
---|
29 | * The <code>DOMPSVITypeInfo</code> interface represent the PSVI info used by
|
---|
30 | * <code>DOMElement</code> or <code>DOMAttr</code> nodes, specified in the
|
---|
31 | * schemas associated with the document.
|
---|
32 | */
|
---|
33 | class CDOM_EXPORT DOMPSVITypeInfo
|
---|
34 | {
|
---|
35 | protected:
|
---|
36 | // -----------------------------------------------------------------------
|
---|
37 | // Hidden constructors
|
---|
38 | // -----------------------------------------------------------------------
|
---|
39 | /** @name Hidden constructors */
|
---|
40 | //@{
|
---|
41 | DOMPSVITypeInfo() {};
|
---|
42 | //@}
|
---|
43 |
|
---|
44 | private:
|
---|
45 | // -----------------------------------------------------------------------
|
---|
46 | // Unimplemented constructors and operators
|
---|
47 | // -----------------------------------------------------------------------
|
---|
48 | /** @name Unimplemented constructors and operators */
|
---|
49 | //@{
|
---|
50 | DOMPSVITypeInfo(const DOMPSVITypeInfo &);
|
---|
51 | DOMPSVITypeInfo & operator = (const DOMPSVITypeInfo &);
|
---|
52 | //@}
|
---|
53 |
|
---|
54 | public:
|
---|
55 |
|
---|
56 | enum PSVIProperty
|
---|
57 | {
|
---|
58 | PSVI_Validity
|
---|
59 | , PSVI_Validitation_Attempted
|
---|
60 | , PSVI_Type_Definition_Type
|
---|
61 | , PSVI_Type_Definition_Name
|
---|
62 | , PSVI_Type_Definition_Namespace
|
---|
63 | , PSVI_Type_Definition_Anonymous
|
---|
64 | , PSVI_Nil
|
---|
65 | , PSVI_Member_Type_Definition_Name
|
---|
66 | , PSVI_Member_Type_Definition_Namespace
|
---|
67 | , PSVI_Member_Type_Definition_Anonymous
|
---|
68 | , PSVI_Schema_Default
|
---|
69 | , PSVI_Schema_Normalized_Value
|
---|
70 | , PSVI_Schema_Specified
|
---|
71 | };
|
---|
72 |
|
---|
73 | // -----------------------------------------------------------------------
|
---|
74 | // All constructors are hidden, just the destructor is available
|
---|
75 | // -----------------------------------------------------------------------
|
---|
76 | /** @name Destructor */
|
---|
77 | //@{
|
---|
78 | /**
|
---|
79 | * Destructor
|
---|
80 | *
|
---|
81 | */
|
---|
82 | virtual ~DOMPSVITypeInfo() {};
|
---|
83 | //@}
|
---|
84 |
|
---|
85 | //@{
|
---|
86 | // -----------------------------------------------------------------------
|
---|
87 | // Getter methods
|
---|
88 | // -----------------------------------------------------------------------
|
---|
89 | /**
|
---|
90 | * Returns the string value of the specified PSVI property associated to a
|
---|
91 | * <code>DOMElement</code> or <code>DOMAttr</code>, or null if not available.
|
---|
92 | *
|
---|
93 | * <p><b>"Experimental - subject to change"</b></p>
|
---|
94 | *
|
---|
95 | * @return the string value of the specified PSVI property associated to a
|
---|
96 | * <code>DOMElement</code> or <code>DOMAttr</code>, or null if not available.
|
---|
97 | */
|
---|
98 | virtual const XMLCh* getStringProperty(PSVIProperty prop) const = 0;
|
---|
99 |
|
---|
100 | /**
|
---|
101 | * Returns the numeric value of the specified PSVI property associated to a
|
---|
102 | * <code>DOMElement</code> or <code>DOMAttr</code>, or null if not available.
|
---|
103 | *
|
---|
104 | * <p><b>"Experimental - subject to change"</b></p>
|
---|
105 | *
|
---|
106 | * @return the numeric value of the specified PSVI property associated to a
|
---|
107 | * <code>DOMElement</code> or <code>DOMAttr</code>, or null if not available.
|
---|
108 | */
|
---|
109 | virtual int getNumericProperty(PSVIProperty prop) const = 0;
|
---|
110 | //@}
|
---|
111 | };
|
---|
112 |
|
---|
113 | XERCES_CPP_NAMESPACE_END
|
---|
114 |
|
---|
115 | #endif
|
---|
116 |
|
---|
117 | /**
|
---|
118 | * End of file DOMPSVITypeInfo.hpp
|
---|
119 | */
|
---|