CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_schema_particle.h
1
2
3#pragma once
4
5#include <xml/schema/xml_schema_annotated.h>
6#include <system/shared_ptr.h>
7#include <system/enum_helpers.h>
8#include <system/decimal.h>
9
10
12namespace System
13{
14class String;
15namespace Xml
16{
17namespace Schema
18{
19class Compiler;
20class DfaContentValidator;
21class NfaContentValidator;
22class RangeContentValidator;
23class SchemaCollectionCompiler;
24class XmlSchemaAll;
25class XmlSchemaChoice;
26class XmlSchemaComplexType;
27class XmlSchemaGroup;
28class XmlSchemaSequence;
29class XmlSchemaValidator;
30} // namespace Schema
31class XmlQualifiedName;
32} // namespace Xml
33} // namespace System
35
36namespace System {
37
38namespace Xml {
39
40namespace Schema {
41
46class ASPOSECPP_SHARED_CLASS XmlSchemaParticle : public XmlSchemaAnnotated
47{
50
51 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
52 ASPOSECPP_SHARED_RTTI_INFO_DECL();
53
54public:
55
58
59private:
61 friend class DfaContentValidator;
62 friend class NfaContentValidator;
63 friend class RangeContentValidator;
64 friend class SchemaCollectionCompiler;
65 friend class Compiler;
66 friend class XmlSchemaAll;
67 friend class XmlSchemaChoice;
68 friend class XmlSchemaComplexType;
69 friend class XmlSchemaGroup;
70 friend class XmlSchemaSequence;
71 friend class XmlSchemaValidator;
73
74private:
75
76 enum class Occurs
77 {
78 None,
79 Min,
80 Max
81 };
82 DECLARE_FRIEND_ENUM_OPERATORS(System::Xml::Schema::XmlSchemaParticle::Occurs);
83
84
85
86public:
87
93 ASPOSECPP_SHARED_API String get_MinOccursString();
97 ASPOSECPP_SHARED_API void set_MinOccursString(const String& value);
102 ASPOSECPP_SHARED_API String get_MaxOccursString();
105 ASPOSECPP_SHARED_API void set_MaxOccursString(const String& value);
108 ASPOSECPP_SHARED_API Decimal get_MinOccurs();
111 ASPOSECPP_SHARED_API void set_MinOccurs(Decimal value);
114 ASPOSECPP_SHARED_API Decimal get_MaxOccurs();
117 ASPOSECPP_SHARED_API void set_MaxOccurs(Decimal value);
118
120 ASPOSECPP_SHARED_API XmlSchemaParticle();
121
122protected:
123
125 virtual ASPOSECPP_SHARED_API bool get_IsEmpty();
126 bool get_IsMultipleOccurrence();
127 virtual ASPOSECPP_SHARED_API String get_NameString();
128
130
131 SharedPtr<XmlQualifiedName> GetQualifiedName();
133
134 virtual ASPOSECPP_SHARED_API ~XmlSchemaParticle();
135
137 #ifdef ASPOSE_GET_SHARED_MEMBERS
138 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
139 #endif
141
142private:
143
144 Decimal _minOccurs;
145 Decimal _maxOccurs;
146 XmlSchemaParticle::Occurs _flags;
147
148};
149
151DECLARE_ENUM_OPERATORS(System::Xml::Schema::XmlSchemaParticle::Occurs);
152DECLARE_USING_GLOBAL_OPERATORS
154
155} // namespace Schema
156} // namespace Xml
157} // namespace System
158
160DECLARE_USING_ENUM_OPERATORS(System::Xml::Schema);
162
163
Represents a decimal number. This type should be allocated on stack and passed to functions by value ...
Definition: decimal.h:107
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
Represents the World Wide Web Consortium (W3C) all element (compositor).
Definition: xml_schema_all.h:33
The base class for any element that can contain annotation elements.
Definition: xml_schema_annotated.h:35
Represents the choice element (compositor) from the XML Schema as specified by the World Wide Web Con...
Definition: xml_schema_choice.h:34
Represents the complexType element from XML Schema as specified by the World Wide Web Consortium (W3C...
Definition: xml_schema_complex_type.h:64
Represents the group element from XML Schema as specified by the World Wide Web Consortium (W3C)....
Definition: xml_schema_group.h:45
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
A base class for that is the base class for all particle types (e.g. XmlSchemaAny).
Definition: xml_schema_particle.h:47
void set_MaxOccursString(const String &value)
Sets the number as a string value. Maximum number of times the particle can occur.
void set_MinOccursString(const String &value)
Sets the number as a string value. The minimum number of times the particle can occur.
Decimal get_MinOccurs()
Returns the minimum number of times the particle can occur.
XmlSchemaParticle()
Initializes a new instance of the XmlSchemaParticle class.
String get_MaxOccursString()
Returns the number as a string value. Maximum number of times the particle can occur.
Decimal get_MaxOccurs()
Returns the maximum number of times the particle can occur.
void set_MinOccurs(Decimal value)
Sets the minimum number of times the particle can occur.
String get_MinOccursString()
Returns the number as a string value. The minimum number of times the particle can occur.
void set_MaxOccurs(Decimal value)
Sets the maximum number of times the particle can occur.
Represents the sequence element (compositor) from the XML Schema as specified by the World Wide Web C...
Definition: xml_schema_sequence.h:34
Represents an XML Schema Definition Language (XSD) Schema validation engine. The XmlSchemaValidator c...
Definition: xml_schema_validator.h:93
Definition: infer.h:48
@ 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
@ Empty
A null reference.