Asposecpplib
System::Xml::Serialization::XmlSerializationReader Class Referenceabstract

Service class improving XmlReader experience. More...

Inherits System::Object.

Public Member Functions

void Initialize (System::SharedPtr< XmlReader > reader, System::SharedPtr< XmlSerializer > eventSource)
 Initializes XmlSerializationReader class. More...
 
- Public Member Functions inherited from System::Object
 Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ~Object ()
 Destroys object. Frees all internal data structures. More...
 
 Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 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...
 
void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual 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 bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Protected Member Functions

System::SharedPtr< XmlDocumentget_Document ()
 
System::SharedPtr< XmlReaderget_Reader ()
 
bool get_IsReturnValue ()
 
void set_IsReturnValue (bool value)
 
int32_t get_ReaderCount ()
 
bool get_DecodeName ()
 
void set_DecodeName (bool value)
 
 XmlSerializationReader ()
 
void AddTarget (String id, System::SharedPtr< Object > o)
 
Exception CreateCtorHasSecurityException (String typeName)
 
Exception CreateInaccessibleConstructorException (String typeName)
 
Exception CreateAbstractTypeException (String name, String ns)
 
Exception CreateInvalidCastException (const TypeInfo &type, System::SharedPtr< Object > value)
 
Exception CreateReadOnlyCollectionException (String name)
 
Exception CreateUnknownConstantException (String value, const TypeInfo &enumType)
 
Exception CreateUnknownNodeException ()
 
Exception CreateUnknownTypeException (System::SharedPtr< XmlQualifiedName > type)
 
void CheckReaderCount (int32_t &whileIterations, int32_t &readerCount)
 
template<typename T >
System::ArrayPtr< T > EnsureArrayIndex (System::ArrayPtr< T > a, int index, System::TypeInfo elementType)
 
template<typename T >
System::ArrayPtr< T > ShrinkArray (System::ArrayPtr< T > a, int length, TypeInfo elementType, bool isNullable)
 
void FixupArrayRefs (System::SharedPtr< Object > fixup)
 
int32_t GetArrayLength (String name, String ns)
 
bool GetNullAttr ()
 
System::SharedPtr< ObjectGetTarget (String id)
 
System::SharedPtr< XmlQualifiedNameGetXsiType ()
 
virtual void InitCallbacks ()=0
 
virtual void InitIDs ()=0
 
bool IsXmlnsAttribute (String name)
 
void ParseWsdlArrayType (System::SharedPtr< XmlAttribute > attr)
 
System::SharedPtr< XmlQualifiedNameReadElementQualifiedName ()
 
void ReadEndElement ()
 
bool ReadNull ()
 
System::SharedPtr< XmlQualifiedNameReadNullableQualifiedName ()
 
String ReadNullableString ()
 
bool ReadReference (String &fixupReference)
 
System::SharedPtr< ObjectReadReferencedElement ()
 
System::SharedPtr< ObjectReadReferencedElement (String name, String ns)
 
void ReadReferencedElements ()
 
System::SharedPtr< ObjectReadReferencingElement (String &fixupReference)
 
System::SharedPtr< ObjectReadReferencingElement (String name, String ns, String &fixupReference)
 
System::SharedPtr< ObjectReadReferencingElement (String name, String ns, bool elementCanBeType, String &fixupReference)
 
System::SharedPtr< IXmlSerializableReadSerializable (System::SharedPtr< IXmlSerializable > serializable)
 
System::SharedPtr< IXmlSerializableReadSerializable (System::SharedPtr< IXmlSerializable > serializable, bool wrappedAny)
 
String ReadString (String value)
 
System::SharedPtr< ObjectReadTypedPrimitive (System::SharedPtr< XmlQualifiedName > type)
 
System::SharedPtr< XmlNodeReadXmlNode (bool wrapped)
 
System::SharedPtr< XmlDocumentReadXmlDocument (bool wrapped)
 
void Referenced (System::SharedPtr< Object > o)
 
System::ArrayPtr< uint8_t > ToByteArrayBase64 (bool isNull)
 
