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
79
80 #ifdef __DBG_FOR_EACH_MEMBER
81public:
84 ASPOSECPP_SHARED_API void DBG_for_each_member(DBG::for_each_member_visitor& visitor) const override;
87 const char* DBG_class_name() const override { return "XmlSchemaFacet"; }
88#endif
90
91private:
92
93 String _value;
94 bool _isFixed;
95 System::Xml::Schema::FacetType _facetType;
96
97};
98
104class ASPOSECPP_SHARED_CLASS XmlSchemaNumericFacet : public XmlSchemaFacet
105{
107 typedef XmlSchemaFacet BaseType;
108
109 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
110 ASPOSECPP_SHARED_RTTI_INFO_DECL();
111
112public:
113
116
117};
118
124class ASPOSECPP_SHARED_CLASS XmlSchemaLengthFacet : public XmlSchemaNumericFacet
125{
128
129 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
130 ASPOSECPP_SHARED_RTTI_INFO_DECL();
131
132public:
133
136
137public:
138
140 ASPOSECPP_SHARED_API XmlSchemaLengthFacet();
141
142private:
143
144 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
145
146};
147
154class ASPOSECPP_SHARED_CLASS XmlSchemaMinLengthFacet : public XmlSchemaNumericFacet
155{
158
159 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
160 ASPOSECPP_SHARED_RTTI_INFO_DECL();
161
162public:
163
166
167public:
168
170 ASPOSECPP_SHARED_API XmlSchemaMinLengthFacet();
171
172private:
173
174 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
175
176};
177
184class ASPOSECPP_SHARED_CLASS XmlSchemaMaxLengthFacet : public XmlSchemaNumericFacet
185{
188
189 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
190 ASPOSECPP_SHARED_RTTI_INFO_DECL();
191
192public:
193
196
197public:
198
200 ASPOSECPP_SHARED_API XmlSchemaMaxLengthFacet();
201
202private:
203
204 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
205
206};
207
213class ASPOSECPP_SHARED_CLASS XmlSchemaPatternFacet : public XmlSchemaFacet
214{
216 typedef XmlSchemaFacet BaseType;
217
218 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
219 ASPOSECPP_SHARED_RTTI_INFO_DECL();
220
221public:
222
225
226public:
227
229 ASPOSECPP_SHARED_API XmlSchemaPatternFacet();
230
231private:
232
233 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
234
235};
236
242class ASPOSECPP_SHARED_CLASS XmlSchemaEnumerationFacet : public XmlSchemaFacet
243{
245 typedef XmlSchemaFacet BaseType;
246
247 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
248 ASPOSECPP_SHARED_RTTI_INFO_DECL();
249
250public:
251
254
255public:
256
258 ASPOSECPP_SHARED_API XmlSchemaEnumerationFacet();
259
260private:
261
262 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
263
264};
265
272class ASPOSECPP_SHARED_CLASS XmlSchemaMinExclusiveFacet : public XmlSchemaFacet
273{
275 typedef XmlSchemaFacet BaseType;
276
277 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
278 ASPOSECPP_SHARED_RTTI_INFO_DECL();
279
280public:
281
284
285public:
286
288 ASPOSECPP_SHARED_API XmlSchemaMinExclusiveFacet();
289
290private:
291
292 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
293
294};
295
302class ASPOSECPP_SHARED_CLASS XmlSchemaMinInclusiveFacet : public XmlSchemaFacet
303{
305 typedef XmlSchemaFacet BaseType;
306
307 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
308 ASPOSECPP_SHARED_RTTI_INFO_DECL();
309
310public:
311
314
315public:
316
318 ASPOSECPP_SHARED_API XmlSchemaMinInclusiveFacet();
319
320private:
321
322 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
323
324};
325
332class ASPOSECPP_SHARED_CLASS XmlSchemaMaxExclusiveFacet : public XmlSchemaFacet
333{
335 typedef XmlSchemaFacet BaseType;
336
337 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
338 ASPOSECPP_SHARED_RTTI_INFO_DECL();
339
340public:
341
344
345public:
346
348 ASPOSECPP_SHARED_API XmlSchemaMaxExclusiveFacet();
349
350private:
351
352 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
353
354};
355
362class ASPOSECPP_SHARED_CLASS XmlSchemaMaxInclusiveFacet : public XmlSchemaFacet
363{
365 typedef XmlSchemaFacet BaseType;
366
367 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
368 ASPOSECPP_SHARED_RTTI_INFO_DECL();
369
370public:
371
374
375public:
376
378 ASPOSECPP_SHARED_API XmlSchemaMaxInclusiveFacet();
379
380private:
381
382 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
383
384};
385
392class ASPOSECPP_SHARED_CLASS XmlSchemaTotalDigitsFacet : public XmlSchemaNumericFacet
393{
396
397 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
398 ASPOSECPP_SHARED_RTTI_INFO_DECL();
399
400public:
401
404
405public:
406
408 ASPOSECPP_SHARED_API XmlSchemaTotalDigitsFacet();
409
410private:
411
412 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
413
414};
415
421class ASPOSECPP_SHARED_CLASS XmlSchemaFractionDigitsFacet : public XmlSchemaNumericFacet
422{
425
426 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
427 ASPOSECPP_SHARED_RTTI_INFO_DECL();
428
429public:
430
433
434public:
435
437 ASPOSECPP_SHARED_API XmlSchemaFractionDigitsFacet();
438
439private:
440
441 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
442
443};
444
449class ASPOSECPP_SHARED_CLASS XmlSchemaWhiteSpaceFacet : public XmlSchemaFacet
450{
452 typedef XmlSchemaFacet BaseType;
453
454 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
455 ASPOSECPP_SHARED_RTTI_INFO_DECL();
456
457public:
458
461
462public:
463
465 ASPOSECPP_SHARED_API XmlSchemaWhiteSpaceFacet();
466
467private:
468
469 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
470
471};
472
473} // namespace Schema
474} // namespace Xml
475} // namespace System
476
477
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:243
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:422
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:125
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:333
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:363
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:185
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:273
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:303
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:155
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:105
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:214
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:393
XmlSchemaTotalDigitsFacet()
Initializes a new instance of the XmlSchemaTotalDigitsFacet class.
Represents the World Wide Web Consortium (W3C) whiteSpace facet.
Definition: xml_schema_facet.h:450
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