Interface IModelSerializer
- Namespace
- NMF.Models.Repository
- Assembly
- NMF.Models.dll
Denotes a serializer component for model elements
public interface IModelSerializer
- Extension Methods
Methods
Deserialize(Stream, Uri, IModelRepository, bool)
Deserializes the given source into a model
Model Deserialize(Stream source, Uri modelUri, IModelRepository repository, bool addToRepository)
Parameters
source
Streamthe source stream
modelUri
Urithe URI of the model
repository
IModelRepositorythe repository in the context of which the model is deserialized
addToRepository
booltrue, if the model should be added to the repository, otherwise false
Returns
- Model
the deserialized model
Serialize(Model, Stream)
Serializes the given model to the given target stream
void Serialize(Model model, Stream target)
Parameters
SerializeFragment(ModelElement, Stream)
Serialize the given model element as a fragment to the given stream
void SerializeFragment(ModelElement element, Stream target)
Parameters
element
ModelElementthe model element to serialize
target
Streamthe target stream