CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_schema_facet.h
1
2
3#pragma once
4
5#include <xml/schema/xml_schema_annotated.h>
6#include <system/string.h>
7
8
10namespace System
11{
12namespace Xml
13{
14namespace Schema
15{
16class FacetsChecker;
17enum class FacetType;
18} // namespace Schema
19} // namespace Xml
20} // namespace System
22
23namespace System {
24
25namespace Xml {
26
27namespace Schema {
28
33class ASPOSECPP_SHARED_CLASS XmlSchemaFacet : public XmlSchemaAnnotated
34{
37
38 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
39 ASPOSECPP_SHARED_RTTI_INFO_DECL();
40
41public:
42
45
46private:
48 friend class FacetsChecker;
49 friend class FacetsChecker;
51
52public:
53
56 ASPOSECPP_SHARED_API String get_Value();
59 ASPOSECPP_SHARED_API void set_Value(const String& value);
62 virtual ASPOSECPP_SHARED_API bool get_IsFixed();
65 virtual ASPOSECPP_SHARED_API void set_IsFixed(bool value);
66
68 ASPOSECPP_SHARED_API XmlSchemaFacet();
69
70protected:
71
73 System::Xml::Schema::FacetType get_FacetType();
74 void set_FacetType(System::Xml::Schema::FacetType value);
75
76 #ifdef ASPOSE_GET_SHARED_MEMBERS
77 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
78 #endif
80
81private:
82
83 String _value;
84 bool _isFixed;
85 System::Xml::Schema::FacetType _facetType;
86
87};
88
94class ASPOSECPP_SHARED_CLASS XmlSchemaNumericFacet : public XmlSchemaFacet
95{
98
99 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
100 ASPOSECPP_SHARED_RTTI_INFO_DECL();
101
102public:
103
106
107};
108
114class ASPOSECPP_SHARED_CLASS XmlSchemaLengthFacet : public XmlSchemaNumericFacet
115{
118
119 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
120 ASPOSECPP_SHARED_RTTI_INFO_DECL();
121
122public:
123
126
127public:
128
130 ASPOSECPP_SHARED_API XmlSchemaLengthFacet();
131
132private:
133
134 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
135
136};
137
144class ASPOSECPP_SHARED_CLASS XmlSchemaMinLengthFacet : public XmlSchemaNumericFacet
145{
148
149 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
150 ASPOSECPP_SHARED_RTTI_INFO_DECL();
151
152public:
153
156
157public:
158
160 ASPOSECPP_SHARED_API XmlSchemaMinLengthFacet();
161
162private:
163
164 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
165
166};
167
174class ASPOSECPP_SHARED_CLASS XmlSchemaMaxLengthFacet : public XmlSchemaNumericFacet
175{
178
179 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
180 ASPOSECPP_SHARED_RTTI_INFO_DECL();
181
182public:
183
186
187public:
188
190 ASPOSECPP_SHARED_API XmlSchemaMaxLengthFacet();
191
192private:
193
194 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
195
196};
197
203class ASPOSECPP_SHARED_CLASS XmlSchemaPatternFacet : public XmlSchemaFacet
204{
206 typedef XmlSchemaFacet BaseType;
207
208 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
209 ASPOSECPP_SHARED_RTTI_INFO_DECL();
210
211public:
212
215
216public:
217
219 ASPOSECPP_SHARED_API XmlSchemaPatternFacet();
220
221private:
222
223 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
224
225};
226
232class ASPOSECPP_SHARED_CLASS XmlSchemaEnumerationFacet : public XmlSchemaFacet
233{
235 typedef XmlSchemaFacet BaseType;
236
237 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
238 ASPOSECPP_SHARED_RTTI_INFO_DECL();
239
240public:
241
244
245public:
246
248 ASPOSECPP_SHARED_API XmlSchemaEnumerationFacet();
249
250private:
251
252 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
253
254};
255
262class ASPOSECPP_SHARED_CLASS XmlSchemaMinExclusiveFacet : public XmlSchemaFacet
263{
265 typedef XmlSchemaFacet BaseType;
266
267 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
268 ASPOSECPP_SHARED_RTTI_INFO_DECL();
269
270public:
271
274
275public:
276
278 ASPOSECPP_SHARED_API XmlSchemaMinExclusiveFacet();
279
280private:
281
282 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
283
284};
285
292class ASPOSECPP_SHARED_CLASS XmlSchemaMinInclusiveFacet : public XmlSchemaFacet
293{
295 typedef XmlSchemaFacet BaseType;
296
297 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
298 ASPOSECPP_SHARED_RTTI_INFO_DECL();
299
300public:
301
304
305public:
306
308 ASPOSECPP_SHARED_API XmlSchemaMinInclusiveFacet();
309
310private:
311
312 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
313
314};
315
322class ASPOSECPP_SHARED_CLASS XmlSchemaMaxExclusiveFacet : public XmlSchemaFacet
323{
325 typedef XmlSchemaFacet BaseType;
326
327 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
328 ASPOSECPP_SHARED_RTTI_INFO_DECL();
329
330public:
331
334
335public:
336
338 ASPOSECPP_SHARED_API XmlSchemaMaxExclusiveFacet();
339
340private:
341
342 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
343
344};
345
352class ASPOSECPP_SHARED_CLASS XmlSchemaMaxInclusiveFacet : public XmlSchemaFacet
353{
355 typedef XmlSchemaFacet BaseType;
356
357 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
358 ASPOSECPP_SHARED_RTTI_INFO_DECL();
359
360public:
361
364
365public:
366
368 ASPOSECPP_SHARED_API XmlSchemaMaxInclusiveFacet();
369
370private:
371
372 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
373
374};
375
382class ASPOSECPP_SHARED_CLASS XmlSchemaTotalDigitsFacet : public XmlSchemaNumericFacet
383{
386
387 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
388 ASPOSECPP_SHARED_RTTI_INFO_DECL();
389
390public:
391
394
395public:
396
398 ASPOSECPP_SHARED_API XmlSchemaTotalDigitsFacet();
399
400private:
401
402 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
403
404};
405
411class ASPOSECPP_SHARED_CLASS XmlSchemaFractionDigitsFacet : public XmlSchemaNumericFacet
412{
415
416 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
417 ASPOSECPP_SHARED_RTTI_INFO_DECL();
418
419public:
420
423
424public:
425
427 ASPOSECPP_SHARED_API XmlSchemaFractionDigitsFacet();
428
429private:
430
431 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
432
433};
434
439class ASPOSECPP_SHARED_CLASS XmlSchemaWhiteSpaceFacet : public XmlSchemaFacet
440{
442 typedef XmlSchemaFacet BaseType;
443
444 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
445 ASPOSECPP_SHARED_RTTI_INFO_DECL();
446
447public:
448
451
452public:
453
455 ASPOSECPP_SHARED_API XmlSchemaWhiteSpaceFacet();
456
457private:
458
459 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
460
461};
462
463} // namespace Schema
464} // namespace Xml
465} // namespace System
466
467
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
The base class for any element that can contain annotation elements.
Definition: xml_schema_annotated.h:35
Represents the enumeration facet from XML Schema as specified by the World Wide Web Consortium (W3C)....
Definition: xml_schema_facet.h:233
XmlSchemaEnumerationFacet()
Initializes a new instance of the XmlSchemaEnumerationFacet class.
A base class for all facets that are used when simple types are derived by restriction.
Definition: xml_schema_facet.h:34
virtual bool get_IsFixed()
Returns information that indicates that this facet is fixed.
XmlSchemaFacet()
Initializes a new instance of the XmlSchemaFacet class.
String get_Value()
Returns the value attribute of the facet.
void set_Value(const String &value)
Sets the value attribute of the facet.
virtual void set_IsFixed(bool value)
Sets information that indicates that this facet is fixed.
Specifies a restriction on the number of digits that can be entered for the fraction value of a simpl...
Definition: xml_schema_facet.h:412
XmlSchemaFractionDigitsFacet()
Initializes a new instance of the XmlSchemaFractionDigitsFacet class.
Represents the length facet from XML Schema as specified by the World Wide Web Consortium (W3C)....
Definition: xml_schema_facet.h:115
XmlSchemaLengthFacet()
Initializes a new instance of the XmlSchemaLengthFacet class.
Represents the maxExclusive element from XML Schema as specified by the World Wide Web Consortium (W3...
Definition: xml_schema_facet.h:323
XmlSchemaMaxExclusiveFacet()
Initializes a new instance of the XmlSchemaMaxExclusiveFacet class.
Represents the maxInclusive element from XML Schema as specified by the World Wide Web Consortium (W3...
Definition: xml_schema_facet.h:353
XmlSchemaMaxInclusiveFacet()
Initializes a new instance of the XmlSchemaMaxInclusiveFacet class.
Represents the maxLength element from XML Schema as specified by the World Wide Web Consortium (W3C)....
Definition: xml_schema_facet.h:175
XmlSchemaMaxLengthFacet()
Initializes a new instance of the XmlSchemaMaxLengthFacet class.
Represents the minExclusive element from XML Schema as specified by the World Wide Web Consortium (W3...
Definition: xml_schema_facet.h:263
XmlSchemaMinExclusiveFacet()
Initializes a new instance of the XmlSchemaMinExclusiveFacet class.
Represents the minInclusive element from XML Schema as specified by the World Wide Web Consortium (W3...
Definition: xml_schema_facet.h:293
XmlSchemaMinInclusiveFacet()
Initializes a new instance of the XmlSchemaMinInclusiveFacet class.
Represents the minLength element from XML Schema as specified by the World Wide Web Consortium (W3C)....
Definition: xml_schema_facet.h:145
XmlSchemaMinLengthFacet()
Initializes a new instance of the XmlSchemaMinLengthFacet class.
A vase class for defining numeric facets. This class is the base class for numeric facet classes such...
Definition: xml_schema_facet.h:95
Represents the root class for the Xml schema object model hierarchy and serves as a base class for cl...
Definition: xml_schema_object.h:47
Represents the pattern element from XML Schema as specified by the World Wide Web Consortium (W3C)....
Definition: xml_schema_facet.h:204
XmlSchemaPatternFacet()
Initializes a new instance of the XmlSchemaPatternFacet class.
Represents the totalDigits facet from XML Schema as specified by the World Wide Web Consortium (W3C)....
Definition: xml_schema_facet.h:383
XmlSchemaTotalDigitsFacet()
Initializes a new instance of the XmlSchemaTotalDigitsFacet class.
Represents the World Wide Web Consortium (W3C) whiteSpace facet.
Definition: xml_schema_facet.h:440
XmlSchemaWhiteSpaceFacet()
Initializes a new instance of the XmlSchemaWhiteSpaceFacet class.
@ Schema
Validate according to XML Schema definition language (XSD) schemas, including inline XML Schemas....
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9