MetaDone
metadone.metabusiness.impl.Workspace_impl Class Reference
Inheritance diagram for metadone.metabusiness.impl.Workspace_impl:
Collaboration diagram for metadone.metabusiness.impl.Workspace_impl:

List of all members.

Public Member Functions

boolean isWorkspaceBootstrapped ()
void dispose ()
K_ObjectType getTypeFromJava (Class<?> cl)
Class<?> getTypeFromRepository (K_ObjectType type)
MetaPropertyExt<?> getMetapropertyEnumFromJava (Class<?> cl)
MetaObject_impl getClassMetaObject () throws BadPreCondition
MetaObject_impl getClassCommonMetaObject () throws BadPreCondition
MetaModel_impl getClassCommonMetaModel () throws BadPreCondition
MetaModel_impl getClassMetaModel () throws BadPreCondition
MetaProperty_impl<?> getClassMetaProperty () throws BadPreCondition
MetaRole_impl getClassMetaRole () throws BadPreCondition
final K_ObjectType getDef_ot ()
final K_PropertyType getDef_pt ()
final K_PropertyType getDefCanBeShared_pt ()
final K_PropertyType getDefIsDependentOf_pt ()
final K_PropertyType getDefIsHidden_pt ()
final K_ObjectType getMetaModel_ot ()
final K_ObjectType getMetaObject_ot ()
final K_ObjectType getMetaProperty_ot ()
final Project getProject ()
final K_PropertyType getPropertyHasType_pt ()
final K_ObjectType getRole_ot ()
final K_PropertyType getRole_pt ()
final K_PropertyType getRoleCard_pt ()
final K_PropertyType getPropertyCard_pt ()
final BootstrapGrasyla getGrasyla ()
final MetaPropertyExt_impl
< String > 
getMetaObjectName ()
final K_ObjectType getCommonMetaModel_ot ()
final K_ObjectType getCommonMetaObject_ot ()
final BootstrapAnnex getAnnex ()
MetaRole_impl getMetaObjectHasMetaProperty ()
MetaPropertyExt< Boolean > getIsDomainMetaRoleOrdered ()
MetaPropertyExt< Boolean > getIsRangeMetaRoleOrdered ()
MetaPropertyExt< String > getMP_DisplayName ()
final MetaPropertyExt< Long > getMP_EnumInteger ()
final MetaPropertyExt< String > getMP_EnumString ()
final MetaPropertyExt< Character > getMP_EnumChar ()
final MetaPropertyExt< Double > getMP_EnumFloat ()
final MetaPropertyExt< Boolean > getMP_EnumRestricted ()
final MetaPropertyExt< String > getMP_RangeName ()
final MetaPropertyExt< String > getMP_DomainName ()
ScriptEvaluator getScriptEvaluator (ProgLanguage lang)
UndoRedoManager getUndoRedo ()
MetaModel getMainMetaModel ()
ConcreteModel getMainModel ()
MetaModel getOmegaMetaModel ()
ConcreteModel getOmegaModel ()
void save ()
String getName ()
final MetadoneEvents getEventManager ()
void trigger (Metal1Event event)

Static Public Member Functions

static String getDEF ()
static String getInvisibleSeparator ()

Static Public Attributes

static final String OMEGASPEC = "Omegaspec"

Protected Member Functions

String generateDefName ()

Package Functions

 Workspace_impl (Project project, MetadoneEvents eventManager) throws BadPreCondition
private< E extends
ScriptEvaluator > E 
initScript (E eval)
boolean isAMetaObject (K_ObjectType candidate)
boolean isAMetaProperty (K_ObjectType target)
boolean isAMetaModel (K_ObjectType target)
boolean isAMetaRole (K_ObjectType target)
public< B > B getBootstrap (Class< B > boot)

Static Package Functions

static Workspace_impl getWorkspaceFromProject (Project p)

Private Member Functions

void precondWorspace_impl (Project project, MetadoneEvents eventManager) throws BadPreCondition
Workspace_impl bootstrap () throws BadPreCondition
void init_metametamodel (Map< String, K_ObjectType > object_types) throws BadPreCondition, BadVersionMetal2
Pair< Boolean, Boolean > checkAndUpgrade (long version, long version_of_this_program)
boolean checkVarBoostVariables ()
Map< String, K_ObjectTypeinitObjectTypesFromProject (K_ObjectType omega)
void bootstrap_metametamodel ()
Metal2Event triggerFor (Metal1Event event)
Metal2Event triggerFor (EventModification event)
Metal2Event triggerFor (metadone.repository.kernel.events.EventChange event, ConcreteObject co)
Metal2Event triggerFor (metadone.repository.kernel.events.EventChangeFacet event, ConcreteObject co)
Metal2Event triggerFor (metadone.repository.kernel.events.EventWillDelete event, ConcreteObject co)
Metal2Event triggerForDef (DataObject obj, boolean delete) throws BadPreCondition, BadFacet
Metal2Event triggerFor (metadone.repository.kernel.events.EventLink event)

