Class BigraphFileModelManagement.Load

java.lang.Object
org.bigraphs.framework.core.BigraphFileModelManagement.Load
Enclosing class:
BigraphFileModelManagement

public static class BigraphFileModelManagement.Load extends Object
  • Constructor Details

    • Load

      public Load()
  • Method Details

    • internalSignatureMetaMetaModel

      public static org.eclipse.emf.ecore.EPackage internalSignatureMetaMetaModel() throws IOException
      Loads the internal metamodel of the base bigraphical signature that is declared in the bigraphMetaModel dependency.
      Returns:
      the base signature metamodel as EPackage
      Throws:
      IOException - if the model could not be loaded from the bigraphMetaModel dependency
    • internalBigraphMetaMetaModel

      public static org.eclipse.emf.ecore.EPackage internalBigraphMetaMetaModel() throws IOException
      Loads the internal metamodel of a base bigraph that is declared in the bigraphMetaModel dependency.
      Returns:
      the base bigraph metamodel as EPackage
      Throws:
      IOException - if the model could not be loaded from the bigraphMetaModel dependency
    • signatureMetaModel

      public static org.eclipse.emf.ecore.EPackage signatureMetaModel(String metaModelFilename) throws IOException
      Throws:
      IOException
    • signatureMetaModel

      public static org.eclipse.emf.ecore.EPackage signatureMetaModel(InputStream inputStream) throws IOException
      Throws:
      IOException
    • signatureInstanceModel

      public static List<org.eclipse.emf.ecore.EObject> signatureInstanceModel(String filename) throws IOException
      Throws:
      IOException
    • signatureInstanceModel

      public static List<org.eclipse.emf.ecore.EObject> signatureInstanceModel(String metamodelFilename, String instanceModelFilename) throws IOException
      Throws:
      IOException
    • bigraphMetaModel

      public static org.eclipse.emf.ecore.EPackage bigraphMetaModel(String filePath) throws IOException
      Loads the bigraph metamodel (*.ecore) by specifying a filename.
      Parameters:
      filePath - the filename of the bigraph metamodel to load
      Returns:
      the loaded bigraph metamodel
      Throws:
      IOException - if the file does not exist
    • bigraphMetaModel

      public static org.eclipse.emf.ecore.EPackage bigraphMetaModel(String filePath, boolean validate) throws IOException
      Throws:
      IOException
    • bigraphMetaModel

      public static org.eclipse.emf.ecore.EPackage bigraphMetaModel(InputStream inputStream) throws IOException
      Loads the bigraph metamodel (*.ecore) by specifying an input stream.
      Parameters:
      inputStream - an input stream of the bigraph metamodel to load
      Returns:
      the loaded bigraph metamodel
      Throws:
      IOException - if the model could not be loaded
    • bigraphMetaModel

      public static org.eclipse.emf.ecore.EPackage bigraphMetaModel(InputStream inputStream, boolean validate) throws IOException
      Throws:
      IOException
    • bigraphInstanceModel

      public static List<org.eclipse.emf.ecore.EObject> bigraphInstanceModel(String filenameInstancemodel) throws IOException
      Loads an instance model without validating it against its meta-model.
      Parameters:
      filenameInstancemodel - the file path of the instance model
      Returns:
      list of EObject resources representing the bigraph
      Throws:
      IOException - if the file doesn't exists, or an exception is raised when loading the resource
      See Also:
    • bigraphInstanceModel

      public static List<org.eclipse.emf.ecore.EObject> bigraphInstanceModel(String filenameMetamodel, String filenameInstancemodel) throws IOException
      Loads an instance model and validates it against the given metamodel.
      Parameters:
      filenameMetamodel - the filename of the metamodel
      filenameInstancemodel - the filename of the instance model
      Returns:
      list of EObject resources representing the bigraph
      Throws:
      IOException - if the file does not exist, or an exception is raised when loading the resource
      See Also:
    • bigraphInstanceModel

      public static List<org.eclipse.emf.ecore.EObject> bigraphInstanceModel(org.eclipse.emf.ecore.EPackage metaModelPackageWithSignature, String filenameInstancemodel) throws IOException
      Loads an instance model and validates it against the given metamodel.
      Parameters:
      metaModelPackageWithSignature - the metamodel object of the instance model
      filenameInstancemodel - the filename of the instance model
      Returns:
      list of EObject resources representing the bigraph
      Throws:
      IOException - if the file does not exist, or an exception is raised when loading the resource
      See Also:
    • bigraphInstanceModel

      public static List<org.eclipse.emf.ecore.EObject> bigraphInstanceModel(org.eclipse.emf.ecore.EPackage metaModelPackageWithSignature, InputStream instanceModelInputStream) throws IOException
      Loads an instance model and validates it against the given meta-model.
      Parameters:
      metaModelPackageWithSignature - the metamodel of the instance model
      instanceModelInputStream - the input stream of the instance model
      Returns:
      list of EObject resources representing the bigraph
      Throws:
      IOException - if the file does not exist, or an exception is raised when loading the resource
      See Also: