Inherits System::Object.
Public Types | |
using | Ptr = SharedPtr< XmlSchemaSet > |
An alias for shared pointer to an instance of this class. More... | |
Public Types inherited from System::Object | |
typedef SmartPtr< Object > | ptr |
Alias for smart pointer type. More... | |
Public Member Functions | |
ASPOSECPP_SHARED_API SharedPtr< XmlNameTable > | get_NameTable () |
ASPOSECPP_SHARED_API bool | get_IsCompiled () |
ASPOSECPP_SHARED_API void | set_XmlResolver (const SharedPtr< System::Xml::XmlResolver > &value) |
ASPOSECPP_SHARED_API SharedPtr< XmlSchemaCompilationSettings > | get_CompilationSettings () |
ASPOSECPP_SHARED_API void | set_CompilationSettings (const SharedPtr< XmlSchemaCompilationSettings > &value) |
ASPOSECPP_SHARED_API int32_t | get_Count () |
ASPOSECPP_SHARED_API SharedPtr< XmlSchemaObjectTable > | get_GlobalElements () |
ASPOSECPP_SHARED_API SharedPtr< XmlSchemaObjectTable > | get_GlobalAttributes () |
ASPOSECPP_SHARED_API SharedPtr< XmlSchemaObjectTable > | get_GlobalTypes () |
ASPOSECPP_SHARED_API | XmlSchemaSet () |
Initializes a new instance of the XmlSchemaSet class. More... | |
ASPOSECPP_SHARED_API | XmlSchemaSet (const SharedPtr< XmlNameTable > &nameTable) |
template<class... Args> | |
void | ValidationEventHandler_add (Args... value) |
template<class... Args> | |
void | ValidationEventHandler_remove (Args... value) |
ASPOSECPP_SHARED_API SharedPtr< XmlSchema > | Add (String targetNamespace, const String &schemaUri) |
ASPOSECPP_SHARED_API SharedPtr< XmlSchema > | Add (String targetNamespace, const SharedPtr< XmlReader > &schemaDocument) |
ASPOSECPP_SHARED_API void | Add (const SharedPtr< XmlSchemaSet > &schemas) |
ASPOSECPP_SHARED_API SharedPtr< XmlSchema > | Add (const SharedPtr< XmlSchema > &schema) |
ASPOSECPP_SHARED_API SharedPtr< XmlSchema > | Remove (const SharedPtr< XmlSchema > &schema) |
ASPOSECPP_SHARED_API bool | RemoveRecursive (const SharedPtr< XmlSchema > &schemaToRemove) |
ASPOSECPP_SHARED_API bool | Contains (String targetNamespace) |
ASPOSECPP_SHARED_API bool | Contains (const SharedPtr< XmlSchema > &schema) |
ASPOSECPP_SHARED_API void | Compile () |
ASPOSECPP_SHARED_API SharedPtr< XmlSchema > | Reprocess (SharedPtr< XmlSchema > schema) |
ASPOSECPP_SHARED_API void | CopyTo (const ArrayPtr< SharedPtr< XmlSchema >> &schemas, int32_t index) |
ASPOSECPP_SHARED_API SharedPtr< Collections::Generic::IList< SharedPtr< XmlSchema > > > | Schemas () |
ASPOSECPP_SHARED_API SharedPtr< Collections::Generic::List< SharedPtr< XmlSchema > > > | Schemas (String targetNamespace) |
Public Member Functions inherited from System::Object | |
ASPOSECPP_SHARED_API | Object () |
Creates object. Initializes all internal data structures. More... | |
virtual ASPOSECPP_SHARED_API | ~Object () |
Destroys object. Frees all internal data structures. More... | |
ASPOSECPP_SHARED_API | Object (Object const &x) |
Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object & | operator= (Object const &x) |
Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object * | SharedRefAdded () |
Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | SharedRefRemovedSafe () |
Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | RemovedSharedRefs (int count) |
Decreases shared reference count by specified value. More... | |
Detail::SmartPtrCounter * | WeakRefAdded () |
Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
void | WeakRefRemoved () |
Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
Detail::SmartPtrCounter * | GetCounter () |
Gets reference counter data structure associated with the object. More... | |
int | SharedCount () const |
Gets current value of shared reference counter. More... | |
ASPOSECPP_SHARED_API void | Lock () |
Implements C# lock() statement locking. Call directly or use LockContext sentry object. More... | |
ASPOSECPP_SHARED_API void | Unlock () |
Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More... | |
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
Compares objects using C# Object.Equals semantics. More... | |
virtual ASPOSECPP_SHARED_API int32_t | GetHashCode () const |
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More... | |
virtual ASPOSECPP_SHARED_API String | ToString () const |
Analog of C# Object.ToString() method. Enables converting custom objects to string. More... | |
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More... | |
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
Gets actual type of object. Analog of C# System.Object.GetType() call. More... | |
virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More... | |
virtual ASPOSECPP_SHARED_API void | SetTemplateWeakPtr (uint32_t argument) |
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More... | |
virtual ASPOSECPP_SHARED_API bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
For internal purposes only. More... | |
template<> | |
bool | Equals (float const &objA, float const &objB) |
template<> | |
bool | Equals (double const &objA, double const &objB) |
template<> | |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
template<> | |
bool | ReferenceEquals (String const &str1, String const &str2) |
Additional Inherited Members | |
Static Public Member Functions inherited from System::Object | |
static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, std::nullptr_t) |
Reference-compares value type object with nullptr. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares reference type objects in C# style. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares value type objects in C# style. More... | |
static const TypeInfo & | Type () |
Implements C# typeof(System.Object) construct. More... | |
Contains a cache of XML Schema definition language (XSD) schemas.
An alias for shared pointer to an instance of this class.
ASPOSECPP_SHARED_API System::Xml::Schema::XmlSchemaSet::XmlSchemaSet | ( | ) |
Initializes a new instance of the XmlSchemaSet class.
ASPOSECPP_SHARED_API System::Xml::Schema::XmlSchemaSet::XmlSchemaSet | ( | const SharedPtr< XmlNameTable > & | nameTable | ) |
Initializes a new instance of the XmlSchemaSet class with the specified XmlNameTable.
nameTable | The XmlNameTable object to use. |
ArgumentNullException | The XmlNameTable object passed as a parameter is nullptr . |
ASPOSECPP_SHARED_API SharedPtr<XmlSchema> System::Xml::Schema::XmlSchemaSet::Add | ( | String | targetNamespace, |
const String & | schemaUri | ||
) |
Adds the XML Schema definition language (XSD) schema at the URL specified to the XmlSchemaSet.
targetNamespace | The schema targetNamespace value, or nullptr to use the targetNamespace specified in the schema. |
schemaUri | The URL that specifies the schema to load. |
nullptr
is returned and the appropriate validation event is raised. Otherwise, an XmlSchemaException is thrown. XmlSchemaException | The schema is not valid. |
ArgumentNullException | The URL passed as a parameter is nullptr or String::Empty. |
ASPOSECPP_SHARED_API SharedPtr<XmlSchema> System::Xml::Schema::XmlSchemaSet::Add | ( | String | targetNamespace, |
const SharedPtr< XmlReader > & | schemaDocument | ||
) |
Adds the XML Schema definition language (XSD) schema contained in the XmlReader to the XmlSchemaSet.
targetNamespace | The schema targetNamespace value, or nullptr to use the targetNamespace specified in the schema. |
schemaDocument | The XmlReader object. |
nullptr
is returned and the appropriate validation event is raised. Otherwise, an XmlSchemaException is thrown. XmlSchemaException | The schema is not valid. |
ArgumentNullException | The XmlReader object passed as a parameter is nullptr . |
ASPOSECPP_SHARED_API void System::Xml::Schema::XmlSchemaSet::Add | ( | const SharedPtr< XmlSchemaSet > & | schemas | ) |
Adds all the XML Schema definition language (XSD) schemas in the given XmlSchemaSet to the XmlSchemaSet.
schemas | The XmlSchemaSet object. |
XmlSchemaException | A schema in the XmlSchemaSet is not valid. |
ArgumentNullException | The XmlSchemaSet object passed as a parameter is nullptr . |
ASPOSECPP_SHARED_API SharedPtr<XmlSchema> System::Xml::Schema::XmlSchemaSet::Add | ( | const SharedPtr< XmlSchema > & | schema | ) |
Adds the given XmlSchema to the XmlSchemaSet.
schema | The XmlSchema object to add to the XmlSchemaSet. |
nullptr
is returned and the appropriate validation event is raised. Otherwise, an XmlSchemaException is thrown. XmlSchemaException | The schema is not valid. |
ArgumentNullException | The XmlSchema object passed as a parameter is nullptr . |
ASPOSECPP_SHARED_API void System::Xml::Schema::XmlSchemaSet::Compile | ( | ) |
Compiles the XML Schema definition language (XSD) schemas added to the XmlSchemaSet into one logical schema.
XmlSchemaException | An error occurred when validating and compiling the schemas in the XmlSchemaSet. |
ASPOSECPP_SHARED_API bool System::Xml::Schema::XmlSchemaSet::Contains | ( | String | targetNamespace | ) |
Indicates whether an XML Schema definition language (XSD) schema with the specified target namespace URI is in the XmlSchemaSet.
targetNamespace | The schema targetNamespace property. |
true
if a schema with the specified target namespace URI is in the XmlSchemaSet; otherwise, false
. ASPOSECPP_SHARED_API bool System::Xml::Schema::XmlSchemaSet::Contains | ( | const SharedPtr< XmlSchema > & | schema | ) |
Indicates whether the specified XML Schema definition language (XSD) XmlSchema object is in the XmlSchemaSet.
schema | The XmlSchema object. |
true
if the XmlSchema object is in the XmlSchemaSet; otherwise, false
. ArgumentNullException | The XmlSchemaSet passed as a parameter is nullptr . |
ASPOSECPP_SHARED_API void System::Xml::Schema::XmlSchemaSet::CopyTo | ( | const ArrayPtr< SharedPtr< XmlSchema >> & | schemas, |
int32_t | index | ||
) |
Copies all the XmlSchema objects from the XmlSchemaSet to the given array, starting at the given index.
schemas | The array to copy the objects to. |
index | The index in the array where copying will begin. |
ASPOSECPP_SHARED_API SharedPtr<XmlSchemaCompilationSettings> System::Xml::Schema::XmlSchemaSet::get_CompilationSettings | ( | ) |
Returns the XmlSchemaCompilationSettings for the XmlSchemaSet.
true
. ASPOSECPP_SHARED_API int32_t System::Xml::Schema::XmlSchemaSet::get_Count | ( | ) |
Returns the number of logical XML Schema definition language (XSD) schemas in the XmlSchemaSet.
ASPOSECPP_SHARED_API SharedPtr<XmlSchemaObjectTable> System::Xml::Schema::XmlSchemaSet::get_GlobalAttributes | ( | ) |
Returns all the global attributes in all the XML Schema definition language (XSD) schemas in the XmlSchemaSet.
ASPOSECPP_SHARED_API SharedPtr<XmlSchemaObjectTable> System::Xml::Schema::XmlSchemaSet::get_GlobalElements | ( | ) |
Returns all the global elements in all the XML Schema definition language (XSD) schemas in the XmlSchemaSet.
ASPOSECPP_SHARED_API SharedPtr<XmlSchemaObjectTable> System::Xml::Schema::XmlSchemaSet::get_GlobalTypes | ( | ) |
Returns all of the global simple and complex types in all the XML Schema definition language (XSD) schemas in the XmlSchemaSet.
ASPOSECPP_SHARED_API bool System::Xml::Schema::XmlSchemaSet::get_IsCompiled | ( | ) |
Returns a value that indicates whether the XML Schema definition language (XSD) schemas in the XmlSchemaSet have been compiled.
true
if the schemas in the XmlSchemaSet have been compiled since the last time a schema was added or removed from the XmlSchemaSet; otherwise, false
. ASPOSECPP_SHARED_API SharedPtr<XmlNameTable> System::Xml::Schema::XmlSchemaSet::get_NameTable | ( | ) |
Returns the default XmlNameTable used by the XmlSchemaSet when loading new XML Schema definition language (XSD) schemas.
ASPOSECPP_SHARED_API SharedPtr<XmlSchema> System::Xml::Schema::XmlSchemaSet::Remove | ( | const SharedPtr< XmlSchema > & | schema | ) |
Removes the specified XML Schema definition language (XSD) schema from the XmlSchemaSet.
schema | The XmlSchema object to remove from the XmlSchemaSet. |
nullptr
if the schema was not found in the XmlSchemaSet. XmlSchemaException | The schema is not a valid schema. |
ArgumentNullException | The XmlSchema passed as a parameter is nullptr . |
ASPOSECPP_SHARED_API bool System::Xml::Schema::XmlSchemaSet::RemoveRecursive | ( | const SharedPtr< XmlSchema > & | schemaToRemove | ) |
Removes the specified XML Schema definition language (XSD) schema and all the schemas it imports from the XmlSchemaSet.
schemaToRemove | The XmlSchema object to remove from the XmlSchemaSet. |
true
if the XmlSchema object and all its imports were successfully removed; otherwise, false
. ArgumentNullException | The XmlSchema passed as a parameter is nullptr . |
ASPOSECPP_SHARED_API SharedPtr<XmlSchema> System::Xml::Schema::XmlSchemaSet::Reprocess | ( | SharedPtr< XmlSchema > | schema | ) |
Reprocesses an XML Schema definition language (XSD) schema that already exists in the XmlSchemaSet.
schema | The schema to reprocess. |
nullptr
is returned and the appropriate validation event is raised. Otherwise, an XmlSchemaException is thrown. XmlSchemaException | The schema is not valid. |
ArgumentNullException | The XmlSchema object passed as a parameter is nullptr . |
ArgumentException | The XmlSchema object passed as a parameter does not already exist in the XmlSchemaSet. |
ASPOSECPP_SHARED_API SharedPtr<Collections::Generic::IList<SharedPtr<XmlSchema> > > System::Xml::Schema::XmlSchemaSet::Schemas | ( | ) |
Returns a collection of all the XML Schema definition language (XSD) schemas in the XmlSchemaSet.
ASPOSECPP_SHARED_API SharedPtr<Collections::Generic::List<SharedPtr<XmlSchema> > > System::Xml::Schema::XmlSchemaSet::Schemas | ( | String | targetNamespace | ) |
Returns a collection of all the XML Schema definition language (XSD) schemas in the XmlSchemaSet that belong to the given namespace.
targetNamespace | The schema targetNamespace property. |
ASPOSECPP_SHARED_API void System::Xml::Schema::XmlSchemaSet::set_CompilationSettings | ( | const SharedPtr< XmlSchemaCompilationSettings > & | value | ) |
Sets the XmlSchemaCompilationSettings for the XmlSchemaSet.
value | The value to set. |
ASPOSECPP_SHARED_API void System::Xml::Schema::XmlSchemaSet::set_XmlResolver | ( | const SharedPtr< System::Xml::XmlResolver > & | value | ) |
Sets the XmlResolver used to resolve namespaces or locations referenced in include and import elements of a schema.
value | The value to set. |
|
inline |
Adds an event handler for receiving information about XML Schema definition language (XSD) schema validation errors.
value | A bound or static method or ValidationEventHandler instance. |
|
inline |
Removes an event handler for receiving information about XML Schema definition language (XSD) schema validation errors.
value | A bound or static method or ValidationEventHandler instance. |