CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_schema_info.h
1
2
3#pragma once
4
5#include <xml/schema/xml_schema_validity.h>
6#include <xml/schema/xml_schema_content_type.h>
7#include <xml/schema/ixml_schema_info.h>
8#include <system/shared_ptr.h>
9
10
12namespace System
13{
14namespace Xml
15{
16class AttributePSVIInfo;
17class DocumentSchemaValidator;
18namespace Schema
19{
20class XmlSchemaAttribute;
21class XmlSchemaElement;
22class XmlSchemaSimpleType;
23class XmlSchemaType;
24class XmlSchemaValidator;
25} // namespace Schema
26class XmlDocument;
27class XsdValidatingReader;
28} // namespace Xml
29} // namespace System
31
32namespace System {
33
34namespace Xml {
35
36namespace Schema {
37
42class ASPOSECPP_SHARED_CLASS XmlSchemaInfo : public IXmlSchemaInfo
43{
44 typedef XmlSchemaInfo ThisType;
46
47 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
48 ASPOSECPP_SHARED_RTTI_INFO_DECL();
49
50public:
51
54
55private:
57 friend class System::Xml::AttributePSVIInfo;
58 friend class System::Xml::XsdValidatingReader;
59 friend class System::Xml::DocumentSchemaValidator;
60 friend class System::Xml::XmlDocument;
61 friend class XmlSchemaValidator;
63
64public:
65
68 ASPOSECPP_SHARED_API XmlSchemaValidity get_Validity() override;
71 ASPOSECPP_SHARED_API void set_Validity(XmlSchemaValidity value);
75 ASPOSECPP_SHARED_API bool get_IsDefault() override;
79 ASPOSECPP_SHARED_API void set_IsDefault(bool value);
82 ASPOSECPP_SHARED_API bool get_IsNil() override;
85 ASPOSECPP_SHARED_API void set_IsNil(bool value);
88 ASPOSECPP_SHARED_API SharedPtr<XmlSchemaSimpleType> get_MemberType() override;
91 ASPOSECPP_SHARED_API void set_MemberType(const SharedPtr<XmlSchemaSimpleType>& value);
94 ASPOSECPP_SHARED_API SharedPtr<XmlSchemaType> get_SchemaType() override;
97 ASPOSECPP_SHARED_API void set_SchemaType(const SharedPtr<XmlSchemaType>& value);
100 ASPOSECPP_SHARED_API SharedPtr<XmlSchemaElement> get_SchemaElement() override;
103 ASPOSECPP_SHARED_API void set_SchemaElement(const SharedPtr<XmlSchemaElement>& value);
106 ASPOSECPP_SHARED_API SharedPtr<XmlSchemaAttribute> get_SchemaAttribute() override;
109 ASPOSECPP_SHARED_API void set_SchemaAttribute(const SharedPtr<XmlSchemaAttribute>& value);
112 ASPOSECPP_SHARED_API XmlSchemaContentType get_ContentType();
115 ASPOSECPP_SHARED_API void set_ContentType(XmlSchemaContentType value);
116
118 ASPOSECPP_SHARED_API XmlSchemaInfo();
119
120protected:
121
123 SharedPtr<XmlSchemaType> get_XmlType();
124 bool get_HasDefaultValue();
125 bool get_IsUnionType();
126
128 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(XmlSchemaInfo, CODEPORTING_ARGS(XmlSchemaValidity validity));
129
130 void Clear();
131
132 #ifdef ASPOSE_GET_SHARED_MEMBERS
133 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
134 #endif
136
137private:
138
139 bool _isDefault;
140 bool _isNil;
141 SharedPtr<XmlSchemaElement> _schemaElement;
142 SharedPtr<XmlSchemaAttribute> _schemaAttribute;
143 SharedPtr<XmlSchemaType> _schemaType;
145 XmlSchemaValidity _validity;
146 XmlSchemaContentType _contentType;
147
148};
149
150} // namespace Schema
151} // namespace Xml
152} // namespace System
153
154
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
Defines the post-schema-validation infoset of a validated XML node.
Definition: ixml_schema_info.h:33
Represents the post-schema-validation infoset of a validated XML node.
Definition: xml_schema_info.h:43
void set_SchemaAttribute(const SharedPtr< XmlSchemaAttribute > &value)
Sets the compiled XmlSchemaAttribute object that corresponds to this validated XML node.
void set_IsNil(bool value)
Sets a value indicating if the value for this validated XML node is nil.
SharedPtr< XmlSchemaAttribute > get_SchemaAttribute() override
Returns the compiled XmlSchemaAttribute object that corresponds to this validated XML node.
SharedPtr< XmlSchemaElement > get_SchemaElement() override
Returns the compiled XmlSchemaElement object that corresponds to this validated XML node.
void set_MemberType(const SharedPtr< XmlSchemaSimpleType > &value)
Sets the dynamic schema type for this validated XML node.
void set_ContentType(XmlSchemaContentType value)
Sets the XmlSchemaContentType object that corresponds to the content type of this validated XML node.
XmlSchemaInfo()
Initializes a new instance of the XmlSchemaInfo class.
bool get_IsNil() override
Returns a value indicating if the value for this validated XML node is nil.
XmlSchemaContentType get_ContentType()
Returns the XmlSchemaContentType object that corresponds to the content type of this validated XML no...
void set_SchemaType(const SharedPtr< XmlSchemaType > &value)
Sets the static XML Schema Definition Language (XSD) schema type of this validated XML node.
SharedPtr< XmlSchemaSimpleType > get_MemberType() override
Returns the dynamic schema type for this validated XML node.
void set_SchemaElement(const SharedPtr< XmlSchemaElement > &value)
Sets the compiled XmlSchemaElement object that corresponds to this validated XML node.
void set_Validity(XmlSchemaValidity value)
Sets the XmlSchemaValidity value of this validated XML node.
XmlSchemaValidity get_Validity() override
Returns the XmlSchemaValidity value of this validated XML node.
SharedPtr< XmlSchemaType > get_SchemaType() override
Returns the static XML Schema Definition Language (XSD) schema type of this validated XML node.
void set_IsDefault(bool value)
Sets a value indicating if this validated XML node was set as the result of a default being applied d...
bool get_IsDefault() override
Returns a value indicating if this validated XML node was set as the result of a default being applie...
Represents an XML Schema Definition Language (XSD) Schema validation engine. The XmlSchemaValidator c...
Definition: xml_schema_validator.h:93
Represents an XML document. You can use this class to load, validate, edit, add, and position XML in ...
Definition: xml_document.h:100
XmlSchemaContentType
Enumerations for the content model of the complex type. This represents the content in the post-schem...
Definition: xml_schema_content_type.h:18
XmlSchemaValidity
Represents the validity of an XML item validated by the XmlSchemaValidator class.
Definition: xml_schema_validity.h:17
@ 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