MetaDone
metadone.metabusiness.Workspace Interface Reference
Inheritance diagram for metadone.metabusiness.Workspace:

List of all members.

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 = "@"

Detailed Description

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.

Author:
ven
kma

Member Function Documentation

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);
 
Parameters:
bootThe bootstrap class
Returns:
The object
Exceptions:
IllegalArgumentExceptionwhen 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.

Returns:
A proxy to the CommonMetaModel class
Exceptions:
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.

Returns:
A proxy to the CommonMetaObject class
Exceptions:
BadPreCondition

Implemented in metadone.metabusiness.impl.Workspace_impl.

Referenced by metadone.metabusiness.syntax.grasyla.BootstrapGrasyla.bootstrap_grasyla().

MetaModel metadone.metabusiness.Workspace.getClassMetaModel ( ) throws BadPreCondition
MetaObject metadone.metabusiness.Workspace.getClassMetaObject ( ) throws BadPreCondition

Class metaobject.

Returns:
A proxy to the MetaObject class.
Exceptions:
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

Returns:
A proxy to the MetaProperty class.
Exceptions:
BadPreCondition

Implemented in metadone.metabusiness.impl.Workspace_impl.

Referenced by metadone.client.actions.PrintOmegaMetaModel.actionPerformed().

MetaRole metadone.metabusiness.Workspace.getClassMetaRole ( ) throws BadPreCondition
String metadone.metabusiness.Workspace.getName ( )

Gets the name of this workspace.

Returns:
The name of this workspace

Implemented in metadone.metabusiness.impl.Workspace_impl.

Referenced by metadone.client.actions.OpenProjectAction.actionPerformed().

ScriptEvaluator metadone.metabusiness.Workspace.getScriptEvaluator ( ProgLanguage  lang)

Gets the shared script evaluator for a given language.

Parameters:
langThe programming language
Returns:
The script evaluator or 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.

Returns:
The undo/redo manager or 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().


Member Data Documentation

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().


The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations