Method | Description | |
---|---|---|
Deserialize ( Stream source, |
||
ModelSerializer ( ) : System | ||
ModelSerializer ( XmlSerializationSettings settings ) : System | ||
ModelSerializer ( XmlSerializationSettings settings, IEnumerable |
||
Serialize ( Model model, Stream target ) : void | ||
Serialize ( object obj, |
||
SerializeFragment ( ModelElement element, Stream target ) : void |
Method | Description | |
---|---|---|
CreateModelForRoot ( object root ) : Model | ||
CreateSerializationContext ( object root ) : XmlSerializationContext | ||
GetAttributeValue ( object value, ITypeSerializationInfo info, XmlSerializationContext context ) : string | ||
InitializeElementProperties ( XmlReader reader, object &obj, ITypeSerializationInfo info, XmlSerializationContext context ) : void | ||
IsPropertyElement ( XmlReader reader, IPropertySerializationInfo p ) : bool | ||
SelectRoot ( object graph, bool fragment ) : object |
Gets the serialization root element
|
|
WriteElementProperties ( |
||
WriteIdentifiedObject ( |
Method | Description | |
---|---|---|
MakeShortUri ( |
protected CreateModelForRoot ( object root ) : Model | ||
root | object | |
return | Model |
protected CreateSerializationContext ( object root ) : XmlSerializationContext | ||
root | object | |
return | XmlSerializationContext |
public Deserialize ( Stream source, |
||
source | Stream | |
modelUri | ||
repository | IModelRepository | |
addToRepository | bool | |
return | Model |
protected GetAttributeValue ( object value, ITypeSerializationInfo info, XmlSerializationContext context ) : string | ||
value | object | |
info | ITypeSerializationInfo | |
context | XmlSerializationContext | |
return | string |
protected InitializeElementProperties ( XmlReader reader, object &obj, ITypeSerializationInfo info, XmlSerializationContext context ) : void | ||
reader | XmlReader | |
obj | object | |
info | ITypeSerializationInfo | |
context | XmlSerializationContext | |
return | void |
protected IsPropertyElement ( XmlReader reader, IPropertySerializationInfo p ) : bool | ||
reader | XmlReader | |
p | IPropertySerializationInfo | |
return | bool |
public ModelSerializer ( XmlSerializationSettings settings ) : System | ||
settings | XmlSerializationSettings | |
return | System |
public ModelSerializer ( XmlSerializationSettings settings, IEnumerable |
||
settings | XmlSerializationSettings | |
knownTypes | IEnumerable |
|
return | System |
protected SelectRoot ( object graph, bool fragment ) : object | ||
graph | object | The base element that should be serialized |
fragment | bool | A value indicating whether only a fragment should be written |
return | object |
public Serialize ( Model model, Stream target ) : void | ||
model | Model | |
target | Stream | |
return | void |
public Serialize ( object obj, |
||
obj | object | |
writer | ||
property | IPropertySerializationInfo | |
writeInstance | bool | |
identificationMode | XmlIdentificationMode | |
context | XmlSerializationContext | |
return | void |
public SerializeFragment ( ModelElement element, Stream target ) : void | ||
element | ModelElement | |
target | Stream | |
return | void |
protected WriteElementProperties ( |
||
writer | ||
obj | object | |
info | ITypeSerializationInfo | |
context | XmlSerializationContext | |
return | void |
protected WriteIdentifiedObject ( |
||
writer | ||
obj | object | |
identificationMode | XmlIdentificationMode | |
info | ITypeSerializationInfo | |
context | XmlSerializationContext | |
return | bool |