CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_schema_object.h
1
2
3#pragma once
4
5#include <system/array.h>
6#include <cstdint>
7
8
10namespace System
11{
12namespace Xml
13{
14namespace Schema
15{
16class Compiler;
17class Preprocessor;
18class SchemaCollectionCompiler;
19class SchemaCollectionPreprocessor;
20class XmlSchema;
21class XmlSchemaAnnotation;
22class XmlSchemaComplexType;
23class XmlSchemaObjectCollection;
24class XmlSchemaSimpleType;
25class XsdBuilder;
26} // namespace Schema
27namespace Serialization
28{
29class XmlSerializerNamespaces;
30} // namespace Serialization
31class XmlAttribute;
32} // namespace Xml
33} // namespace System
35
36namespace System {
37
38namespace Xml {
39
40namespace Schema {
41
46class ASPOSECPP_SHARED_CLASS XmlSchemaObject : public System::Object
47{
50
51 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
52 ASPOSECPP_SHARED_RTTI_INFO_DECL();
53
54public:
55
58
59private:
61 friend class Preprocessor;
62 friend class SchemaCollectionCompiler;
63 friend class SchemaCollectionPreprocessor;
64 friend class Compiler;
65 friend class XmlSchema;
66 friend class XmlSchemaComplexType;
67 friend class XmlSchemaObjectCollection;
68 friend class XmlSchemaSimpleType;
69 friend class XsdBuilder;
71
72public:
73
76 ASPOSECPP_SHARED_API int32_t get_LineNumber();
79 ASPOSECPP_SHARED_API void set_LineNumber(int32_t value);
82 ASPOSECPP_SHARED_API int32_t get_LinePosition();
85 ASPOSECPP_SHARED_API void set_LinePosition(int32_t value);
88 ASPOSECPP_SHARED_API String get_SourceUri();
91 ASPOSECPP_SHARED_API void set_SourceUri(const String& value);
94 ASPOSECPP_SHARED_API SharedPtr<XmlSchemaObject> get_Parent();
97 ASPOSECPP_SHARED_API void set_Parent(const SharedPtr<XmlSchemaObject>& value);
104
106 ASPOSECPP_SHARED_API XmlSchemaObject();
107
108protected:
109
111 virtual ASPOSECPP_SHARED_API String get_IdAttribute();
112 virtual ASPOSECPP_SHARED_API void set_IdAttribute(String value);
113 virtual ASPOSECPP_SHARED_API String get_NameAttribute();
114 virtual ASPOSECPP_SHARED_API void set_NameAttribute(String value);
115 bool get_IsProcessing();
116 void set_IsProcessing(bool value);
117
118 virtual ASPOSECPP_SHARED_API void OnAdd(SharedPtr<XmlSchemaObjectCollection> container, SharedPtr<Object> item);
119 virtual ASPOSECPP_SHARED_API void OnRemove(SharedPtr<XmlSchemaObjectCollection> container, SharedPtr<Object> item);
120 virtual ASPOSECPP_SHARED_API void OnClear(SharedPtr<XmlSchemaObjectCollection> container);
121 virtual ASPOSECPP_SHARED_API void SetUnhandledAttributes(ArrayPtr<SharedPtr<XmlAttribute>> moreAttributes);
122 virtual ASPOSECPP_SHARED_API void AddAnnotation(SharedPtr<XmlSchemaAnnotation> annotation);
123 virtual ASPOSECPP_SHARED_API SharedPtr<XmlSchemaObject> Clone();
124
125 #ifdef ASPOSE_GET_SHARED_MEMBERS
126 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
127 #endif
129
130private:
131
132 int32_t _lineNum;
133 int32_t _linePos;
134 String _sourceUri;
137 bool _isProcessing;
138
139 virtual ThisType* CppMemberwiseClone() const = 0;
140
141};
142
143} // namespace Schema
144} // namespace Xml
145} // namespace System
146
147
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
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
Represents the complexType element from XML Schema as specified by the World Wide Web Consortium (W3C...
Definition: xml_schema_complex_type.h:64
An in-memory representation of an XML Schema, as specified in the World Wide Web Consortium (W3C) XML...
Definition: xml_schema.h:78
A collection of XmlSchemaObjects.
Definition: xml_schema_object_collection.h:37
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
void set_Parent(const SharedPtr< XmlSchemaObject > &value)
Sets the parent of this XmlSchemaObject.
void set_SourceUri(const String &value)
Sets the source location for the file that loaded the schema.
SharedPtr< System::Xml::Serialization::XmlSerializerNamespaces > get_Namespaces()
Returns the XmlSerializerNamespaces to use with this schema object.
int32_t get_LinePosition()
Returns the line position in the file to which the schema element refers.
String get_SourceUri()
Returns the source location for the file that loaded the schema.
int32_t get_LineNumber()
Returns the line number in the file to which the schema element refers.
void set_LinePosition(int32_t value)
Sets the line position in the file to which the schema element refers.
SharedPtr< XmlSchemaObject > get_Parent()
Returns the parent of this XmlSchemaObject.
XmlSchemaObject()
Initializes a new instance of the XmlSchemaObject class.
void set_LineNumber(int32_t value)
Sets the line number in the file to which the schema element refers.
void set_Namespaces(const SharedPtr< System::Xml::Serialization::XmlSerializerNamespaces > &value)
Sets the XmlSerializerNamespaces to use with this schema object.
Represents the simpleType element for simple content from XML Schema as specified by the World Wide W...
Definition: xml_schema_simple_type.h:37
@ 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