Package org.bigraphs.framework.core
Class BigraphFileModelManagement.Load
java.lang.Object
org.bigraphs.framework.core.BigraphFileModelManagement.Load
- Enclosing class:
BigraphFileModelManagement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.eclipse.emf.ecore.EObject> bigraphInstanceModel(String filenameInstancemodel) Loads an instance model without validating it against its meta-model.static List<org.eclipse.emf.ecore.EObject> bigraphInstanceModel(String filenameMetamodel, String filenameInstancemodel) Loads an instance model and validates it against the given metamodel.static List<org.eclipse.emf.ecore.EObject> bigraphInstanceModel(org.eclipse.emf.ecore.EPackage metaModelPackageWithSignature, InputStream instanceModelInputStream) Loads an instance model and validates it against the given meta-model.static List<org.eclipse.emf.ecore.EObject> bigraphInstanceModel(org.eclipse.emf.ecore.EPackage metaModelPackageWithSignature, String filenameInstancemodel) Loads an instance model and validates it against the given metamodel.static org.eclipse.emf.ecore.EPackagebigraphMetaModel(InputStream inputStream) Loads the bigraph metamodel (*.ecore) by specifying an input stream.static org.eclipse.emf.ecore.EPackagebigraphMetaModel(InputStream inputStream, boolean validate) static org.eclipse.emf.ecore.EPackagebigraphMetaModel(String filePath) Loads the bigraph metamodel (*.ecore) by specifying a filename.static org.eclipse.emf.ecore.EPackagebigraphMetaModel(String filePath, boolean validate) static org.eclipse.emf.ecore.EPackageLoads the internal metamodel of a base bigraph that is declared in the bigraphMetaModel dependency.static org.eclipse.emf.ecore.EPackageLoads the internal metamodel of the base bigraphical signature that is declared in the bigraphMetaModel dependency.static List<org.eclipse.emf.ecore.EObject> signatureInstanceModel(String filename) static List<org.eclipse.emf.ecore.EObject> signatureInstanceModel(String metamodelFilename, String instanceModelFilename) static org.eclipse.emf.ecore.EPackagesignatureMetaModel(InputStream inputStream) static org.eclipse.emf.ecore.EPackagesignatureMetaModel(String metaModelFilename)
-
Constructor Details
-
Load
public Load()
-
-
Method Details
-
internalSignatureMetaMetaModel
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
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
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
EObjectresources 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 metamodelfilenameInstancemodel- the filename of the instance model- Returns:
- list of
EObjectresources 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 modelfilenameInstancemodel- the filename of the instance model- Returns:
- list of
EObjectresources 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 modelinstanceModelInputStream- the input stream of the instance model- Returns:
- list of
EObjectresources representing the bigraph - Throws:
IOException- if the file does not exist, or an exception is raised when loading the resource- See Also:
-