org.eclipse.viatra.query.tooling.core.targetplatform

## Interface ITargetPlatformMetamodelLoader

- All Known Implementing Classes:
    TargetPlatformMetamodelsIndex

      public interface ITargetPlatformMetamodelLoader

  Interface for loading metamodels from the target platform

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<java.lang.String>` | `listEPackages()` List the URIs of the available EPackages
    `org.eclipse.emf.codegen.ecore.genmodel.GenPackage` | `loadGenPackage(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, java.lang.String nsURI)` Load the GenPackage of the EPackage with the given ns URI
    `org.eclipse.emf.ecore.EPackage` | `loadPackage(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, java.lang.String nsURI)` Load the EPackage with the given ns URI

- - ### Method Detail

    - #### listEPackages

          java.util.List<java.lang.String> listEPackages()

      List the URIs of the available EPackages
      Returns:
        a list containing the ns URIs of the registered EPackages

    - #### loadPackage

          org.eclipse.emf.ecore.EPackage loadPackage(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
                                                     java.lang.String nsURI)

      Load the EPackage with the given ns URI
      Parameters:
        `nsURI` -
        `resourceSet` -
      Returns:
        The EPackage instance, or null if it could not be loaded

    - #### loadGenPackage

          org.eclipse.emf.codegen.ecore.genmodel.GenPackage loadGenPackage(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
                                                                           java.lang.String nsURI)

      Load the GenPackage of the EPackage with the given ns URI
      Parameters:
        `resourceSet` -
        `nsURI` -
      Returns:
        the registered GenPackage of the generated package