Static Private Member Functions

static void triggerExceptionHandler (String contextMessage, Exception e)

Private Attributes

ScriptEvaluator[] evaluators = new ScriptEvaluator[0]
final MetadoneEvents eventManager
UndoRedoManager_impl undoredo
K_ObjectType varboost_commonMetaModel_ot
K_ObjectType varboost_commonMetaObject_ot
K_ObjectType varboost_def_ot
K_ObjectType varboost_metaModel_ot
K_ObjectType varboost_metaObject_ot
K_ObjectType varboost_metaProperty_ot
K_ObjectType varboost_repositoryVersion
K_ObjectType varboost_role_ot
K_ObjectType varboost_versionable2
K_PropertyType varboost_defCanBeShared
K_PropertyType varboost_defIsDependentOf
K_PropertyType varboost_defIsHidden
K_PropertyType varboost_def_pt
K_PropertyType varboost_propertyCard_pt
K_PropertyType varboost_propertyHasType_pt
K_PropertyType varboost_roleCard
K_PropertyType varboost_role_pt
K_PropertyType varboost_versionableValue
MetaPropertyExt_impl< String > varboost_metaObjectName
MetaPropertyExt< String > varboost_MP_displayName
MetaPropertyExt< Boolean > varboost_isDomainMetaRoleOrdered
MetaPropertyExt< Boolean > varboost_isRangeMetaRoleOrdered
MetaPropertyExt< Long > varboost_MP_EnumInteger
MetaPropertyExt< String > varboost_MP_EnumString
MetaPropertyExt< Character > varboost_MP_EnumChar
MetaPropertyExt< Double > varboost_MP_EnumFloat
MetaPropertyExt< Boolean > varboost_MP_EnumRestricted
MetaPropertyExt< String > varboost_MP_DomainName
MetaPropertyExt< String > varboost_MP_RangeName
MetaRole_impl varboost_metaObjectHasMetaProperty
BootstrapGrasyla boost_grasyla
BootstrapAnnex boost_annex
boolean ws_bootstrapped = false
Project project
ConcreteModel_impl varboost_omegaSpecification

Static Private Attributes

static final String RANGE_NAME = "RangeName"
static final String DOMAIN_NAME = "DomainName"
static final String REPOSITORY_VERSION = "RepositoryVersion"
static final String VERSIONABLE_VALUE = "Versionable.value"
static final String VERSIONABLE = "Versionable"
static final long METAL2_VERSION = 2
static final String COMMON_META_MODEL = "CommonMetaModel"
static final String COMMON_META_OBJECT = "CommonMetaObject"
static final String DEF = "PartWhole"
static final String DEF__CAN_BE_SHARED = "PartWhole.canNotBeShared"
static final String DEF__IS_DEPENDENT_OF = "PartWhole.isDependentOn"
static final String DEF__IS_HIDDEN = "PartWhole.isHidden"
static final String DISPLAY_NAME = "display name"
static final String HAS = "has"
static final String HAS1 = "has1"
static final String IS_DOMAIN_ORDERED = "is domain ordered"
static final String IS_RANGE_ORDERED = "is range ordered"
static final String METAOBJECT_HAS_METAPROPERTY = "metaobject has metaproperty"
static final String META_MODEL = "MetaModel"
static final String META_OBJECT = "MetaObject"
static final String META_PROPERTY = "MetaProperty"
static final String META_PROPERTY__CARD = "MetaProperty.card"
static final String META_PROPERTY__TYPE = "MetaProperty.type"
static final String META_ROLE = "MetaRole"
static final String META_ROLE__CARDINALITY = "MetaRole.card"
static final String NAME = "MetaProperty.name"
static final String NAME_P_STRING = "name-->p>--string"
static final String ENUM_RESTRICTED = "Enum Restricted"
static final String ENUM_FLOAT = "Enum Float"
static final String ENUM_CHAR = "Enum Char"
static final String ENUM_INTEGER = "Enum Integer"
static final String ENUM_STRING = "Enum String"
static final Logger logger = Logger.getLogger(Workspace_impl.class)
static Map< Project,
Workspace_impl
map = new HashMap<Project, Workspace_impl>()

Detailed Description

The default implementation of the workspace.

Author:
ven
kma

Constructor & Destructor Documentation


Member Function Documentation

void metadone.metabusiness.impl.Workspace_impl.bootstrap_metametamodel ( ) [private]
Exceptions:
BadFacet
BadPreCondition

every enumerated value must be compliant with the default of the metaproprerty if the metaproperty is restricted, then no property can have its own literal value, only shared valed are allowed. Any modification of the shared value entails the modification the value for all the properties ! (feature) boolean metaproperties can not be enumerated, nor restricted.

References metadone.metabusiness.impl.MetaModel_impl.addInDefinition(), metadone.repository.kernel.K_Object.addObjectType(), metadone.metabusiness.impl.FactoryOfProxy.buildMetaPropertyExt(), metadone.metabusiness.impl.FactoryOfProxy.buildMetaRole(), metadone.metabusiness.impl.Workspace_impl.checkVarBoostVariables(), metadone.metabusiness.impl.Workspace_impl.COMMON_META_MODEL, metadone.metabusiness.impl.Workspace_impl.COMMON_META_OBJECT, metadone.metabusiness.impl.MetaObject_impl.createMetaProperty(), metadone.repository.kernel.K_TypeBoolean.createObjectBoolean(), metadone.repository.kernel.K_TypeInteger.createObjectInteger(), metadone.repository.kernel.K_ObjectType.createObjectType(), metadone.repository.kernel.K_PropertyType.createProperty(), metadone.metabusiness.ConcreteObject.createPropertyString(), metadone.repository.kernel.K_PropertyType.createPropertyType(), metadone.repository.kernel.Project.createTypeof(), metadone.metabusiness.impl.Workspace_impl.DEF, metadone.metabusiness.impl.Workspace_impl.DEF__CAN_BE_SHARED, metadone.metabusiness.impl.Workspace_impl.DEF__IS_DEPENDENT_OF, metadone.metabusiness.impl.Workspace_impl.DEF__IS_HIDDEN, metadone.metabusiness.impl.Workspace_impl.DISPLAY_NAME, metadone.metabusiness.impl.Workspace_impl.DOMAIN_NAME, metadone.metabusiness.impl.Workspace_impl.ENUM_CHAR, metadone.metabusiness.impl.Workspace_impl.ENUM_FLOAT, metadone.metabusiness.impl.Workspace_impl.ENUM_INTEGER, metadone.metabusiness.impl.Workspace_impl.ENUM_RESTRICTED, metadone.metabusiness.impl.Workspace_impl.ENUM_STRING, metadone.repository.kernel.K_Property.forceModel(), metadone.metabusiness.impl.Workspace_impl.generateDefName(), metadone.repository.kernel.K_ObjectType.getAllSubtypes(), metadone.metabusiness.impl.Workspace_impl.getClassCommonMetaModel(), metadone.metabusiness.impl.Workspace_impl.getClassCommonMetaObject(), metadone.metabusiness.impl.Workspace_impl.getClassMetaModel(), metadone.metabusiness.impl.Workspace_impl.getClassMetaObject(), metadone.metabusiness.impl.Workspace_impl.getClassMetaProperty(), metadone.metabusiness.impl.Workspace_impl.getClassMetaRole(), metadone.repository.kernel.K_Common.getDataObject(), metadone.metabusiness.impl.Workspace_impl.getDef_ot(), metadone.metabusiness.impl.Workspace_impl.getDef_pt(), metadone.metabusiness.impl.Workspace_impl.getDefCanBeShared_pt(), metadone.metabusiness.impl.Workspace_impl.getDefIsDependentOf_pt(), metadone.metabusiness.impl.Workspace_impl.getDefIsHidden_pt(), metadone.metabusiness.impl.Workspace_impl.getMetaObjectHasMetaProperty(), metadone.metabusiness.impl.Workspace_impl.getMetaObjectName(), metadone.metabusiness.impl.Workspace_impl.getMetaProperty_ot(), metadone.metabusiness.impl.MetaRole_impl.getMetaroleType(), metadone.repository.kernel.K_ObjectType.getNameObjectType(), metadone.metabusiness.ConcreteObject.getOneProperty(), metadone.metabusiness.impl.Workspace_impl.getProject(), metadone.metabusiness.ConcreteObject.getProperties(), metadone.metabusiness.impl.Workspace_impl.getPropertyCard_pt(), metadone.metabusiness.impl.Workspace_impl.getPropertyHasType_pt(), metadone.repository.kernel.Project.getPropertyTypePi(), metadone.metabusiness.impl.Workspace_impl.getRole_ot(), metadone.metabusiness.impl.Workspace_impl.getRole_pt(), metadone.metabusiness.impl.Workspace_impl.getRoleCard_pt(), metadone.metabusiness.impl.MetaObject_impl.getTarget(), metadone.repository.kernel.Project.getTypeBoolean(), metadone.repository.kernel.Project.getTypeInteger(), metadone.repository.kernel.Project.getTypeOmega(), metadone.repository.kernel.Project.getTypeType(), metadone.metabusiness.impl.Workspace_impl.HAS, metadone.metabusiness.impl.Workspace_impl.HAS1, metadone.metabusiness.impl.MetaModel_impl.hasInItsDefinition(), metadone.metabusiness.impl.Workspace_impl.IS_DOMAIN_ORDERED, metadone.metabusiness.impl.Workspace_impl.IS_RANGE_ORDERED, metadone.metabusiness.impl.Workspace_impl.META_MODEL, metadone.metabusiness.impl.Workspace_impl.META_OBJECT, metadone.metabusiness.impl.Workspace_impl.META_PROPERTY, metadone.metabusiness.impl.Workspace_impl.META_PROPERTY__CARD, metadone.metabusiness.impl.Workspace_impl.META_PROPERTY__TYPE, metadone.metabusiness.impl.Workspace_impl.META_ROLE, metadone.metabusiness.impl.Workspace_impl.META_ROLE__CARDINALITY, metadone.metabusiness.impl.Workspace_impl.METAL2_VERSION, metadone.metabusiness.impl.Workspace_impl.METAOBJECT_HAS_METAPROPERTY, metadone.metabusiness.impl.Workspace_impl.NAME, metadone.metabusiness.impl.Workspace_impl.NAME_P_STRING, metadone.metabusiness.impl.MetaObject_impl.narrow(), metadone.metabusiness.WorkspaceObject.narrow2ConcreteModel(), metadone.metabusiness.impl.MetaObject_impl.narrow2ConcreteModel(), metadone.metabusiness.impl.WorkspaceObject_impl.narrow2ConcreteObject(), metadone.metabusiness.impl.Workspace_impl.project, metadone.metabusiness.impl.Workspace_impl.RANGE_NAME, metadone.metabusiness.impl.Workspace_impl.REPOSITORY_VERSION, metadone.metabusiness.MetaDef.setIsHidden(), metadone.metabusiness.impl.Workspace_impl.varboost_commonMetaModel_ot, metadone.metabusiness.impl.Workspace_impl.varboost_commonMetaObject_ot, metadone.metabusiness.impl.Workspace_impl.varboost_def_ot, metadone.metabusiness.impl.Workspace_impl.varboost_def_pt, metadone.metabusiness.impl.Workspace_impl.varboost_defCanBeShared, metadone.metabusiness.impl.Workspace_impl.varboost_defIsDependentOf, metadone.metabusiness.impl.Workspace_impl.varboost_defIsHidden, metadone.metabusiness.impl.Workspace_impl.varboost_isDomainMetaRoleOrdered, metadone.metabusiness.impl.Workspace_impl.varboost_isRangeMetaRoleOrdered, metadone.metabusiness.impl.Workspace_impl.varboost_metaModel_ot, metadone.metabusiness.impl.Workspace_impl.varboost_metaObject_ot, metadone.metabusiness.impl.Workspace_impl.varboost_metaObjectHasMetaProperty, metadone.metabusiness.impl.Workspace_impl.varboost_metaObjectName, metadone.metabusiness.impl.Workspace_impl.varboost_metaProperty_ot, metadone.metabusiness.impl.Workspace_impl.varboost_MP_displayName, metadone.metabusiness.impl.Workspace_impl.varboost_MP_DomainName, metadone.metabusiness.impl.Workspace_impl.varboost_MP_EnumChar, metadone.metabusiness.impl.Workspace_impl.varboost_MP_EnumFloat, metadone.metabusiness.impl.Workspace_impl.varboost_MP_EnumInteger, metadone.metabusiness.impl.Workspace_impl.varboost_MP_EnumRestricted, metadone.metabusiness.impl.Workspace_impl.varboost_MP_EnumString, metadone.metabusiness.impl.Workspace_impl.varboost_MP_RangeName, metadone.metabusiness.impl.Workspace_impl.varboost_omegaSpecification, metadone.metabusiness.impl.Workspace_impl.varboost_propertyCard_pt, metadone.metabusiness.impl.Workspace_impl.varboost_propertyHasType_pt, metadone.metabusiness.impl.Workspace_impl.varboost_repositoryVersion, metadone.metabusiness.impl.Workspace_impl.varboost_role_ot, metadone.metabusiness.impl.Workspace_impl.varboost_role_pt, metadone.metabusiness.impl.Workspace_impl.varboost_roleCard, metadone.metabusiness.impl.Workspace_impl.varboost_versionable2, metadone.metabusiness.impl.Workspace_impl.varboost_versionableValue, metadone.metabusiness.impl.Workspace_impl.VERSIONABLE, and metadone.metabusiness.impl.Workspace_impl.VERSIONABLE_VALUE.

