MetaDone
|
Public Member Functions | |
MetaModel | getOmegaMetaModel () |
ConcreteModel | getOmegaModel () |
MetaModel | getMainMetaModel () |
ConcreteModel | getMainModel () |
MetaObject | getClassMetaObject () throws BadPreCondition |
MetaObject | getClassCommonMetaObject () throws BadPreCondition |
MetaModel | getClassMetaModel () throws BadPreCondition |
MetaModel | getClassCommonMetaModel () throws BadPreCondition |
MetaProperty<?> | getClassMetaProperty () throws BadPreCondition |
MetaRole | getClassMetaRole () throws BadPreCondition |
void | dispose () |
public< B > B | getBootstrap (Class< B > boot) |
ScriptEvaluator | getScriptEvaluator (ProgLanguage lang) |
void | save () |
String | getName () |
MetadoneEvents | getEventManager () |
UndoRedoManager | getUndoRedo () |
Public Attributes | |
final String | SEPARATOR = "@" |
The workspace.
This is a project in metabusiness.
It contains the OMEGA models which are the roots of all the models. It also contains the MAIN models which are used by the user. There are also methods to access bootstrapped elements.
void metadone.metabusiness.Workspace.dispose | ( | ) |
Releases the resources used by this workspace.
Implemented in metadone.metabusiness.impl.Workspace_impl.
Referenced by metadone.client.actions.CloseProjectAction.closeProject().
public<B> B metadone.metabusiness.Workspace.getBootstrap | ( | Class< B > | boot | ) |
Gets a bootstrap object.
The workspace can contain bootstrapped objects which are defined in the sub-packages of metabusiness. This method retrieves the exposed bootstrap elements by this workspace. By convention, these classes' names start with Bootstrap
.
The main bootstrap classes are: the BootstrapGrasyla and the BootstrapAnnex.
Workspace ws; BootstrapGrasyla grasyla = ws.getBootstrap(BootstrapGrasyla.class);
boot | The bootstrap class |
IllegalArgumentException | when there is no matching class |
Implemented in metadone.metabusiness.impl.Workspace_impl.
Referenced by metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.AbstractGrasylaView(), metadone.client.actions.VisualizeMetaModelAction.actionPerformed(), metadone.client.actions.Test3Action.actionPerformed(), metadone.client.actions.OpenGrasylaScriptAction.actionPerformed(), metadone.metabusiness.syntax.grasyla.BootstrapGrasyla.bootstrap_grasyla(), metadone.client.grasyla2.GrasylaInterpreter.configure(), metadone.client.grasyla2.GrasylaEngineFactory.configure(), metadone.client.actions.Test4Action.configureGrasyla(), metadone.client.functions.importer.GrasylaImporter.createConcreteModel(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.delete(), metadone.client.parsers.grasyla.AST_expression.delete_static(), metadone.client.parsers.grasyla.AST_equation.delete_static(), metadone.client.parsers.grasyla.AST_script.generate_update(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.getAttributeCOValue(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.getAttributeObjects(), metadone.client.grasyla2.GrasylaEngineFactory.getBuilders(), metadone.metabusiness.syntax.grasyla.GrasylaScript.getGrasyla(), metadone.metabusiness.syntax.grasyla.GrasylaEquation.getGrasyla(), metadone.client.grasyla2.GrasylaEngine.getGrasyla(), metadone.metabusiness.annex.User.getName(), metadone.client.actions.VisualizeMetaModelAction.getScript(), metadone.metabusiness.annex.User.getShortName(), metadone.metabusiness.syntax.grasyla.GrasylaView.getUser(), metadone.client.MainClientMetadone.getUser(), metadone.client.grasyla2.GrasylaEngineFactory.handleEngineNotFound(), metadone.client.MainClientMetadone.initalizeWorkspace(), metadone.client.actions.Test3Action.initGrasylaScript(), metadone.client.grasyla2.ref.RefSpecEngine.isSelf(), metadone.client.dialog.swing.visualizeModel.MyVisualizeModel.MyVisualizeModel(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.setAttribute(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.setAttributeObjects(), metadone.client.dialog.swing.visualizeModel.MyVisualizeModel.updateListOfGrasylaScripts(), and metadone.client.dialog.swing.visualizeModel.MyVisualizeModel.updateViews().
MetaModel metadone.metabusiness.Workspace.getClassCommonMetaModel | ( | ) | throws BadPreCondition |
Object common metamodel.
BadPreCondition |
Implemented in metadone.metabusiness.impl.Workspace_impl.
Referenced by metadone.metabusiness.syntax.grasyla.BootstrapGrasyla.bootstrap_grasyla().
MetaObject metadone.metabusiness.Workspace.getClassCommonMetaObject | ( | ) | throws BadPreCondition |
Class common metaobject.
BadPreCondition |
Implemented in metadone.metabusiness.impl.Workspace_impl.
Referenced by metadone.metabusiness.syntax.grasyla.BootstrapGrasyla.bootstrap_grasyla().
MetaModel metadone.metabusiness.Workspace.getClassMetaModel | ( | ) | throws BadPreCondition |
Class metamodel.
BadPreCondition |
Implemented in metadone.metabusiness.impl.Workspace_impl.
Referenced by metadone.client.actions.PrintOmegaMetaModel.actionPerformed(), metadone.metabusiness.syntax.grasyla.BootstrapGrasyla.bootstrap_grasyla(), and metadone.client.actions.RetroDocAction.getMM_parent_metamodel().
MetaObject metadone.metabusiness.Workspace.getClassMetaObject | ( | ) | throws BadPreCondition |
Class metaobject.
BadPreCondition |
Implemented in metadone.metabusiness.impl.Workspace_impl.
Referenced by metadone.metabusiness.syntax.grasyla.BootstrapGrasyla.bootstrap_grasyla().
MetaProperty<?> metadone.metabusiness.Workspace.getClassMetaProperty | ( | ) | throws BadPreCondition |
Class metaproperty
BadPreCondition |
Implemented in metadone.metabusiness.impl.Workspace_impl.
Referenced by metadone.client.actions.PrintOmegaMetaModel.actionPerformed().
MetaRole metadone.metabusiness.Workspace.getClassMetaRole | ( | ) | throws BadPreCondition |
Class metarole.
BadPreCondition |
Implemented in metadone.metabusiness.impl.Workspace_impl.
Referenced by metadone.client.actions.PrintOmegaMetaModel.actionPerformed(), and metadone.metabusiness.syntax.grasyla.BootstrapGrasyla.bootstrap_grasyla().
MetadoneEvents metadone.metabusiness.Workspace.getEventManager | ( | ) |
Returns the event manager, if any.
null
Implemented in metadone.metabusiness.impl.Workspace_impl.
Referenced by metadone.client.actions.UndoRedoAction.actionPerformed(), metadone.client.grasyla2.GrasylaContext.activate(), metadone.client.grasyla2.GrasylaContext.deactivate(), metadone.client.grasyla2.GrasylaEngine.getEventManager(), metadone.client.actions.VisualizeMetaModelAction.initiatizeScript(), metadone.metabusiness.syntax.grasyla.GrasylaScript.notifyScriptChanged(), metadone.client.dialog.swing.concreteobjecteditor.SingleRoleEditor.SingleRoleEditor(), and metadone.client.grasyla2.GrasylaEngine.trigger().
MetaModel metadone.metabusiness.Workspace.getMainMetaModel | ( | ) |
Gets the MAIN meta model.
Implemented in metadone.metabusiness.impl.Workspace_impl.
Referenced by metadone.client.actions.VisualizeMetaModelAction.actionPerformed(), metadone.client.functions.importer.Importer.AbstractImporter.findMetamodel(), metadone.client.actions.RetroDocAction.initMetaModel(), metadone.client.actions.Test6Action.initModels(), and metadone.client.functions.importer.PromotingImporter.AbstractPromotingImporter.promoteToMetamodel().
ConcreteModel metadone.metabusiness.Workspace.getMainModel | ( | ) |
Gets the MAIN concrete model.
Implemented in metadone.metabusiness.impl.Workspace_impl.
Referenced by metadone.client.actions.Test2Action.actionPerformed(), metadone.client.actions.ConcreteModelCreateAction.actionPerformed(), metadone.client.functions.importer.owl.OWLImporter.createConcreteModel(), metadone.client.actions.Test_ECORE_Action.importMetaModel(), metadone.client.actions.RetroDocAction.initConcreteModel(), metadone.client.actions.Test6Action.initModels(), and metadone.client.functions.importer.km3.KM3Importer.Translator.translateModel().
String metadone.metabusiness.Workspace.getName | ( | ) |
Gets the name of this workspace.
Implemented in metadone.metabusiness.impl.Workspace_impl.
Referenced by metadone.client.actions.OpenProjectAction.actionPerformed().
MetaModel metadone.metabusiness.Workspace.getOmegaMetaModel | ( | ) |
Gets the OMEGA meta model.
Implemented in metadone.metabusiness.impl.Workspace_impl.
Referenced by metadone.client.actions.TestDialogConcrete.actionPerformed(), metadone.client.actions.Test2Action.actionPerformed(), metadone.client.actions.PrintOmegaMetaModel.actionPerformed(), metadone.metabusiness.annex.BootstrapAnnex.bootstrap_annex(), metadone.metabusiness.syntax.grasyla.BootstrapGrasyla.bootstrap_grasyla(), metadone.client.dialog.swing.metaobjecteditor.ModelTreeChooseMetaObject.getRoot(), metadone.client.actions.VisualizeMetaModelAction.getScript(), metadone.client.actions.Test5Action.initMetaModel(), and metadone.client.dialog.swing.visualizeModel.MyVisualizeModel.updateListOfConcreteModels().
ConcreteModel metadone.metabusiness.Workspace.getOmegaModel | ( | ) |
Gets the OMEGA concrete model.
Implemented in metadone.metabusiness.impl.Workspace_impl.
Referenced by metadone.client.actions.TestDialogConcrete.actionPerformed(), metadone.client.actions.Browsemetal2Action.actionPerformed(), metadone.metabusiness.annex.BootstrapAnnex.bootstrap_annex(), metadone.metabusiness.syntax.grasyla.BootstrapGrasyla.createScript(), metadone.client.actions.Test3Action.initConcreteModel(), and metadone.client.actions.RetroDocAction.initConcreteModel().
ScriptEvaluator metadone.metabusiness.Workspace.getScriptEvaluator | ( | ProgLanguage | lang | ) |
Gets the shared script evaluator for a given language.
lang | The programming language |
null
if there is no such evaluator Implemented in metadone.metabusiness.impl.Workspace_impl.
UndoRedoManager metadone.metabusiness.Workspace.getUndoRedo | ( | ) |
Returns the undo/redo manager, if any.
null
Implemented in metadone.metabusiness.impl.Workspace_impl.
Referenced by metadone.client.actions.UndoRedoAction.actionPerformed(), and metadone.client.MetadoneDesktopPane.updateForSelectedFrame().
void metadone.metabusiness.Workspace.save | ( | ) |
Saves permanently the changes.
Commits the changes if there are any. The workspace is cleaned when this method is called.
Implemented in metadone.metabusiness.impl.Workspace_impl.
Referenced by metadone.client.actions.CommitAction.actionPerformed(), and metadone.client.actions.CloseProjectAction.closeProject().
final String metadone.metabusiness.Workspace.SEPARATOR = "@" |
The separator character between the names of a path that references a metaobject from the root (main or omega metamodel).
Referenced by metadone.metabusiness.impl.MetaObject_impl.getName(), and metadone.client.parsers.grasyla.AST_ref.toString().