CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_schema_any.h
1
2
3#pragma once
4
5#include <xml/schema/xml_schema_particle.h>
6#include <xml/schema/xml_schema_content_processing.h>
7#include <system/string.h>
8
9
11namespace System
12{
13namespace Xml
14{
15namespace Schema
16{
17class Compiler;
18class NamespaceList;
19class Preprocessor;
20class SchemaCollectionCompiler;
21class SchemaCollectionPreprocessor;
22class XmlSchemaComplexType;
23class XmlSchemaValidator;
24class XsdValidator;
25} // namespace Schema
26class XmlQualifiedName;
27} // namespace Xml
28} // namespace System
30
31namespace System {
32
33namespace Xml {
34
35namespace Schema {
36
41class ASPOSECPP_SHARED_CLASS XmlSchemaAny : public XmlSchemaParticle
42{
43 typedef XmlSchemaAny ThisType;
45
46 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
47 ASPOSECPP_SHARED_RTTI_INFO_DECL();
48
49public:
50
53
54private:
56 friend class Preprocessor;
57 friend class SchemaCollectionCompiler;
58 friend class SchemaCollectionPreprocessor;
59 friend class Compiler;
60 friend class XmlSchemaComplexType;
61 friend class XmlSchemaValidator;
62 friend class XsdValidator;
64
65public:
66
69 ASPOSECPP_SHARED_API String get_Namespace();
72 ASPOSECPP_SHARED_API void set_Namespace(const String& value);
81 ASPOSECPP_SHARED_API void set_ProcessContents(XmlSchemaContentProcessing value);
82
84 ASPOSECPP_SHARED_API XmlSchemaAny();
85
86protected:
87
90 String get_ResolvedNamespace();
91 XmlSchemaContentProcessing get_ProcessContentsCorrect();
92 ASPOSECPP_SHARED_API String get_NameString() override;
93
94 void BuildNamespaceList(const String& targetNamespace);
95 void BuildNamespaceListV1Compat(const String& targetNamespace);
96 bool Allows(const SharedPtr<XmlQualifiedName>& qname);
97
98 #ifdef ASPOSE_GET_SHARED_MEMBERS
99 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
100 #endif
102
103private:
104
105 String _ns;
106 XmlSchemaContentProcessing _processContents;
108
109 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
110
111};
112
113} // namespace Schema
114} // namespace Xml
115} // namespace System
116
117
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
Represents the World Wide Web Consortium (W3C) any element.
Definition: xml_schema_any.h:42
String get_Namespace()
Returns the namespaces containing the elements that can be used.
XmlSchemaContentProcessing get_ProcessContents()
Returns information about how an application or XML processor should handle the validation of XML doc...
XmlSchemaAny()
Initializes a new instance of the XmlSchemaAny class.
void set_ProcessContents(XmlSchemaContentProcessing value)
Sets information about how an application or XML processor should handle the validation of XML docume...
void set_Namespace(const String &value)
Sets the namespaces containing the elements that can be used.
Represents the complexType element from XML Schema as specified by the World Wide Web Consortium (W3C...
Definition: xml_schema_complex_type.h:64
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
A base class for that is the base class for all particle types (e.g. XmlSchemaAny).
Definition: xml_schema_particle.h:47
Represents an XML Schema Definition Language (XSD) Schema validation engine. The XmlSchemaValidator c...
Definition: xml_schema_validator.h:93
XmlSchemaContentProcessing
Provides information about the validation mode of any and anyAttribute element replacements.
Definition: xml_schema_content_processing.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