Referenced by metadone.metabusiness.impl.Workspace_impl.bootstrap().

Pair<Boolean, Boolean> metadone.metabusiness.impl.Workspace_impl.checkAndUpgrade ( long  version,
long  version_of_this_program 
) [private]
Parameters:
versionThe version stored in the repository.
version_of_this_programThe current version of the program.
Returns:
(POSSIBLE,MODIFIED) a pair (a,b) of booleans. a is true if the upgrade is possible, b is true is the repository should be modified.

Referenced by metadone.metabusiness.impl.Workspace_impl.init_metametamodel().

boolean metadone.metabusiness.impl.Workspace_impl.checkVarBoostVariables ( ) [private]
void metadone.metabusiness.impl.Workspace_impl.dispose ( )
final BootstrapAnnex metadone.metabusiness.impl.Workspace_impl.getAnnex ( )
Returns:
the boost_annex.

References metadone.metabusiness.impl.Workspace_impl.boost_annex.

public<B> B metadone.metabusiness.impl.Workspace_impl.getBootstrap ( Class< B >  boot) [package]

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

Implements metadone.metabusiness.Workspace.

References metadone.metabusiness.impl.Workspace_impl.boost_annex, and metadone.metabusiness.impl.Workspace_impl.boost_grasyla.

MetaModel_impl metadone.metabusiness.impl.Workspace_impl.getClassCommonMetaModel ( ) throws BadPreCondition

