CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_schema_external.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{
12class Uri;
13namespace Xml
14{
15namespace Schema
16{
17enum class Compositor;
18class Preprocessor;
19class SchemaCollectionPreprocessor;
20class XmlSchema;
21} // namespace Schema
22class XmlAttribute;
23} // namespace Xml
24} // namespace System
26
27namespace System {
28
29namespace Xml {
30
31namespace Schema {
32
37class ASPOSECPP_SHARED_CLASS XmlSchemaExternal : public XmlSchemaObject
38{
41
42 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
43 ASPOSECPP_SHARED_RTTI_INFO_DECL();
44
45public:
46
49
50private:
52 friend class Preprocessor;
53 friend class SchemaCollectionPreprocessor;
55
56public:
57
61 ASPOSECPP_SHARED_API String get_SchemaLocation();
65 ASPOSECPP_SHARED_API void set_SchemaLocation(const String& value);
68 ASPOSECPP_SHARED_API SharedPtr<XmlSchema> get_Schema();
71 ASPOSECPP_SHARED_API void set_Schema(const SharedPtr<XmlSchema>& value);
74 ASPOSECPP_SHARED_API String get_Id();
77 ASPOSECPP_SHARED_API void set_Id(const String& value);
83 ASPOSECPP_SHARED_API void set_UnhandledAttributes(const ArrayPtr<SharedPtr<XmlAttribute>>& value);
84
86 ASPOSECPP_SHARED_API XmlSchemaExternal();
87
88protected:
89
91 SharedPtr<Uri> get_BaseUri();
92 void set_BaseUri(const SharedPtr<Uri>& value);
93 ASPOSECPP_SHARED_API String get_IdAttribute() override;
94 ASPOSECPP_SHARED_API void set_IdAttribute(String value) override;
95 System::Xml::Schema::Compositor get_Compositor();
96 void set_Compositor(System::Xml::Schema::Compositor value);
97
98 ASPOSECPP_SHARED_API void SetUnhandledAttributes(ArrayPtr<SharedPtr<XmlAttribute>> moreAttributes) override;
99
100 #ifdef ASPOSE_GET_SHARED_MEMBERS
101 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
102 #endif
104
105private:
106
107 String _location;
108 SharedPtr<Uri> _baseUri;
109 WeakPtr<XmlSchema> _schema;
110 String _id;
111 ArrayPtr<SharedPtr<XmlAttribute>> _moreAttributes;
112 System::Xml::Schema::Compositor _compositor;
113
114};
115
116} // namespace Schema
117} // namespace Xml
118} // namespace System
119
120
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
Subclass of System::SmartPtr which sets itself to weak mode at construction. Please note that this cl...
Definition: weak_ptr.h:18
Provides information about the included schema.
Definition: xml_schema_external.h:38
SharedPtr< XmlSchema > get_Schema()
Returns the XmlSchema for the referenced schema.
void set_Schema(const SharedPtr< XmlSchema > &value)
Sets the XmlSchema for the referenced schema.
String get_SchemaLocation()
Returns the Uniform Resource Identifier (URI) location for the schema, which tells the schema process...
ArrayPtr< SharedPtr< XmlAttribute > > get_UnhandledAttributes()
Returns the qualified attributes, which do not belong to the schema target namespace.
void set_SchemaLocation(const String &value)
Sets the Uniform Resource Identifier (URI) location for the schema, which tells the schema processor ...
void set_UnhandledAttributes(const ArrayPtr< SharedPtr< XmlAttribute > > &value)
Sets the qualified attributes, which do not belong to the schema target namespace.
String get_Id()
Returns the string id.
void set_Id(const String &value)
Sets the string id.
XmlSchemaExternal()
Initializes a new instance of the XmlSchemaExternal class.
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