CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_schema_id_entity_constraint.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 CompiledIdentityConstraint;
17class Compiler;
18class Preprocessor;
19class SchemaCollectionCompiler;
20class SchemaCollectionPreprocessor;
21class XmlSchemaObjectCollection;
22class XmlSchemaXPath;
23} // namespace Schema
24class XmlQualifiedName;
25} // namespace Xml
26} // namespace System
28
29namespace System {
30
31namespace Xml {
32
33namespace Schema {
34
39class ASPOSECPP_SHARED_CLASS XmlSchemaIdentityConstraint : public XmlSchemaAnnotated
40{
43
44 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
45 ASPOSECPP_SHARED_RTTI_INFO_DECL();
46
47public:
48
51
52private:
54 friend class Preprocessor;
55 friend class SchemaCollectionCompiler;
56 friend class SchemaCollectionPreprocessor;
57 friend class Compiler;
59
60public:
61
64 ASPOSECPP_SHARED_API String get_Name();
67 ASPOSECPP_SHARED_API void set_Name(const String& value);
73 ASPOSECPP_SHARED_API void set_Selector(const SharedPtr<XmlSchemaXPath>& value);
81
83 ASPOSECPP_SHARED_API XmlSchemaIdentityConstraint();
84
85protected:
86
88 SharedPtr<CompiledIdentityConstraint> get_CompiledConstraint();
89 void set_CompiledConstraint(const SharedPtr<CompiledIdentityConstraint>& value);
90 ASPOSECPP_SHARED_API String get_NameAttribute() override;
91 ASPOSECPP_SHARED_API void set_NameAttribute(String value) override;
92
93 void SetQualifiedName(const SharedPtr<XmlQualifiedName>& value);
94
95 #ifdef ASPOSE_GET_SHARED_MEMBERS
96 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
97 #endif
99
100private:
101
102 String _name;
105 SharedPtr<XmlQualifiedName> _qualifiedName;
106 SharedPtr<CompiledIdentityConstraint> _compiledConstraint;
107
108 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
109
110};
111
116class ASPOSECPP_SHARED_CLASS XmlSchemaXPath : public XmlSchemaAnnotated
117{
118 typedef XmlSchemaXPath ThisType;
120
121 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
122 ASPOSECPP_SHARED_RTTI_INFO_DECL();
123
124public:
125
128
129public:
130
133 ASPOSECPP_SHARED_API String get_XPath();
136 ASPOSECPP_SHARED_API void set_XPath(const String& value);
137
138private:
139
140 String _xpath;
141
142 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
143
144};
145
151class ASPOSECPP_SHARED_CLASS XmlSchemaUnique : public XmlSchemaIdentityConstraint
152{
155
156 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
157 ASPOSECPP_SHARED_RTTI_INFO_DECL();
158
159public:
160
163
164private:
165
166 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
167
168};
169
174class ASPOSECPP_SHARED_CLASS XmlSchemaKey : public XmlSchemaIdentityConstraint
175{
176 typedef XmlSchemaKey ThisType;
178
179 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
180 ASPOSECPP_SHARED_RTTI_INFO_DECL();
181
182public:
183
186
187private:
188
189 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
190
191};
192
197class ASPOSECPP_SHARED_CLASS XmlSchemaKeyref : public XmlSchemaIdentityConstraint
198{
201
202 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
203 ASPOSECPP_SHARED_RTTI_INFO_DECL();
204
205public:
206
209
210public:
211
217 ASPOSECPP_SHARED_API void set_Refer(const SharedPtr<XmlQualifiedName>& value);
218
220 ASPOSECPP_SHARED_API XmlSchemaKeyref();
221
222protected:
223
225 #ifdef ASPOSE_GET_SHARED_MEMBERS
226 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
227 #endif
229
230private:
231
233
234 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
235
236};
237
238} // namespace Schema
239} // namespace Xml
240} // namespace System
241
242
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
Class for the identity constraints: key, keyref, and unique elements.
Definition: xml_schema_id_entity_constraint.h:40
SharedPtr< XmlSchemaObjectCollection > get_Fields()
Returns the collection of fields that apply as children for the XML Path Language (XPath) expression ...
String get_Name()
Returns the name of the identity constraint.
void set_Selector(const SharedPtr< XmlSchemaXPath > &value)
Sets the XPath expression selector element.
void set_Name(const String &value)
Sets the name of the identity constraint.
SharedPtr< XmlSchemaXPath > get_Selector()
Returns the XPath expression selector element.
XmlSchemaIdentityConstraint()
Initializes a new instance of the XmlSchemaIdentityConstraint class.
SharedPtr< XmlQualifiedName > get_QualifiedName()
Returns the qualified name of the identity constraint, which holds the post-compilation interpretatio...
This class represents the key element from XMLSchema as specified by the World Wide Web Consortium (W...
Definition: xml_schema_id_entity_constraint.h:175
This class represents the keyref element from XMLSchema as specified by the World Wide Web Consortium...
Definition: xml_schema_id_entity_constraint.h:198
void set_Refer(const SharedPtr< XmlQualifiedName > &value)
Sets the name of the key that this constraint refers to in another simple or complex type.
XmlSchemaKeyref()
Initializes a new instance of the XmlSchemaKeyref class.
SharedPtr< XmlQualifiedName > get_Refer()
Returns the name of the key that this constraint refers to in another simple or complex type.
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 unique element from XML Schema as specified by the World Wide Web Consortium (W3C)....
Definition: xml_schema_id_entity_constraint.h:152
Represents the World Wide Web Consortium (W3C) selector element.
Definition: xml_schema_id_entity_constraint.h:117
String get_XPath()
Returns the attribute for the XPath expression.
void set_XPath(const String &value)
Sets the attribute for the XPath expression.
@ 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