Object common metamodel.

Returns:
A proxy to the CommonMetaModel class
Exceptions:
BadPreCondition

Implements metadone.metabusiness.Workspace.

References metadone.metabusiness.impl.Workspace_impl.getCommonMetaModel_ot().

Referenced by metadone.metabusiness.impl.Workspace_impl.bootstrap_metametamodel().

MetaProperty_impl<?> metadone.metabusiness.impl.Workspace_impl.getClassMetaProperty ( ) throws BadPreCondition
final K_ObjectType metadone.metabusiness.impl.Workspace_impl.getCommonMetaModel_ot ( )
static String metadone.metabusiness.impl.Workspace_impl.getDEF ( ) [static]
final MetadoneEvents metadone.metabusiness.impl.Workspace_impl.getEventManager ( )

Returns the event manager, if any.

Returns:
The event manager or null

Implements metadone.metabusiness.Workspace.

References metadone.metabusiness.impl.Workspace_impl.eventManager.

Referenced by metadone.metabusiness.impl.Workspace_impl.bootstrap().

final BootstrapGrasyla metadone.metabusiness.impl.Workspace_impl.getGrasyla ( )
Returns:
a not null value.

References metadone.metabusiness.impl.Workspace_impl.boost_grasyla.

MetaPropertyExt<Boolean> metadone.metabusiness.impl.Workspace_impl.getIsDomainMetaRoleOrdered ( )
MetaPropertyExt<Boolean> metadone.metabusiness.impl.Workspace_impl.getIsRangeMetaRoleOrdered ( )
MetaModel metadone.metabusiness.impl.Workspace_impl.getMainMetaModel ( )

Gets the MAIN meta model.

Returns:
The MAIN meta model

Implements metadone.metabusiness.Workspace.

References metadone.metabusiness.impl.Workspace_impl.getOmegaMetaModel().

ConcreteModel metadone.metabusiness.impl.Workspace_impl.getMainModel ( )

Gets the MAIN concrete model.

