CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_schema_simple_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 XmlSchemaSimpleType;
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 XmlSchemaSimpleContentRestriction : 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_BaseType(const SharedPtr<XmlSchemaSimpleType>& value);
84 ASPOSECPP_SHARED_API void set_AnyAttribute(const SharedPtr<XmlSchemaAnyAttribute>& value);
85
87 ASPOSECPP_SHARED_API XmlSchemaSimpleContentRestriction();
88
89protected:
90
92 void SetAttributes(const SharedPtr<XmlSchemaObjectCollection>& newAttributes);
93
94 #ifdef ASPOSE_GET_SHARED_MEMBERS
95 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
96 #endif
98
99private:
100
101 SharedPtr<XmlQualifiedName> _baseTypeName;
106
107 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
108
109};
110
111} // namespace Schema
112} // namespace Xml
113} // namespace System
114
115
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 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
Represents the restriction element for simple content from XML Schema as specified by the World Wide ...
Definition: xml_schema_simple_content_restriction.h:39
SharedPtr< XmlQualifiedName > get_BaseTypeName()
Returns the name of the built-in data type or simple type from which this type is derived.
SharedPtr< XmlSchemaObjectCollection > get_Facets()
Returns an Xml Schema facet.
SharedPtr< XmlSchemaSimpleType > get_BaseType()
Returns the simple type base value.
SharedPtr< XmlSchemaAnyAttribute > get_AnyAttribute()
Returns an XmlSchemaAnyAttribute to be used for the attribute value.
SharedPtr< XmlSchemaObjectCollection > get_Attributes()
Returns the XmlSchemaAttribute and XmlSchemaAttributeGroupRef collection of attributes for the simple...
void set_BaseType(const SharedPtr< XmlSchemaSimpleType > &value)
Sets the simple type base value.
XmlSchemaSimpleContentRestriction()
Initializes a new instance of the XmlSchemaSimpleContentRestriction class.
void set_BaseTypeName(const SharedPtr< XmlQualifiedName > &value)
Sets the name of the built-in data type or simple type from which this type is derived.
void set_AnyAttribute(const SharedPtr< XmlSchemaAnyAttribute > &value)
Sets an XmlSchemaAnyAttribute to be used for the attribute value.
@ 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