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
98
99 #ifdef __DBG_FOR_EACH_MEMBER
100public:
103 ASPOSECPP_SHARED_API void DBG_for_each_member(DBG::for_each_member_visitor& visitor) const override;
106 const char* DBG_class_name() const override { return "XmlSchemaIdentityConstraint"; }
107#endif
109
110private:
111
112 String _name;
115 SharedPtr<XmlQualifiedName> _qualifiedName;
116 SharedPtr<CompiledIdentityConstraint> _compiledConstraint;
117
118 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
119
120};
121
126class ASPOSECPP_SHARED_CLASS XmlSchemaXPath : public XmlSchemaAnnotated
127{
128 typedef XmlSchemaXPath ThisType;
130
131 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
132 ASPOSECPP_SHARED_RTTI_INFO_DECL();
133
134public:
135
138
139public:
140
143 ASPOSECPP_SHARED_API String get_XPath();
146 ASPOSECPP_SHARED_API void set_XPath(const String& value);
147
148private:
149
150 String _xpath;
151
152 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
153
154};
155
161class ASPOSECPP_SHARED_CLASS XmlSchemaUnique : public XmlSchemaIdentityConstraint
162{
165
166 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
167 ASPOSECPP_SHARED_RTTI_INFO_DECL();
168
169public:
170
173
174private:
175
176 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
177
178};
179
184class ASPOSECPP_SHARED_CLASS XmlSchemaKey : public XmlSchemaIdentityConstraint
185{
186 typedef XmlSchemaKey ThisType;
188
189 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
190 ASPOSECPP_SHARED_RTTI_INFO_DECL();
191
192public:
193
196
197private:
198
199 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
200
201};
202
207class ASPOSECPP_SHARED_CLASS XmlSchemaKeyref : public XmlSchemaIdentityConstraint
208{
211
212 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
213 ASPOSECPP_SHARED_RTTI_INFO_DECL();
214
215public:
216
219
220public:
221
227 ASPOSECPP_SHARED_API void set_Refer(const SharedPtr<XmlQualifiedName>& value);
228
230 ASPOSECPP_SHARED_API XmlSchemaKeyref();
231
232protected:
233
235 #ifdef ASPOSE_GET_SHARED_MEMBERS
236 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
237 #endif
238
239 #ifdef __DBG_FOR_EACH_MEMBER
240public:
243 ASPOSECPP_SHARED_API void DBG_for_each_member(DBG::for_each_member_visitor& visitor) const override;
246 const char* DBG_class_name() const override { return "XmlSchemaKeyref"; }
247#endif
249
250private:
251
253
254 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
255
256};
257
258} // namespace Schema
259} // namespace Xml
260} // namespace System
261
262
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:185
This class represents the keyref element from XMLSchema as specified by the World Wide Web Consortium...
Definition: xml_schema_id_entity_constraint.h:208
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:162
Represents the World Wide Web Consortium (W3C) selector element.
Definition: xml_schema_id_entity_constraint.h:127
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