Returns:
The MAIN model

Implements metadone.metabusiness.Workspace.

References metadone.metabusiness.impl.Workspace_impl.getOmegaModel().

MetaPropertyExt<?> metadone.metabusiness.impl.Workspace_impl.getMetapropertyEnumFromJava ( Class<?>  cl)

Gets a meta property for a Java class.

Parameters:
clThe Java class
Returns:
The object type
Exceptions:
IllegalArgumentExceptionwhen cl is null or does not have a corresponding type

References metadone.metabusiness.impl.Workspace_impl.getMP_EnumChar(), metadone.metabusiness.impl.Workspace_impl.getMP_EnumFloat(), metadone.metabusiness.impl.Workspace_impl.getMP_EnumInteger(), and metadone.metabusiness.impl.Workspace_impl.getMP_EnumString().

Referenced by metadone.metabusiness.impl.MetaObject_impl.createMetaPropertyEnumerated().

final MetaPropertyExt<String> metadone.metabusiness.impl.Workspace_impl.getMP_DomainName ( )
final MetaPropertyExt<Boolean> metadone.metabusiness.impl.Workspace_impl.getMP_EnumRestricted ( )
final MetaPropertyExt<String> metadone.metabusiness.impl.Workspace_impl.getMP_RangeName ( )
String metadone.metabusiness.impl.Workspace_impl.getName ( )

Gets the name of this workspace.

Returns:
The name of this workspace

Implements metadone.metabusiness.Workspace.

References metadone.repository.kernel.Project.getName(), and metadone.metabusiness.impl.Workspace_impl.getProject().

MetaModel metadone.metabusiness.impl.Workspace_impl.getOmegaMetaModel ( )
ConcreteModel metadone.metabusiness.impl.Workspace_impl.getOmegaModel ( )
final Project metadone.metabusiness.impl.Workspace_impl.getProject ( )

References metadone.metabusiness.impl.Workspace_impl.project.

Referenced by metadone.metabusiness.impl.MetaModel_impl._addInDefinition(), metadone.metabusiness.impl.MetaModel_impl._createMetaModel(), metadone.metabusiness.impl.MetaModel_impl._createMetaObject(), metadone.metabusiness.impl.MetaModel_impl._createMetaRole(), metadone.metabusiness.impl.MetaObject_impl._shareMetaProperty(), metadone.metabusiness.impl.Workspace_impl.bootstrap_metametamodel(), metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyChar(), metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyFloat(), metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyInteger(), metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyString(), metadone.metabusiness.impl.MetaObject_impl.createMetaProperty(), metadone.metabusiness.impl.ConcreteObject_impl.createPropertyBoolean(), metadone.metabusiness.impl.ConcreteObject_impl.createPropertyChar(), metadone.metabusiness.impl.ConcreteObject_impl.createPropertyFloat(), metadone.metabusiness.impl.ConcreteObject_impl.createPropertyInteger(), metadone.metabusiness.impl.ConcreteObject_impl.createPropertyString(), metadone.metabusiness.impl.Workspace_impl.getName(), metadone.metabusiness.impl.Workspace_impl.getTypeFromJava(), metadone.metabusiness.impl.Workspace_impl.getTypeFromRepository(), metadone.metabusiness.impl.Workspace_impl.init_metametamodel(), metadone.metabusiness.impl.Workspace_impl.save(), metadone.metabusiness.impl.MetaDef_impl.setBooleanValue(), and metadone.metabusiness.impl.ConcreteProperty_impl< T >.setValue().

ScriptEvaluator metadone.metabusiness.impl.Workspace_impl.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

Implements metadone.metabusiness.Workspace.

References metadone.metabusiness.impl.Workspace_impl.evaluators.

Referenced by metadone.metabusiness.impl.ConcreteObject_impl.evaluateFormula().

K_ObjectType metadone.metabusiness.impl.Workspace_impl.getTypeFromJava ( Class<?>  cl)
Class<?> metadone.metabusiness.impl.Workspace_impl.getTypeFromRepository ( K_ObjectType  type)
UndoRedoManager metadone.metabusiness.impl.Workspace_impl.getUndoRedo ( )

Returns the undo/redo manager, if any.

Returns:
The undo/redo manager or null

Implements metadone.metabusiness.Workspace.

References metadone.metabusiness.impl.Workspace_impl.undoredo.

void metadone.metabusiness.impl.Workspace_impl.init_metametamodel ( Map< String, K_ObjectType object_types) throws BadPreCondition, BadVersionMetal2 [private]

