5#include <xml/schema/validation_event_handler.h>
6#include <system/exceptions.h>
7#include <system/collections/keyvalue_pair.h>
8#include <system/collections/ienumerator.h>
9#include <system/collections/ienumerable.h>
10#include <system/array.h>
21template <
typename,
typename>
class Dictionary;
34class XmlSchemaCollectionNode;
41class XmlValidatingReaderImpl;
62 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
63 ASPOSECPP_SHARED_RTTI_INFO_DECL();
72 friend class System::Xml::XmlValidatingReaderImpl;
73 friend class BaseValidator;
74 friend class XdrValidator;
75 friend class XsdValidator;
180 #ifdef ASPOSE_GET_SHARED_MEMBERS
181 ASPOSECPP_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
210 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
211 ASPOSECPP_SHARED_RTTI_INFO_DECL();
220 friend class AutoValidator;
237 ASPOSECPP_SHARED_API System::Details::VirtualizedIteratorBase<SharedPtr<System::Xml::Schema::XmlSchema>>*
CloneIterator()
const override;
247 #ifdef ASPOSE_GET_SHARED_MEMBERS
248 ASPOSECPP_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
257 ASPOSECPP_SHARED_API
void Reset()
override;
Forward declaration of Dictionary class.
Definition: dictionary.h:96
Interface of object providing enumerator on contained elements.
Definition: ienumerable.h:25
Interface of enumerator which can be used to iterate through some elements. Objects of this class sho...
Definition: ienumerator.h:63
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
Supports a simple iteration over a collection. This class cannot be inherited.
Definition: xml_schema_collection.h:206
bool MoveNext() override
Advances the enumerator to the next schema in the collection.
const SharedPtr< XmlSchema > & get_Current() const override
Returns the current XmlSchema in the collection.
void Dispose() override
Does nothing.
System::Details::VirtualizedIteratorBase< SharedPtr< System::Xml::Schema::XmlSchema > > * CloneIterator() const override
Clones current iterator.
Contains a cache of XML Schema definition language (XSD) and XML-Data Reduced (XDR) schemas.
Definition: xml_schema_collection.h:58
SharedPtr< XmlSchema > Add(const String &ns, const String &uri)
Adds the schema located by the given URL into the schema collection.
void Add(const SharedPtr< XmlSchemaCollection > &schema)
Adds all the namespaces defined in the given collection (including their associated schemas) to this ...
void CopyTo(const ArrayPtr< SharedPtr< XmlSchema > > &array, int32_t index)
Copies all the XmlSchema objects from this collection into the given array starting at the given inde...
SharedPtr< XmlSchema > Add(const SharedPtr< XmlSchema > &schema, const SharedPtr< System::Xml::XmlResolver > &resolver)
Adds the XmlSchema to the collection. The specified XmlResolver is used to resolve any external refer...
SharedPtr< XmlNameTable > get_NameTable()
Returns the default XmlNameTable used by the XmlSchemaCollection when loading new schemas.
bool Contains(const SharedPtr< XmlSchema > &schema)
Returns a value indicating whether the targetNamespace of the specified XmlSchema is in the collectio...
int32_t get_Count()
Returns the number of namespaces defined in this collection.
virtual ~XmlSchemaCollection()
System::Xml::Schema::ValidationEventHandler ValidationEventHandler
Sets an event handler for receiving information about the XDR and XML schema validation errors.
Definition: xml_schema_collection.h:81
SharedPtr< XmlSchema > idx_get(const String &ns)
Returns the XmlSchema associated with the given namespace URI.
SharedPtr< XmlSchema > Add(const SharedPtr< XmlSchema > &schema)
Adds the XmlSchema to the collection.
bool Contains(const String &ns)
Returns a value indicating whether a schema with the specified namespace is in the collection.
XmlSchemaCollection()
Initializes a new instance of the XmlSchemaCollection class.
SharedPtr< Collections::Generic::IEnumerator< SharedPtr< XmlSchema > > > GetEnumerator() override
Provides support for iteration over the collection of schemas.
XmlSchemaCollection(const SharedPtr< XmlNameTable > &nametable)
Initializes a new instance of the XmlSchemaCollection class with the specified XmlNameTable....
SharedPtr< XmlSchema > Add(const String &ns, const SharedPtr< XmlReader > &reader)
Adds the schema contained in the XmlReader to the schema collection.
SharedPtr< XmlSchema > Add(const String &ns, const SharedPtr< XmlReader > &reader, const SharedPtr< System::Xml::XmlResolver > &resolver)
Adds the schema contained in the XmlReader to the schema collection. The specified XmlResolver is use...
System::ExceptionWrapper< Details_XmlSchemaException > XmlSchemaException
Definition: xml_schema_exception.h:76
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
@ 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