CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_schema_any_attribute.h
1
2
3#pragma once
4
5#include <xml/schema/xml_schema_content_processing.h>
6#include <xml/schema/xml_schema_annotated.h>
7#include <system/string.h>
8
9
11namespace System
12{
13namespace Xml
14{
15class DocumentSchemaValidator;
16namespace Schema
17{
18class Compiler;
19class NamespaceList;
20class Preprocessor;
21class SchemaCollectionCompiler;
22class SchemaCollectionPreprocessor;
23class SchemaInfo;
24class XmlSchemaComplexType;
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 XmlSchemaAnyAttribute : public XmlSchemaAnnotated
42{
45
46 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
47 ASPOSECPP_SHARED_RTTI_INFO_DECL();
48
49public:
50
53
54private:
56 friend class System::Xml::DocumentSchemaValidator;
57 friend class Preprocessor;
58 friend class SchemaCollectionCompiler;
59 friend class SchemaCollectionPreprocessor;
60 friend class SchemaInfo;
61 friend class Compiler;
62 friend class XmlSchemaComplexType;
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 XmlSchemaAnyAttribute();
85
86protected:
87
90 XmlSchemaContentProcessing get_ProcessContentsCorrect();
91
92 void BuildNamespaceList(const String& targetNamespace);
93 void BuildNamespaceListV1Compat(const String& targetNamespace);
94 bool Allows(const SharedPtr<XmlQualifiedName>& qname);
95 static bool IsSubset(const SharedPtr<XmlSchemaAnyAttribute>& sub, const SharedPtr<XmlSchemaAnyAttribute>& super);
96 static SharedPtr<XmlSchemaAnyAttribute> Intersection(const SharedPtr<XmlSchemaAnyAttribute>& o1, const SharedPtr<XmlSchemaAnyAttribute>& o2, bool v1Compat);
98
99 #ifdef ASPOSE_GET_SHARED_MEMBERS
100 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
101 #endif
103
104private:
105
106 String _ns;
107 XmlSchemaContentProcessing _processContents;
109
110 ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
111
112};
113
114} // namespace Schema
115} // namespace Xml
116} // namespace System
117
118
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) anyAttribute element.
Definition: xml_schema_any_attribute.h:42
void set_Namespace(const String &value)
Sets the namespaces containing the attributes that can be used.
void set_ProcessContents(XmlSchemaContentProcessing value)
Sets information about how an application or XML processor should handle the validation of XML docume...
String get_Namespace()
Returns the namespaces containing the attributes that can be used.
XmlSchemaAnyAttribute()
Initializes a new instance of the XmlSchemaAnyAttribute class.
XmlSchemaContentProcessing get_ProcessContents()
Returns information about how an application or XML processor should handle the validation of XML doc...
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
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