References metadone.metabusiness.impl.Workspace_impl.checkAndUpgrade(), metadone.metabusiness.impl.Workspace_impl.checkVarBoostVariables(), metadone.metabusiness.impl.Workspace_impl.COMMON_META_MODEL, metadone.metabusiness.impl.Workspace_impl.COMMON_META_OBJECT, metadone.metabusiness.impl.Workspace_impl.DEF, metadone.metabusiness.impl.Workspace_impl.DEF__CAN_BE_SHARED, metadone.metabusiness.impl.Workspace_impl.DEF__IS_DEPENDENT_OF, metadone.metabusiness.impl.Workspace_impl.DEF__IS_HIDDEN, metadone.metabusiness.impl.Workspace_impl.DISPLAY_NAME, metadone.metabusiness.impl.Workspace_impl.DOMAIN_NAME, metadone.metabusiness.impl.Workspace_impl.ENUM_CHAR, metadone.metabusiness.impl.Workspace_impl.ENUM_FLOAT, metadone.metabusiness.impl.Workspace_impl.ENUM_INTEGER, metadone.metabusiness.impl.Workspace_impl.ENUM_RESTRICTED, metadone.metabusiness.impl.Workspace_impl.ENUM_STRING, metadone.metabusiness.impl.Workspace_impl.getClassMetaModel(), metadone.metabusiness.impl.Workspace_impl.getClassMetaObject(), metadone.metabusiness.impl.Workspace_impl.getClassMetaProperty(), metadone.metabusiness.impl.Workspace_impl.getClassMetaRole(), metadone.repository.kernel.K_Common.getDataObject(), metadone.metabusiness.impl.Workspace_impl.getDef_ot(), metadone.repository.kernel.K_Object.getDomainOfAsObject(), metadone.repository.kernel.K_ObjectType.getInstances(), metadone.metabusiness.impl.Workspace_impl.getMetaObject_ot(), metadone.metabusiness.impl.MetaModel_impl.getMetaObjectsInDefinition(), metadone.metabusiness.impl.MetaObject_impl.getMetaProperty(), metadone.metabusiness.impl.Workspace_impl.getMetaProperty_ot(), metadone.repository.kernel.K_ObjectType.getNameObjectType(), metadone.repository.kernel.K_PropertyType.getNamePropertyType(), metadone.util.ListUtil.getOneOf(), metadone.metabusiness.impl.Workspace_impl.getProject(), metadone.repository.kernel.K_ObjectType.getPropertyType(), metadone.metabusiness.impl.Workspace_impl.getRole_ot(), metadone.repository.kernel.Project.getTypeInteger(), metadone.repository.kernel.Project.getTypeOmega(), metadone.repository.kernel.K_ObjectInteger.getValueObjectInteger(), metadone.metabusiness.impl.Workspace_impl.HAS, metadone.metabusiness.impl.Workspace_impl.HAS1, metadone.metabusiness.impl.Workspace_impl.initObjectTypesFromProject(), metadone.metabusiness.impl.Workspace_impl.IS_DOMAIN_ORDERED, metadone.metabusiness.impl.Workspace_impl.IS_RANGE_ORDERED, metadone.metabusiness.impl.Workspace_impl.META_MODEL, metadone.metabusiness.impl.Workspace_impl.META_OBJECT, metadone.metabusiness.impl.Workspace_impl.META_PROPERTY, metadone.metabusiness.impl.Workspace_impl.META_PROPERTY__CARD, metadone.metabusiness.impl.Workspace_impl.META_PROPERTY__TYPE, metadone.metabusiness.impl.Workspace_impl.META_ROLE, metadone.metabusiness.impl.Workspace_impl.META_ROLE__CARDINALITY, metadone.metabusiness.impl.Workspace_impl.METAL2_VERSION, metadone.metabusiness.impl.MetaObject_impl.narrow(), metadone.repository.kernel.DataObject.narrow_K_ObjectInteger(), metadone.repository.kernel.DataObject.narrow_K_ObjectType(), metadone.repository.kernel.DataObject.narrow_K_PropertyType(), metadone.metabusiness.impl.Workspace_impl.project, metadone.metabusiness.impl.Workspace_impl.RANGE_NAME, metadone.metabusiness.impl.Workspace_impl.REPOSITORY_VERSION, metadone.metabusiness.impl.Workspace_impl.varboost_commonMetaModel_ot, metadone.metabusiness.impl.Workspace_impl.varboost_commonMetaObject_ot, metadone.metabusiness.impl.Workspace_impl.varboost_def_ot, metadone.metabusiness.impl.Workspace_impl.varboost_def_pt, metadone.metabusiness.impl.Workspace_impl.varboost_defCanBeShared, metadone.metabusiness.impl.Workspace_impl.varboost_defIsDependentOf, metadone.metabusiness.impl.Workspace_impl.varboost_defIsHidden, metadone.metabusiness.impl.Workspace_impl.varboost_isDomainMetaRoleOrdered, metadone.metabusiness.impl.Workspace_impl.varboost_isRangeMetaRoleOrdered, metadone.metabusiness.impl.Workspace_impl.varboost_metaModel_ot, metadone.metabusiness.impl.Workspace_impl.varboost_metaObject_ot, metadone.metabusiness.impl.Workspace_impl.varboost_metaObjectHasMetaProperty, metadone.metabusiness.impl.Workspace_impl.varboost_metaObjectName, metadone.metabusiness.impl.Workspace_impl.varboost_metaProperty_ot, metadone.metabusiness.impl.Workspace_impl.varboost_MP_displayName, metadone.metabusiness.impl.Workspace_impl.varboost_MP_DomainName, metadone.metabusiness.impl.Workspace_impl.varboost_MP_EnumChar, metadone.metabusiness.impl.Workspace_impl.varboost_MP_EnumFloat, metadone.metabusiness.impl.Workspace_impl.varboost_MP_EnumInteger, metadone.metabusiness.impl.Workspace_impl.varboost_MP_EnumRestricted, metadone.metabusiness.impl.Workspace_impl.varboost_MP_EnumString, metadone.metabusiness.impl.Workspace_impl.varboost_MP_RangeName, metadone.metabusiness.impl.Workspace_impl.varboost_omegaSpecification, metadone.metabusiness.impl.Workspace_impl.varboost_propertyCard_pt, metadone.metabusiness.impl.Workspace_impl.varboost_propertyHasType_pt, metadone.metabusiness.impl.Workspace_impl.varboost_repositoryVersion, metadone.metabusiness.impl.Workspace_impl.varboost_role_ot, metadone.metabusiness.impl.Workspace_impl.varboost_role_pt, metadone.metabusiness.impl.Workspace_impl.varboost_roleCard, metadone.metabusiness.impl.Workspace_impl.varboost_versionable2, metadone.metabusiness.impl.Workspace_impl.varboost_versionableValue, metadone.metabusiness.impl.Workspace_impl.VERSIONABLE, and metadone.metabusiness.impl.Workspace_impl.VERSIONABLE_VALUE.

