Class MetaRepository
- Namespace
- NMF.Models.Repository
- Assembly
- NMF.Models.dll
Denotes the repository with the metamodels contained in the loaded assemblies
public sealed class MetaRepository : IModelRepository
- Inheritance
-
MetaRepository
- Implements
- Inherited Members
Properties
Instance
Gets the instance
public static MetaRepository Instance { get; }
Property Value
Models
Gets the collection of models managed by this repository
public ModelCollection Models { get; }
Property Value
Serializer
Gets the serializer used for the deserialization of the models
public ModelSerializer Serializer { get; }
Property Value
Methods
Resolve(string)
public IModelElement Resolve(string uriString)
Parameters
uriStringstring
Returns
Resolve(Uri)
public IModelElement Resolve(Uri uri)
Parameters
uriUri
Returns
ResolveClass(Type)
Resolves the given system type into an NMeta type instance
public IType ResolveClass(Type systemType)
Parameters
systemTypeTypeThe system type
Returns
- IType
The type object
Exceptions
- ArgumentNullException
Thrown if systemtype is null
ResolveType(string)
Resolves the given uri into a type
public IType ResolveType(string uriString)
Parameters
uriStringstringThe absolute uri
Returns
- IType
The type object