System::ArrayPtr< uint8_t > ToByteArrayHex (bool isNull)
 
System::SharedPtr< XmlQualifiedNameToXmlQualifiedName (String value)
 
void UnknownAttribute (System::SharedPtr< Object > o, System::SharedPtr< XmlAttribute > attr)
 
void UnknownAttribute (System::SharedPtr< Object > o, System::SharedPtr< XmlAttribute > attr, String qnames)
 
void UnknownElement (System::SharedPtr< Object > o, System::SharedPtr< XmlElement > elem)
 
void UnknownElement (System::SharedPtr< Object > o, System::SharedPtr< XmlElement > elem, String qnames)
 
void UnknownNode (System::SharedPtr< Object > o)
 
void UnknownNode (System::SharedPtr< Object > o, String qnames)
 
void UnreferencedObject (String id, System::SharedPtr< Object > o)
 
String CollapseWhitespace (String value)
 
Exception CreateBadDerivationException (String xsdDerived, String nsDerived, String xsdBase, String nsBase, String clrDerived, String clrBase)
 
Exception CreateInvalidCastException (const TypeInfo &type, System::SharedPtr< Object > value, String id)
 
Exception CreateMissingIXmlSerializableType (String name, String ns, String clrType)
 
String ReadString (String value, bool trim)
 
System::SharedPtr< ObjectReadTypedNull (System::SharedPtr< XmlQualifiedName > type)
 
int64_t ToEnum (String value, System::SharedPtr< System::Collections::Generic::Dictionary< System::String, int64_t >> h, String typeName)
 

Static Protected Member Functions

static System::ArrayPtr< uint8_t > ToByteArrayBase64 (String value)
 
static System::ArrayPtr< uint8_t > ToByteArrayHex (String value)
 
static char16_t ToChar (String value)
 
static DateTime ToDate (String value)
 
static DateTime ToDateTime (String value)
 
static DateTime ToTime (String value)
 
static String ToXmlName (String value)
 
static String ToXmlNCName (String value)
 
static String ToXmlNmToken (String value)
 
static String ToXmlNmTokens (String value)
 
static System::SharedPtr< Reflection::AssemblyResolveDynamicAssembly (String assemblyFullName)
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
- 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 TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 

Detailed Description

Service class improving XmlReader experience.

Constructor & Destructor Documentation

◆ XmlSerializationReader()

System::Xml::Serialization::XmlSerializationReader::XmlSerializationReader ( )
protected

Member Function Documentation

◆ AddTarget()

void System::Xml::Serialization::XmlSerializationReader::AddTarget ( String  id,
System::SharedPtr< Object o 
)
protected

◆ CheckReaderCount()

void System::Xml::Serialization::XmlSerializationReader::CheckReaderCount ( int32_t &  whileIterations,
int32_t &  readerCount 
)
protected

◆ CollapseWhitespace()

String System::Xml::Serialization::XmlSerializationReader::CollapseWhitespace ( String  value)
protected

◆ CreateAbstractTypeException()

Exception System::Xml::Serialization::XmlSerializationReader::CreateAbstractTypeException ( String  name,
String  ns 
)
protected

◆ CreateBadDerivationException()

Exception System::Xml::Serialization::XmlSerializationReader::CreateBadDerivationException ( String  xsdDerived,
String  nsDerived,
String  xsdBase,
String  nsBase,
String  clrDerived,
String  clrBase 
)
protected

◆ CreateCtorHasSecurityException()

Exception System::Xml::Serialization::XmlSerializationReader::CreateCtorHasSecurityException ( String  typeName)
protected

◆ CreateInaccessibleConstructorException()

Exception System::Xml::Serialization::XmlSerializationReader::CreateInaccessibleConstructorException ( String  typeName)
protected

◆ CreateInvalidCastException() [1/2]

Exception System::Xml::Serialization::XmlSerializationReader::CreateInvalidCastException ( const TypeInfo type,
System::SharedPtr< Object value 
)
protected