Referenced by metadone.metabusiness.impl.Workspace_impl.bootstrap().

boolean metadone.metabusiness.impl.Workspace_impl.isAMetaProperty ( K_ObjectType  target) [package]
boolean metadone.metabusiness.impl.Workspace_impl.isAMetaRole ( K_ObjectType  target) [package]
boolean metadone.metabusiness.impl.Workspace_impl.isWorkspaceBootstrapped ( )
void metadone.metabusiness.impl.Workspace_impl.precondWorspace_impl ( Project  project,
MetadoneEvents  eventManager 
) throws BadPreCondition [private]
void metadone.metabusiness.impl.Workspace_impl.save ( )

Saves permanently the changes.

Commits the changes if there are any. The workspace is cleaned when this method is called.

Implements metadone.metabusiness.Workspace.

References metadone.metabusiness.impl.Workspace_impl.eventManager, metadone.metabusiness.impl.Workspace_impl.getProject(), metadone.repository.kernel.Project.save(), and metadone.metabusiness.events.MetadoneEvents.trigger().

static void metadone.metabusiness.impl.Workspace_impl.triggerExceptionHandler ( String  contextMessage,
Exception  e 
) [static, private]
Metal2Event metadone.metabusiness.impl.Workspace_impl.triggerFor ( Metal1Event  event) [private]
Metal2Event metadone.metabusiness.impl.Workspace_impl.triggerFor ( metadone.repository.kernel.events.EventWillDelete  event,
ConcreteObject  co 
) [private]
Metal2Event metadone.metabusiness.impl.Workspace_impl.triggerFor ( metadone.repository.kernel.events.EventLink  event) [private]

Member Data Documentation

final String metadone.metabusiness.impl.Workspace_impl.OMEGASPEC = "Omegaspec" [static]

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