次の方法で共有


DslDefinitionModelSerializationHelperBase Class

Definition

Helper class for serializing and deserializing DslDefinitionModel models.

public ref class DslDefinitionModelSerializationHelperBase abstract
public abstract class DslDefinitionModelSerializationHelperBase
type DslDefinitionModelSerializationHelperBase = class
Public MustInherit Class DslDefinitionModelSerializationHelperBase
Inheritance
DslDefinitionModelSerializationHelperBase
Derived

Constructors

DslDefinitionModelSerializationHelperBase()

Constructor

Methods

CheckForOrphanedShapes(Diagram, SerializationResult)

Go through the diagram to find all shapes that are not connected to a model element. Some of them may be by design, the rest are out-of-sync shapes. We want to make sure that all out-of-sync shapes are given a chance to fix themselves up, or post proper warning/error messages.

CheckVersion(SerializationContext, XmlReader)

Checks the version of the file being read.

CreateModelHelper(Partition)

Helper method to create and initialize a new DslLibrary.

GetDirectory(Store)

Return the directory of serializers to use

GetMonikerResolvers(Store)

This method returns the moniker resolvers for each of the domain models in the store

GetSerializedModelString(DslLibrary, Encoding)

Return the model in XML format

InitializeSerialization(Store)

Ensure that moniker resolvers and domain element serializers are installed properly on the given store, so that deserialization can be carried out correctly.

InitializeSerializationContext(Partition, SerializationContext, Boolean)
LoadModel(SerializationResult, Partition, String, ISchemaResolver, ValidationController, ISerializerLocator, Stream)
LoadModel(SerializationResult, Partition, String, ISchemaResolver, ValidationController, ISerializerLocator)

Loads a DslLibrary instance.

LoadModel(SerializationResult, Store, String, ISchemaResolver, ValidationController, ISerializerLocator)

Loads a DslLibrary instance into the default partition of the given store.

LoadModel(Store, String, ISchemaResolver, ValidationController, ISerializerLocator)

Loads a DslLibrary instance into the default partition of the given store, and ignore serialization result.

LoadModelAndDiagram(SerializationResult, Partition, String, Partition, String, ISchemaResolver, ValidationController, ISerializerLocator)

Loads a DslLibrary instance and its associated diagram file.

LoadModelAndDiagram(SerializationResult, Store, String, String, ISchemaResolver, ValidationController, ISerializerLocator)

Loads a DslLibrary instance and its associated diagram file into the default partition of the given store.

LoadModelAndDiagram(Store, String, String, ISchemaResolver, ValidationController, ISerializerLocator)

Loads a DslLibrary instance and its associated diagram file into the default partition of the given store, and ignore serialization result.

OnPostLoadModel(SerializationResult, Partition, String, DslLibrary)

Customize Model Loading.

ReadExtensions(SerializationContext, ModelElement, XmlReader)

Read any extension data written inside this XML element

ReadRootElement(SerializationContext, ModelElement, XmlReader, ISchemaResolver)

Read an element from the root of XML.

ResolveSchema(String, XmlSchemaSet, ISchemaResolver, XmlReader, SerializationContext)

Attempts to resolve the supplied schema namespace

SaveModel(SerializationResult, DslLibrary, String, Boolean)

Saves the given model to the given file, with default encoding (UTF-8).

SaveModel(SerializationResult, DslLibrary, String, Encoding, Boolean)

Saves the given model root to the given file, with specified encoding.

SaveModel(SerializationResult, DslLibrary, String)

Saves the given model root to the given file, with default encoding (UTF-8), and optional properties with default value will not be written out.

TryCreateValidatingReader(ISchemaResolver, XmlReader, SerializationContext)

Attempts to return a validating XML reader

TryGetEncoding(XmlReader, Encoding)

Attempts to return the encoding used by the reader.

WriteExtensions(SerializationContext, ModelElement, XmlWriter)

Write extension element data inside the current XML element

WriteRootElement(SerializationContext, ModelElement, XmlWriter)

Write an element as the root of XML.

Applies to