CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_schema_annotation.h
1
2
3#pragma once
4
5#include <xml/schema/xml_schema_object.h>
6#include <system/array.h>
7
8
10namespace System
11{
12namespace Xml
13{
14namespace Schema
15{
16class XmlSchemaObjectCollection;
17} // namespace Schema
18class XmlAttribute;
19} // namespace Xml
20} // namespace System
22
23namespace System {
24
25namespace Xml {
26
27namespace Schema {
28
33class ASPOSECPP_SHARED_CLASS XmlSchemaAnnotation : public XmlSchemaObject
34{
37
38 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
39 ASPOSECPP_SHARED_RTTI_INFO_DECL();
40
41public:
42
45
46public:
47
50 ASPOSECPP_SHARED_API String get_Id();
53 ASPOSECPP_SHARED_API void set_Id(const String& value);
62 ASPOSECPP_SHARED_API void set_UnhandledAttributes(const ArrayPtr<SharedPtr<XmlAttribute>>& value);
63
65 ASPOSECPP_SHARED_API XmlSchemaAnnotation();
66
67protected:
68
70 ASPOSECPP_SHARED_API String get_IdAttribute() override;
71 ASPOSECPP_SHARED_API void set_IdAttribute(String value) override;
72
73 ASPOSECPP_SHARED_API void SetUnhandledAttributes(ArrayPtr<SharedPtr<XmlAttribute>> moreAttributes) override;
74
75 #ifdef ASPOSE_GET_SHARED_MEMBERS
76 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
77 #endif
79
80private:
81
82 String _id;
84 ArrayPtr<SharedPtr<XmlAttribute>> _moreAttributes;
85
86 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
87
88};
89
90} // namespace Schema
91} // namespace Xml
92} // namespace System
93
94
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) annotation element.
Definition: xml_schema_annotation.h:34
XmlSchemaAnnotation()
Initializes a new instance of the XmlSchemaAnnotation class.
ArrayPtr< SharedPtr< XmlAttribute > > get_UnhandledAttributes()
Returns the qualified attributes that do not belong to the schema's target namespace.
void set_UnhandledAttributes(const ArrayPtr< SharedPtr< XmlAttribute > > &value)
Sets the qualified attributes that do not belong to the schema's target namespace.
SharedPtr< XmlSchemaObjectCollection > get_Items()
Returns the Items collection that is used to store the appinfo and documentation child elements.
void set_Id(const String &value)
Sets the string id.
String get_Id()
Returns the string id.
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