CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
validation_event_args.h
1
2
3#pragma once
4
5#include <xml/schema/xml_severity_type.h>
6#include <xml/schema/xml_schema_exception.h>
7#include <system/eventargs.h>
8
9
11namespace System
12{
13class String;
14namespace Xml
15{
16namespace Schema
17{
18class BaseProcessor;
19class BaseValidator;
20class SchemaInfo;
21class XdrBuilder;
22class XdrValidator;
23class XmlSchema;
24class XmlSchemaCollection;
25class XmlSchemaSet;
26class XmlSchemaValidator;
27class XsdBuilder;
28} // namespace Schema
29class XmlValidatingReaderImpl;
30} // namespace Xml
31} // namespace System
33
34namespace System {
35
36namespace Xml {
37
38namespace Schema {
39
44class ASPOSECPP_SHARED_CLASS ValidationEventArgs : public EventArgs
45{
47 typedef EventArgs BaseType;
48
49 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
50 ASPOSECPP_SHARED_RTTI_INFO_DECL();
51
52public:
53
56
57private:
59 friend class System::Xml::XmlValidatingReaderImpl;
60 friend class BaseValidator;
61 friend class BaseProcessor;
62 friend class SchemaInfo;
63 friend class XdrBuilder;
64 friend class XdrValidator;
65 friend class XmlSchema;
66 friend class XmlSchemaCollection;
67 friend class XmlSchemaSet;
68 friend class XmlSchemaValidator;
69 friend class XsdBuilder;
71
72public:
73
76 ASPOSECPP_SHARED_API XmlSeverityType get_Severity();
79 ASPOSECPP_SHARED_API XmlSchemaException get_Exception();
82 ASPOSECPP_SHARED_API String get_Message();
83
84protected:
85
88 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(ValidationEventArgs, CODEPORTING_ARGS(XmlSchemaException ex));
89
91 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(ValidationEventArgs, CODEPORTING_ARGS(XmlSchemaException ex, XmlSeverityType severity));
92
93 #ifdef ASPOSE_GET_SHARED_MEMBERS
94 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
95 #endif
97
98private:
99
101 XmlSeverityType _severity;
102
103};
104
105} // namespace Schema
106} // namespace Xml
107} // namespace System
108
109
The base class for classes that represent a context that is passed to the event subscribers when an e...
Definition: eventargs.h:19
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
Returns detailed information related to the ValidationEventHandler.
Definition: validation_event_args.h:45
String get_Message()
Returns the text description corresponding to the validation event.
XmlSeverityType get_Severity()
Returns the severity of the validation event.
XmlSchemaException get_Exception()
Returns the XmlSchemaException associated with the validation event.
Contains a cache of XML Schema definition language (XSD) and XML-Data Reduced (XDR) schemas.
Definition: xml_schema_collection.h:58
An in-memory representation of an XML Schema, as specified in the World Wide Web Consortium (W3C) XML...
Definition: xml_schema.h:78
Contains a cache of XML Schema definition language (XSD) schemas.
Definition: xml_schema_set.h:66
Represents an XML Schema Definition Language (XSD) Schema validation engine. The XmlSchemaValidator c...
Definition: xml_schema_validator.h:93
XmlSeverityType
Represents the severity of the validation event.
Definition: xml_severity_type.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