C# Class NMF.Serialization.Xmi.XmiSerializer

Inheritance: System.Xml.XmlSerializer
Mostra file Open project: NMFCode/NMF Class Usage Examples

Public Properties

Property Type Description
XMINamespace string
XMIPrefix string
XMLSchemaInstanceNamespace string
XMLSchemaInstancePrefix string

Public Methods

Method Description
XmiSerializer ( ) : System

Creates a new XmiSerializer with default settings and no preloaded types

XmiSerializer ( IEnumerable additionalTypes ) : System

Creates a new XmiSerializer with default settings

Types will be loaded with default settings

XmiSerializer ( XmlSerializationSettings settings ) : System

Creates a new XmiSerializer with the specified settings

XmiSerializer ( XmlSerializationSettings settings, IEnumerable additionalTypes ) : System

Creates a new XmiSerializer with the specified settings and the given preloaded types

The types will be loaded with the specified settings

Protected Methods

Method Description
CreateSerializationContext ( object root ) : XmlSerializationContext
GetElementTypeInfo ( XmlReader reader, IPropertySerializationInfo property ) : ITypeSerializationInfo
GoToPropertyContent ( System reader ) : bool
HandleUnknownAttribute ( XmlReader reader, object obj, ITypeSerializationInfo info, XmlSerializationContext context ) : void
InitializeElementProperties ( System reader, object &obj, ITypeSerializationInfo info, XmlSerializationContext context ) : void
InitializeTypeSerializationInfo ( ITypeSerializationInfo serializationInfo ) : void
OnUnknownElement ( NMF.Serialization.Xmi.UnknownElementEventArgs e ) : void
OverrideIdentifiedObject ( object obj, XmlReader reader, XmlSerializationContext context ) : bool
WriteBeginElement ( System writer, object obj, ITypeSerializationInfo info ) : void
WriteBeginRootElement ( System writer, object root, ITypeSerializationInfo info ) : void
WriteElementProperties ( System writer, object obj, ITypeSerializationInfo info, XmlSerializationContext context ) : void
WriteEndElement ( System writer, object obj, ITypeSerializationInfo info ) : void
WriteEndRootElement ( System writer, object root, ITypeSerializationInfo info ) : void
WriteIdentifiedObject ( XmlWriter writer, object obj, XmlIdentificationMode identificationMode, ITypeSerializationInfo info, XmlSerializationContext context ) : bool

Private Methods

Method Description
ReadElementFromProperty ( XmlReader reader, object obj, XmlSerializationContext context, IPropertySerializationInfo p ) : void
WriteTypeQualifier ( XmlWriter writer, ITypeSerializationInfo type ) : void

Method Details

CreateSerializationContext() protected method

protected CreateSerializationContext ( object root ) : XmlSerializationContext
root object
return XmlSerializationContext

GetElementTypeInfo() protected method

protected GetElementTypeInfo ( XmlReader reader, IPropertySerializationInfo property ) : ITypeSerializationInfo
reader System.Xml.XmlReader
property IPropertySerializationInfo
return ITypeSerializationInfo

GoToPropertyContent() protected method

protected GoToPropertyContent ( System reader ) : bool
reader System
return bool

HandleUnknownAttribute() protected method

protected HandleUnknownAttribute ( XmlReader reader, object obj, ITypeSerializationInfo info, XmlSerializationContext context ) : void
reader System.Xml.XmlReader
obj object
info ITypeSerializationInfo
context XmlSerializationContext
return void

InitializeElementProperties() protected method

protected InitializeElementProperties ( System reader, object &obj, ITypeSerializationInfo info, XmlSerializationContext context ) : void
reader System
obj object
info ITypeSerializationInfo
context XmlSerializationContext
return void

InitializeTypeSerializationInfo() protected method

protected InitializeTypeSerializationInfo ( ITypeSerializationInfo serializationInfo ) : void
serializationInfo ITypeSerializationInfo
return void

OnUnknownElement() protected method

protected OnUnknownElement ( NMF.Serialization.Xmi.UnknownElementEventArgs e ) : void
e NMF.Serialization.Xmi.UnknownElementEventArgs
return void

OverrideIdentifiedObject() protected method

protected OverrideIdentifiedObject ( object obj, XmlReader reader, XmlSerializationContext context ) : bool
obj object
reader System.Xml.XmlReader
context XmlSerializationContext
return bool

WriteBeginElement() protected method

protected WriteBeginElement ( System writer, object obj, ITypeSerializationInfo info ) : void
writer System
obj object
info ITypeSerializationInfo
return void

WriteBeginRootElement() protected method

protected WriteBeginRootElement ( System writer, object root, ITypeSerializationInfo info ) : void
writer System
root object
info ITypeSerializationInfo
return void

WriteElementProperties() protected method

protected WriteElementProperties ( System writer, object obj, ITypeSerializationInfo info, XmlSerializationContext context ) : void
writer System
obj object
info ITypeSerializationInfo
context XmlSerializationContext
return void

WriteEndElement() protected method

protected WriteEndElement ( System writer, object obj, ITypeSerializationInfo info ) : void
writer System
obj object
info ITypeSerializationInfo
return void

WriteEndRootElement() protected method

protected WriteEndRootElement ( System writer, object root, ITypeSerializationInfo info ) : void
writer System
root object
info ITypeSerializationInfo
return void

WriteIdentifiedObject() protected method

protected WriteIdentifiedObject ( XmlWriter writer, object obj, XmlIdentificationMode identificationMode, ITypeSerializationInfo info, XmlSerializationContext context ) : bool
writer XmlWriter
obj object
identificationMode XmlIdentificationMode
info ITypeSerializationInfo
context XmlSerializationContext
return bool

XmiSerializer() public method

Creates a new XmiSerializer with default settings and no preloaded types
public XmiSerializer ( ) : System
return System

XmiSerializer() public method

Creates a new XmiSerializer with default settings
Types will be loaded with default settings
public XmiSerializer ( IEnumerable additionalTypes ) : System
additionalTypes IEnumerable Set of types to preload into the serializer
return System

XmiSerializer() public method

Creates a new XmiSerializer with the specified settings
public XmiSerializer ( XmlSerializationSettings settings ) : System
settings XmlSerializationSettings Serializer-settings for the serializer. Can be null or Nothing in Visual Basic. In this case, the default settings will be used.
return System

XmiSerializer() public method

Creates a new XmiSerializer with the specified settings and the given preloaded types
The types will be loaded with the specified settings
public XmiSerializer ( XmlSerializationSettings settings, IEnumerable additionalTypes ) : System
settings XmlSerializationSettings The settings to use for the serializer
additionalTypes IEnumerable Set of types to load into the serializer
return System

Property Details

XMINamespace public_oe static_oe property

public static string XMINamespace
return string

XMIPrefix public_oe static_oe property

public static string XMIPrefix
return string

XMLSchemaInstanceNamespace public_oe static_oe property

public static string XMLSchemaInstanceNamespace
return string

XMLSchemaInstancePrefix public_oe static_oe property

public static string XMLSchemaInstancePrefix
return string