◆ CreateInvalidCastException() [2/2]

Exception System::Xml::Serialization::XmlSerializationReader::CreateInvalidCastException ( const TypeInfo type,
System::SharedPtr< Object value,
String  id 
)
protected

◆ CreateMissingIXmlSerializableType()

Exception System::Xml::Serialization::XmlSerializationReader::CreateMissingIXmlSerializableType ( String  name,
String  ns,
String  clrType 
)
protected

◆ CreateReadOnlyCollectionException()

Exception System::Xml::Serialization::XmlSerializationReader::CreateReadOnlyCollectionException ( String  name)
protected

◆ CreateUnknownConstantException()

Exception System::Xml::Serialization::XmlSerializationReader::CreateUnknownConstantException ( String  value,
const TypeInfo enumType 
)
protected

◆ CreateUnknownNodeException()

Exception System::Xml::Serialization::XmlSerializationReader::CreateUnknownNodeException ( )
protected

◆ CreateUnknownTypeException()

Exception System::Xml::Serialization::XmlSerializationReader::CreateUnknownTypeException ( System::SharedPtr< XmlQualifiedName type)
protected

◆ EnsureArrayIndex()

template<typename T >
System::ArrayPtr<T> System::Xml::Serialization::XmlSerializationReader::EnsureArrayIndex ( System::ArrayPtr< T >  a,
int  index,
System::TypeInfo  elementType 
)
inlineprotected

◆ FixupArrayRefs()

void System::Xml::Serialization::XmlSerializationReader::FixupArrayRefs ( System::SharedPtr< Object fixup)
protected

◆ get_DecodeName()

bool System::Xml::Serialization::XmlSerializationReader::get_DecodeName ( )
protected

◆ get_Document()

System::SharedPtr<XmlDocument> System::Xml::Serialization::XmlSerializationReader::get_Document ( )
protected

◆ get_IsReturnValue()

bool System::Xml::Serialization::XmlSerializationReader::get_IsReturnValue ( )
protected

◆ get_Reader()

System::SharedPtr<XmlReader> System::Xml::Serialization::XmlSerializationReader::get_Reader ( )
protected

◆ get_ReaderCount()

int32_t System::Xml::Serialization::XmlSerializationReader::get_ReaderCount ( )
protected

◆ GetArrayLength()

int32_t System::Xml::Serialization::XmlSerializationReader::GetArrayLength ( String  name,
String  ns 
)
protected

◆ GetNullAttr()

bool System::Xml::Serialization::XmlSerializationReader::GetNullAttr ( )
protected

◆ GetTarget()

System::SharedPtr<Object> System::Xml::Serialization::XmlSerializationReader::GetTarget ( String  id)
protected

◆ GetXsiType()

System::SharedPtr<XmlQualifiedName> System::Xml::Serialization::XmlSerializationReader::GetXsiType ( )
protected

◆ InitCallbacks()

virtual void System::Xml::Serialization::XmlSerializationReader::InitCallbacks ( )
protectedpure virtual

◆ Initialize()

void System::Xml::Serialization::XmlSerializationReader::Initialize ( System::SharedPtr< XmlReader reader,
System::SharedPtr< XmlSerializer eventSource 
)

Initializes XmlSerializationReader class.

Parameters
readerReader to use.
eventSourceEvent source to use.

◆ InitIDs()

virtual void System::Xml::Serialization::XmlSerializationReader::InitIDs ( )
protectedpure virtual

◆ IsXmlnsAttribute()

bool System::Xml::Serialization::XmlSerializationReader::IsXmlnsAttribute ( String  name)
protected

◆ ParseWsdlArrayType()

void System::Xml::Serialization::XmlSerializationReader::ParseWsdlArrayType ( System::SharedPtr< XmlAttribute attr)
protected

◆ ReadElementQualifiedName()

System::SharedPtr<XmlQualifiedName> System::Xml::Serialization::XmlSerializationReader::ReadElementQualifiedName ( )
protected

◆ ReadEndElement()

