5#include <xml/schema/xml_schema_object.h>
6#include <xml/schema/xml_schema_form.h>
7#include <xml/schema/xml_schema_derivation_method.h>
8#include <xml/schema/validation_event_handler.h>
9#include <system/enum_helpers.h>
10#include <system/array.h>
21template <
typename,
typename>
class Dictionary;
22template <
typename>
class IList;
23template <
typename>
class List;
41class SchemaCollectionCompiler;
42class SchemaCollectionPreprocessor;
44class XmlSchemaAnnotation;
45class XmlSchemaCollection;
46class XmlSchemaCompilationSettings;
47class XmlSchemaObjectCollection;
48class XmlSchemaObjectTable;
50class XmlSchemaValidator;
56class XmlNamespaceManager;
82 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
83 ASPOSECPP_SHARED_RTTI_INFO_DECL();
92 friend class ChameleonKey;
94 friend class Preprocessor;
95 friend class SchemaCollectionCompiler;
96 friend class SchemaCollectionPreprocessor;
97 friend class Compiler;
101 friend class XsdBuilder;
102 friend class XsdValidator;
258 bool get_IsCompiledBySet();
259 void set_IsCompiledBySet(
bool value);
260 bool get_IsPreprocessed();
261 void set_IsPreprocessed(
bool value);
262 bool get_IsRedefined();
263 void set_IsRedefined(
bool value);
267 int32_t get_SchemaId();
268 bool get_IsChameleon();
269 void set_IsChameleon(
bool value);
272 int32_t get_ErrorCount();
273 void set_ErrorCount(int32_t value);
274 ASPOSECPP_SHARED_API
String get_IdAttribute()
override;
275 ASPOSECPP_SHARED_API
void set_IdAttribute(
String value)
override;
284 void SetIsCompiled(
bool isCompiled);
293 #ifdef ASPOSE_GET_SHARED_MEMBERS
294 ASPOSECPP_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
311 bool _isCompiledBySet;
312 bool _isPreprocessed;
322 static int32_t s_globalIdCounter;
332 ThisType* CppMemberwiseClone()
const override {
return new ThisType(*
this); }
Interface of indexed container of elements. Objects of this class should only be allocated using Syst...
Definition: ilist.h:19
Smart pointer class which tracks pointer modes of template arguments of stored object and updates the...
Definition: dynamic_weak_ptr.h:48
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
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
static const String Namespace
The XML schema namespace. This field is constant.
Definition: xml_schema.h:108
void Write(const SharedPtr< IO::Stream > &stream, const SharedPtr< XmlNamespaceManager > &namespaceManager)
Writes the XML Schema to the supplied Stream using the XmlNamespaceManager specified.
void set_ElementFormDefault(XmlSchemaForm value)
Sets the form for elements declared in the target namespace of the schema.
ArrayPtr< SharedPtr< XmlAttribute > > get_UnhandledAttributes()
Returns the qualified attributes which do not belong to the schema target namespace.
void set_TargetNamespace(const String &value)
Sets the Uniform Resource Identifier (URI) of the schema target namespace.
void set_AttributeFormDefault(XmlSchemaForm value)
Sets the form for attributes declared in the target namespace of the schema.
void set_UnhandledAttributes(const ArrayPtr< SharedPtr< XmlAttribute > > &value)
Sets the qualified attributes which do not belong to the schema target namespace.
static SharedPtr< XmlSchema > Read(const SharedPtr< IO::Stream > &stream, ValidationEventHandler validationEventHandler)
Reads an XML Schema from the supplied stream.
static SharedPtr< XmlSchema > Read(const SharedPtr< XmlReader > &reader, ValidationEventHandler validationEventHandler)
Reads an XML Schema from the supplied XmlReader.
void Compile(ValidationEventHandler validationEventHandler, const SharedPtr< XmlResolver > &resolver)
Compiles the XML Schema Object Model (SOM) into schema information for validation....
bool get_IsCompiled()
Indicates if the schema has been compiled.
static const String InstanceNamespace
The XML schema instance namespace. This field is constant.
Definition: xml_schema.h:110
void set_FinalDefault(XmlSchemaDerivationMethod value)
Sets the finalDefault attribute which sets the default value of the final attribute on elements and c...
static SharedPtr< XmlSchema > Read(const SharedPtr< IO::TextReader > &reader, ValidationEventHandler validationEventHandler)
Reads an XML Schema from the supplied IO::TextReader.
void Write(const SharedPtr< IO::TextWriter > &writer)
Writes the XML Schema to the supplied IO::TextWriter.
void Write(const SharedPtr< XmlWriter > &writer)
Writes the XML Schema to the supplied XmlWriter.
XmlSchemaForm get_ElementFormDefault()
Returns the form for elements declared in the target namespace of the schema.
XmlSchema()
Initializes a new instance of the XmlSchema class.
void Compile(ValidationEventHandler validationEventHandler)
Compiles the XML Schema Object Model (SOM) into schema information for validation....
SharedPtr< XmlSchemaObjectTable > get_Notations()
Returns the post-schema-compilation value for all notations in the schema.
void Write(const SharedPtr< XmlWriter > &writer, const SharedPtr< XmlNamespaceManager > &namespaceManager)
Writes the XML Schema to the supplied XmlWriter.
SharedPtr< XmlSchemaObjectTable > get_AttributeGroups()
Returns the post-schema-compilation value of all the global attribute groups in the schema.
String get_Version()
Returns the version of the schema.
void Write(const SharedPtr< IO::Stream > &stream)
Writes the XML Schema to the supplied data stream.
SharedPtr< XmlSchemaObjectCollection > get_Items()
Returns the collection of schema elements in the schema and is used to add new element types at the s...
SharedPtr< XmlSchemaObjectTable > get_Groups()
Returns the post-schema-compilation value of all the groups in the schema.
SharedPtr< XmlSchemaObjectTable > get_Elements()
Returns the post-schema-compilation value for all the elements in the schema.
SharedPtr< XmlSchemaObjectCollection > get_Includes()
Returns the collection of included and imported schemas.
String get_Id()
Returns the string ID.
void set_Version(const String &value)
Sets the version of the schema.
XmlSchemaForm get_AttributeFormDefault()
Returns the form for attributes declared in the target namespace of the schema.
String get_TargetNamespace()
Returns the Uniform Resource Identifier (URI) of the schema target namespace.
XmlSchemaDerivationMethod get_FinalDefault()
Returns the finalDefault attribute which sets the default value of the final attribute on elements an...
void Write(const SharedPtr< IO::TextWriter > &writer, const SharedPtr< XmlNamespaceManager > &namespaceManager)
Writes the XML Schema to the supplied TextWriter.
XmlSchemaDerivationMethod get_BlockDefault()
Returns the blockDefault attribute which sets the default value of the block attribute on element and...
SharedPtr< XmlSchemaObjectTable > get_SchemaTypes()
Returns the post-schema-compilation value of all schema types in the schema.
SharedPtr< XmlSchemaObjectTable > get_Attributes()
Returns the post-schema-compilation value for all the attributes in the schema.
void set_Id(const String &value)
Sets the string ID.
void set_BlockDefault(XmlSchemaDerivationMethod value)
Sets the blockDefault attribute which sets the default value of the block attribute on element and co...
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
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
class ASPOSECPP_SHARED_CLASS List
Definition: ienumerable.h:18
@ Stream
The type that supports reliable, two-way, connection-based byte streams without duplication of data a...
System::MulticastDelegate< void(SharedPtr< Object >, SharedPtr< ValidationEventArgs >)> ValidationEventHandler
Represents the callback method that will handle XML schema validation events and the ValidationEventA...
Definition: validation_event_handler.h:33
XmlSchemaForm
Indicates if attributes or elements need to be qualified with a namespace prefix.
Definition: xml_schema_form.h:17
XmlSchemaDerivationMethod
Provides different methods for preventing derivation.
Definition: xml_schema_derivation_method.h:18
@ 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
@ Shared
Shared mode: pointer participates in reference counting.