Class EcoreInterop
Denotes a static helper class for Ecore interoperability
public static class EcoreInterop
- Inheritance
-
EcoreInterop
- Inherited Members
Properties
Repository
Gets the repository with Ecore Interop types
public static IModelRepository Repository { get; }
Property Value
Methods
LoadPackageFromFile(string)
Loads an Ecore package from the given file
public static EPackage LoadPackageFromFile(string path)
Parameters
path
stringthe file path
Returns
- EPackage
The Ecore package
LoadPackageFromUri(Uri)
Loads an Ecore package from the given URI
public static EPackage LoadPackageFromUri(Uri uri)
Parameters
uri
Urithe URI
Returns
- EPackage
The Ecore package
Transform2Meta(EPackage, Action<IEPackage, INamespace>)
Transforms the given Ecore package to NMeta
public static INamespace Transform2Meta(EPackage package, Action<IEPackage, INamespace> additionalPackageRegistry = null)
Parameters
package
EPackagethe Ecore package
additionalPackageRegistry
Action<IEPackage, INamespace>a callback when new packages are found
Returns
- INamespace
An NMeta namespace
Transform2Meta(IEnumerable<EPackage>)
Transforms the given Ecore packages to NMeta
public static IEnumerable<INamespace> Transform2Meta(IEnumerable<EPackage> packages)
Parameters
packages
IEnumerable<EPackage>the Ecore packages
Returns
- IEnumerable<INamespace>
An NMeta namespace