void System::Xml::Serialization::XmlSerializationReader::ReadEndElement ( )
protected

◆ ReadNull()

bool System::Xml::Serialization::XmlSerializationReader::ReadNull ( )
protected

◆ ReadNullableQualifiedName()

System::SharedPtr<XmlQualifiedName> System::Xml::Serialization::XmlSerializationReader::ReadNullableQualifiedName ( )
protected

◆ ReadNullableString()

String System::Xml::Serialization::XmlSerializationReader::ReadNullableString ( )
protected

◆ ReadReference()

bool System::Xml::Serialization::XmlSerializationReader::ReadReference ( String fixupReference)
protected

◆ ReadReferencedElement() [1/2]

System::SharedPtr<Object> System::Xml::Serialization::XmlSerializationReader::ReadReferencedElement ( )
protected

◆ ReadReferencedElement() [2/2]

System::SharedPtr<Object> System::Xml::Serialization::XmlSerializationReader::ReadReferencedElement ( String  name,
String  ns 
)
protected

◆ ReadReferencedElements()

void System::Xml::Serialization::XmlSerializationReader::ReadReferencedElements ( )
protected

◆ ReadReferencingElement() [1/3]

System::SharedPtr<Object> System::Xml::Serialization::XmlSerializationReader::ReadReferencingElement ( String fixupReference)
protected

◆ ReadReferencingElement() [2/3]

System::SharedPtr<Object> System::Xml::Serialization::XmlSerializationReader::ReadReferencingElement ( String  name,
String  ns,
bool  elementCanBeType,
String fixupReference 
)
protected

◆ ReadReferencingElement() [3/3]

System::SharedPtr<Object> System::Xml::Serialization::XmlSerializationReader::ReadReferencingElement ( String  name,
String  ns,
String fixupReference 
)
protected

◆ ReadSerializable() [1/2]

System::SharedPtr<IXmlSerializable> System::Xml::Serialization::XmlSerializationReader::ReadSerializable ( System::SharedPtr< IXmlSerializable serializable)
protected

◆ ReadSerializable() [2/2]

System::SharedPtr<IXmlSerializable> System::Xml::Serialization::XmlSerializationReader::ReadSerializable ( System::SharedPtr< IXmlSerializable serializable,
bool  wrappedAny 
)
protected

◆ ReadString() [1/2]

String System::Xml::Serialization::XmlSerializationReader::ReadString ( String  value)
protected

◆ ReadString() [2/2]

String System::Xml::Serialization::XmlSerializationReader::ReadString ( String  value,
bool  trim 
)
protected

◆ ReadTypedNull()

System::SharedPtr<Object> System::Xml::Serialization::XmlSerializationReader::ReadTypedNull ( System::SharedPtr< XmlQualifiedName type)
protected

◆ ReadTypedPrimitive()

System::SharedPtr<Object> System::Xml::Serialization::XmlSerializationReader::ReadTypedPrimitive ( System::SharedPtr< XmlQualifiedName type)
protected

◆ ReadXmlDocument()

System::SharedPtr<XmlDocument> System::Xml::Serialization::XmlSerializationReader::ReadXmlDocument ( bool  wrapped)
protected

◆ ReadXmlNode()

System::SharedPtr<XmlNode> System::Xml::Serialization::XmlSerializationReader::ReadXmlNode ( bool  wrapped)
protected

◆ Referenced()

void System::Xml::Serialization::XmlSerializationReader::Referenced ( System::SharedPtr< Object o)
protected

◆ ResolveDynamicAssembly()

static System::SharedPtr<Reflection::Assembly> System::Xml::Serialization::XmlSerializationReader::ResolveDynamicAssembly ( String  assemblyFullName)
staticprotected

◆ set_DecodeName()

void System::Xml::Serialization::XmlSerializationReader::set_DecodeName ( bool  value)
protected

◆ set_IsReturnValue()

void System::Xml::Serialization::XmlSerializationReader::set_IsReturnValue ( bool  value)
protected

◆ ShrinkArray()

