CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_schema_complex_content_restriction.h
1
2
3#pragma once
4
5#include <xml/schema/xml_schema_content.h>
6#include <system/shared_ptr.h>
7
8
10namespace System
11{
12namespace Xml
13{
14namespace Schema
15{
16class XmlSchemaAnyAttribute;
17class XmlSchemaComplexType;
18class XmlSchemaObjectCollection;
19class XmlSchemaParticle;
20} // namespace Schema
21class XmlQualifiedName;
22} // namespace Xml
23} // namespace System
25
26namespace System {
27
28namespace Xml {
29
30namespace Schema {
31
38class ASPOSECPP_SHARED_CLASS XmlSchemaComplexContentRestriction : public XmlSchemaContent
39{
42
43 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
44 ASPOSECPP_SHARED_RTTI_INFO_DECL();
45
46public:
47
50
51private:
53 friend class XmlSchemaComplexType;
55
56public:
57
63 ASPOSECPP_SHARED_API void set_BaseTypeName(const SharedPtr<XmlQualifiedName>& value);
69 ASPOSECPP_SHARED_API void set_Particle(const SharedPtr<XmlSchemaParticle>& value);
79 ASPOSECPP_SHARED_API void set_AnyAttribute(const SharedPtr<XmlSchemaAnyAttribute>& value);
80
82 ASPOSECPP_SHARED_API XmlSchemaComplexContentRestriction();
83
84protected:
85
87 void SetAttributes(const SharedPtr<XmlSchemaObjectCollection>& newAttributes);
88
89 #ifdef ASPOSE_GET_SHARED_MEMBERS
90 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
91 #endif
93
94private:
95
99 SharedPtr<XmlQualifiedName> _baseTypeName;
100
101 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
102
103};
104
105} // namespace Schema
106} // namespace Xml
107} // namespace System
108
109
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
The base class for any element that can contain annotation elements.
Definition: xml_schema_annotated.h:35
Represents the restriction element from XML Schema as specified by the World Wide Web Consortium (W3C...
Definition: xml_schema_complex_content_restriction.h:39
XmlSchemaComplexContentRestriction()
Initializes a new instance of the XmlSchemaComplexContentRestriction class.
void set_Particle(const SharedPtr< XmlSchemaParticle > &value)
Sets one of the XmlSchemaGroupRef, XmlSchemaChoice, XmlSchemaAll, or XmlSchemaSequence classes.
SharedPtr< XmlSchemaAnyAttribute > get_AnyAttribute()
Returns the XmlSchemaAnyAttribute component of the complex content model.
SharedPtr< XmlQualifiedName > get_BaseTypeName()
Returns the name of a complex type from which this type is derived by restriction.
void set_AnyAttribute(const SharedPtr< XmlSchemaAnyAttribute > &value)
Sets the XmlSchemaAnyAttribute component of the complex content model.
SharedPtr< XmlSchemaParticle > get_Particle()
Returns one of the XmlSchemaGroupRef, XmlSchemaChoice, XmlSchemaAll, or XmlSchemaSequence classes.
SharedPtr< XmlSchemaObjectCollection > get_Attributes()
Returns the collection of attributes for the complex type. Contains the XmlSchemaAttribute and XmlSch...
void set_BaseTypeName(const SharedPtr< XmlQualifiedName > &value)
Sets the name of a complex type from which this type is derived by restriction.
Represents the complexType element from XML Schema as specified by the World Wide Web Consortium (W3C...
Definition: xml_schema_complex_type.h:64
An abstract class for schema content.
Definition: xml_schema_content.h:16
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
@ 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