Xerces-C++ 3.2.5

DOMPSVITypeInfo.hpp
Go to the documentation of this file.
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(XERCESC_INCLUDE_GUARD_DOMPSVITYPEINFO_HPP)
19#define XERCESC_INCLUDE_GUARD_DOMPSVITYPEINFO_HPP
20
21//------------------------------------------------------------------------------------
22// Includes
23//------------------------------------------------------------------------------------
24#include <xercesc/util/XMLString.hpp>
25
26
27 XERCES_CPP_NAMESPACE_BEGIN
28
34 class CDOM_EXPORT DOMPSVITypeInfo
35{
36 protected:
37 // -----------------------------------------------------------------------
38 // Hidden constructors
39 // -----------------------------------------------------------------------
42 DOMPSVITypeInfo() {};
44
45 private:
46 // -----------------------------------------------------------------------
47 // Unimplemented constructors and operators
48 // -----------------------------------------------------------------------
51 DOMPSVITypeInfo(const DOMPSVITypeInfo &);
52 DOMPSVITypeInfo & operator = (const DOMPSVITypeInfo &);
54
55 public:
56
57 enum PSVIProperty
58 {
59 PSVI_Validity
60 , PSVI_Validation_Attempted
61 , PSVI_Type_Definition_Type
62 , PSVI_Type_Definition_Name
63 , PSVI_Type_Definition_Namespace
64 , PSVI_Type_Definition_Anonymous
65 , PSVI_Nil
66 , PSVI_Member_Type_Definition_Name
67 , PSVI_Member_Type_Definition_Namespace
68 , PSVI_Member_Type_Definition_Anonymous
69 , PSVI_Schema_Default
70 , PSVI_Schema_Normalized_Value
71 , PSVI_Schema_Specified
72 };
73
74 // -----------------------------------------------------------------------
75 // All constructors are hidden, just the destructor is available
76 // -----------------------------------------------------------------------
83 virtual ~DOMPSVITypeInfo() {};
85
87 // -----------------------------------------------------------------------
88 // Getter methods
89 // -----------------------------------------------------------------------
98 virtual const XMLCh* getStringProperty(PSVIProperty prop) const = 0;
99
108 virtual int getNumericProperty(PSVIProperty prop) const = 0;
110};
111
112 XERCES_CPP_NAMESPACE_END
113
114#endif
115
XMLString.hpp
CDOM_EXPORT
#define CDOM_EXPORT
Definition XercesDefs.hpp:166
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
XMLCh
uint16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
DOMPSVITypeInfo
The DOMPSVITypeInfo interface represent the PSVI info used by DOMElement or DOMAttr nodes,...
Definition DOMPSVITypeInfo.hpp:35
DOMPSVITypeInfo::getNumericProperty
virtual int getNumericProperty(PSVIProperty prop) const =0
Returns the numeric value of the specified PSVI property associated to a DOMElement or DOMAttr,...
DOMPSVITypeInfo::DOMPSVITypeInfo
DOMPSVITypeInfo()
Definition DOMPSVITypeInfo.hpp:42
DOMPSVITypeInfo::~DOMPSVITypeInfo
virtual ~DOMPSVITypeInfo()
Destructor.
Definition DOMPSVITypeInfo.hpp:83
DOMPSVITypeInfo::PSVIProperty
PSVIProperty
Definition DOMPSVITypeInfo.hpp:58
DOMPSVITypeInfo::getStringProperty
virtual const XMLCh * getStringProperty(PSVIProperty prop) const =0
Returns the string value of the specified PSVI property associated to a DOMElement or DOMAttr,...