CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_schema_annotated.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 Compiler;
17class XmlSchemaAnnotation;
18} // namespace Schema
19class XmlAttribute;
20} // namespace Xml
21} // namespace System
23
24namespace System {
25
26namespace Xml {
27
28namespace Schema {
29
34class ASPOSECPP_SHARED_CLASS XmlSchemaAnnotated : public XmlSchemaObject
35{
38
39 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
40 ASPOSECPP_SHARED_RTTI_INFO_DECL();
41
42public:
43
46
47private:
49 friend class Compiler;
51
52public:
53
56 ASPOSECPP_SHARED_API String get_Id();
59 ASPOSECPP_SHARED_API void set_Id(const String& value);
65 ASPOSECPP_SHARED_API void set_Annotation(const SharedPtr<XmlSchemaAnnotation>& value);
71 ASPOSECPP_SHARED_API void set_UnhandledAttributes(const ArrayPtr<SharedPtr<XmlAttribute>>& value);
72
73protected:
74
76 ASPOSECPP_SHARED_API String get_IdAttribute() override;
77 ASPOSECPP_SHARED_API void set_IdAttribute(String value) override;
78
79 ASPOSECPP_SHARED_API void SetUnhandledAttributes(ArrayPtr<SharedPtr<XmlAttribute>> moreAttributes) override;
80 ASPOSECPP_SHARED_API void AddAnnotation(SharedPtr<XmlSchemaAnnotation> annotation) override;
81
82 #ifdef ASPOSE_GET_SHARED_MEMBERS
83 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
84 #endif
86
87private:
88
89 String _id;
91 ArrayPtr<SharedPtr<XmlAttribute>> _moreAttributes;
92
93 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
94
95};
96
97} // namespace Schema
98} // namespace Xml
99} // namespace System
100
101
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
void set_Id(const String &value)
Sets the string id.
String get_Id()
Returns the string id.
ArrayPtr< SharedPtr< XmlAttribute > > get_UnhandledAttributes()
Returns the qualified attributes that do not belong to the current schema's target namespace.
SharedPtr< XmlSchemaAnnotation > get_Annotation()
Returns the annotation property.
void set_UnhandledAttributes(const ArrayPtr< SharedPtr< XmlAttribute > > &value)
Sets the qualified attributes that do not belong to the current schema's target namespace.
void set_Annotation(const SharedPtr< XmlSchemaAnnotation > &value)
Sets the annotation property.
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