template<typename T >
System::ArrayPtr<T> System::Xml::Serialization::XmlSerializationReader::ShrinkArray ( System::ArrayPtr< T >  a,
int  length,
TypeInfo  elementType,
bool  isNullable 
)
inlineprotected

◆ ToByteArrayBase64() [1/2]

System::ArrayPtr<uint8_t> System::Xml::Serialization::XmlSerializationReader::ToByteArrayBase64 ( bool  isNull)
protected

◆ ToByteArrayBase64() [2/2]

static System::ArrayPtr<uint8_t> System::Xml::Serialization::XmlSerializationReader::ToByteArrayBase64 ( String  value)
staticprotected

◆ ToByteArrayHex() [1/2]

System::ArrayPtr<uint8_t> System::Xml::Serialization::XmlSerializationReader::ToByteArrayHex ( bool  isNull)
protected

◆ ToByteArrayHex() [2/2]

static System::ArrayPtr<uint8_t> System::Xml::Serialization::XmlSerializationReader::ToByteArrayHex ( String  value)
staticprotected

◆ ToChar()

static char16_t System::Xml::Serialization::XmlSerializationReader::ToChar ( String  value)
staticprotected

◆ ToDate()

static DateTime System::Xml::Serialization::XmlSerializationReader::ToDate ( String  value)
staticprotected

◆ ToDateTime()

static DateTime System::Xml::Serialization::XmlSerializationReader::ToDateTime ( String  value)
staticprotected

◆ ToEnum()

int64_t System::Xml::Serialization::XmlSerializationReader::ToEnum ( String  value,
System::SharedPtr< System::Collections::Generic::Dictionary< System::String, int64_t >>  h,
String  typeName 
)
protected

◆ ToTime()

static DateTime System::Xml::Serialization::XmlSerializationReader::ToTime ( String  value)
staticprotected

◆ ToXmlName()

static String System::Xml::Serialization::XmlSerializationReader::ToXmlName ( String  value)
staticprotected

◆ ToXmlNCName()

static String System::Xml::Serialization::XmlSerializationReader::ToXmlNCName ( String  value)
staticprotected

◆ ToXmlNmToken()

static String System::Xml::Serialization::XmlSerializationReader::ToXmlNmToken ( String  value)
staticprotected

◆ ToXmlNmTokens()

static String System::Xml::Serialization::XmlSerializationReader::ToXmlNmTokens ( String  value)
staticprotected

◆ ToXmlQualifiedName()

System::SharedPtr<XmlQualifiedName> System::Xml::Serialization::XmlSerializationReader::ToXmlQualifiedName ( String  value)
protected

◆ UnknownAttribute() [1/2]

void System::Xml::Serialization::XmlSerializationReader::UnknownAttribute ( System::SharedPtr< Object o,
System::SharedPtr< XmlAttribute attr 
)
protected

◆ UnknownAttribute() [2/2]

void System::Xml::Serialization::XmlSerializationReader::UnknownAttribute ( System::SharedPtr< Object o,
System::SharedPtr< XmlAttribute attr,
String  qnames 
)
protected

◆ UnknownElement() [1/2]

void System::Xml::Serialization::XmlSerializationReader::UnknownElement ( System::SharedPtr< Object o,
System::SharedPtr< XmlElement elem 
)
protected

◆ UnknownElement() [2/2]

void System::Xml::Serialization::XmlSerializationReader::UnknownElement ( System::SharedPtr< Object o,
System::SharedPtr< XmlElement elem,
String  qnames 
)
protected

◆ UnknownNode() [1/2]

void System::Xml::Serialization::XmlSerializationReader::UnknownNode ( System::SharedPtr< Object o)
protected

◆ UnknownNode() [2/2]

void System::Xml::Serialization::XmlSerializationReader::UnknownNode ( System::SharedPtr< Object o,
String  qnames 
)
protected

◆ UnreferencedObject()

void System::Xml::Serialization::XmlSerializationReader::UnreferencedObject ( String  id,
System::SharedPtr< Object o 
)
protected