MetaDone
|
Public Member Functions | |
GrasylaImporter () | |
ConcreteModel | createConcreteModel (String ext, InputStream input) throws BadPreCondition, IOException |
Protected Member Functions | |
MetaModel | createMetamodel (Workspace workspace) throws BadPreCondition |
A simple grasyla importer.
Created to allow importing of grasyla scripts the same way as other models.
metadone.client.functions.importer.GrasylaImporter.GrasylaImporter | ( | ) |
Initializes this importer.
ConcreteModel metadone.client.functions.importer.GrasylaImporter.createConcreteModel | ( | String | ext, |
InputStream | input | ||
) | throws BadPreCondition, IOException |
Creates a concrete model for a given extension and contents.
The model is generated using getMetamodel(String) for the creation of the concrete model.
ext | The extension |
input | The contents of the file |
BadPreCondition | when the model couldn't be created |
IOException | when the input couldn't be parsed |
Implements metadone.client.functions.importer.Importer.
References metadone.metabusiness.Workspace.getBootstrap(), metadone.client.MainClientMetadone.getSingleton(), metadone.metabusiness.syntax.grasyla.GrasylaScript.getTarget(), metadone.client.MainClientMetadone.getWorkspace(), and metadone.client.parsers.grasyla.GrasylaParserUtil.parseCreate().
MetaModel metadone.client.functions.importer.GrasylaImporter.createMetamodel | ( | Workspace | workspace | ) | throws BadPreCondition [protected, virtual] |
Creates a new metamodel.
workspace | The workspace |
BadPreCondition |
Implements metadone.client.functions.importer.Importer.AbstractImporter.