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

List of all members.

Public Member Functions

Workspace getWorkspace ()
String getIdentifier ()
String getDisplayName (MetaModel mm) throws BadPreCondition
boolean delete () throws BadPreCondition
boolean isGhost ()
public< T extends
WorkspaceObject > boolean 
isA (Class< T > c)
public< T extends
WorkspaceObject > T 
narrow (Class< T > c) throws BadPreCondition
boolean isOnlyAMetaObject ()
boolean isAMetaObject ()
boolean isAMetaModel ()
boolean isAMetaProperty ()
boolean isAMetaRole ()
boolean isAConcreteModel () throws BadPreCondition
boolean isAConcreteProperty () throws BadPreCondition
boolean isAConcreteRole () throws BadPreCondition
MetaModel narrow2MetaModel () throws BadPreCondition
MetaObject narrow2MetaObject () throws BadPreCondition
MetaProperty<?> narrow2MetaProperty () throws BadPreCondition
MetaRole narrow2MetaRole () throws BadPreCondition
ConcreteModel narrow2ConcreteModel () throws BadPreCondition
ConcreteObject narrow2ConcreteObject () throws BadPreCondition
ConcreteProperty<?> narrow2ConcreteProperty () throws BadPreCondition
ConcreteRole narrow2ConcreteRole () throws BadPreCondition

Detailed Description

Common methods to MetaObject and ConcreteObject.

This class reassembles all the functions commons to objects inside the workspace. These functions include rendering the object as string and narrowing objects between them.

Author:
kma

Member Function Documentation

boolean metadone.metabusiness.WorkspaceObject.delete ( ) throws BadPreCondition

Deletes the concrete object from the repository and burns the proxy.

Returns:
true if the deletion has been executed. Some constraint could prevent it. So far, as constraints are not implemented, the result is always true.
Exceptions:
BadPreCondition

Implemented in metadone.metabusiness.impl.ConcreteObject_impl, and metadone.metabusiness.impl.MetaObject_impl.

Referenced by metadone.metabusiness.impl.ConcreteObject_impl._detach(), metadone.client.dialog.swing.genConcreteObject.Panel_one_range.DelRoleActionListener.actionPerformed(), metadone.client.dialog.swing.genConcreteObject.Panel_one_range.DelObjectActionListener.actionPerformed(), metadone.client.dialog.swing.genConcreteObject.Panel_one_domain.DelRoleActionListener.actionPerformed(), metadone.client.dialog.swing.genConcreteObject.Panel_one_domain.DelObjectActionListener.actionPerformed(), metadone.client.actions.ConcreteObjectDeleteAction.actionPerformed(), metadone.client.dialog.swing.genConcreteObject.DialogConcreteRoles.configure(), metadone.metabusiness.syntax.grasyla.BootstrapGrasyla.createView(), metadone.metabusiness.syntax.grasyla.GrasylaScript.delete(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.delete(), metadone.client.grasyla2.ref.ActionDeleteEngine.delete_property(), metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.deleteRole(), metadone.metabusiness.syntax.AbstractView.deleteView(), metadone.client.parsers.grasyla.AST_ref_role.generate(), metadone.client.parsers.grasyla.AST_ref_obj.generate(), metadone.client.parsers.grasyla.AST_property.generate(), metadone.client.parsers.grasyla.AST_gref.generate(), metadone.client.parsers.grasyla.AST_script.generate_update(), metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.getExprAndCO(), metadone.client.dialog.swing.concreteobjecteditor.SingleRoleEditor.RoleListModel.remove(), and metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.setAttributeObjects().

String metadone.metabusiness.WorkspaceObject.getIdentifier ( )
Workspace metadone.metabusiness.WorkspaceObject.getWorkspace ( )

Gets the workspace where this metaobject is located.

Returns:
The workspace

Implemented in metadone.metabusiness.impl.WorkspaceObject_impl.

Referenced by metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.AbstractGrasylaView(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.delete(), metadone.client.parsers.grasyla.AST_script.generate_update(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.getAttributeCOValue(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.getAttributeObjects(), metadone.client.grasyla2.GrasylaEngine.getEventManager(), metadone.metabusiness.syntax.grasyla.GrasylaScript.getGrasyla(), metadone.metabusiness.syntax.grasyla.GrasylaEquation.getGrasyla(), metadone.client.grasyla2.GrasylaEngine.getGrasyla(), metadone.metabusiness.annex.User.getName(), metadone.metabusiness.annex.User.getShortName(), metadone.metabusiness.events.EventObject.getSource(), metadone.metabusiness.events.EventLinkSpec.getSource(), metadone.metabusiness.syntax.grasyla.GrasylaView.getUser(), metadone.client.grasyla2.GrasylaContext.getWorkspace(), metadone.metabusiness.syntax.grasyla.GrasylaScript.notifyScriptChanged(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.setAttribute(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.setAttributeObjects(), metadone.client.dialog.swing.concreteobjecteditor.SingleRoleEditor.SingleRoleEditor(), metadone.client.dialog.swing.visualizeModel.MyVisualizeModel.updateListOfGrasylaScripts(), and metadone.client.dialog.swing.visualizeModel.MyVisualizeModel.updateViews().

public<T extends WorkspaceObject> boolean metadone.metabusiness.WorkspaceObject.isA ( Class< T >  c)

Checks if this object is an instance of a class.

narrow(Class) should be used instead of this method if the goal is to finally get the casted object.

The given class should be an interface from this package. The implementation of this method should first check if the instance is of the given class and simply cast this if this is the case. In other words, Class#isInstance(Object) must always be respected. If c.isInstance(this) then the result is true. There are two edge cases described below.

The interfaces MetaPropertyExt and ConcretePropertyExt can be used. Still, often automatic casts, such as from a meta object to a MetaPropertyExt, cannot be performed because there is no object to attach to. The result should be c.isInstance(this).

The other edge case is the usage of the specific implementation classes. The user of the implementation should never rely on this as the behavior should be defined by the implementing class (even if the Class#isInstance(Object) must still be respected).

Parameters:
cThe class
Returns:
true iff this is can be narrowed to c
See also:
#narrow(Class)
Class.isInstance(Object)

Implemented in metadone.metabusiness.impl.ConcreteObject_impl, metadone.metabusiness.impl.MetaObject_impl, and metadone.metabusiness.impl.WorkspaceObject_impl.

Referenced by metadone.client.dialog.swing.metaobjecteditor.ModelTreeChooseMetaObject.filter(), metadone.plugin.helloworld.HelloPlugin.getActionFor(), metadone.client.dialog.swing.metaobjecteditor.ModelTreeChooseMetaObject.getSortedMembersInMetaModel(), metadone.client.dialog.swing.metaobjecteditor.ModelTreeChooseMetaObject.isLeaf(), and metadone.client.MetadoneDesktopPane.updatePopupMenuItems().

boolean metadone.metabusiness.WorkspaceObject.isAConcreteModel ( ) throws BadPreCondition
See also:
#isA(Class)
Returns:

Implemented in metadone.metabusiness.impl.WorkspaceObject_impl.

boolean metadone.metabusiness.WorkspaceObject.isAConcreteProperty ( ) throws BadPreCondition
See also:
#isA(Class)
Returns:

Implemented in metadone.metabusiness.impl.WorkspaceObject_impl.

boolean metadone.metabusiness.WorkspaceObject.isAConcreteRole ( ) throws BadPreCondition
See also:
#isA(Class)
Returns:

Implemented in metadone.metabusiness.impl.WorkspaceObject_impl.

boolean metadone.metabusiness.WorkspaceObject.isAMetaModel ( )
See also:
#isA(Class)
Returns:

Implemented in metadone.metabusiness.impl.WorkspaceObject_impl.

boolean metadone.metabusiness.WorkspaceObject.isAMetaObject ( )
See also:
#isA(Class)
Returns:

Implemented in metadone.metabusiness.impl.WorkspaceObject_impl.

boolean metadone.metabusiness.WorkspaceObject.isAMetaProperty ( )
See also:
#isA(Class)
Returns:

Implemented in metadone.metabusiness.impl.WorkspaceObject_impl.

boolean metadone.metabusiness.WorkspaceObject.isAMetaRole ( )
See also:
#isA(Class)
Returns:

Implemented in metadone.metabusiness.impl.WorkspaceObject_impl.

boolean metadone.metabusiness.WorkspaceObject.isGhost ( )
boolean metadone.metabusiness.WorkspaceObject.isOnlyAMetaObject ( )

Checks if this object is just a metaobject and not a subtype.

Equivalent to:

 return isA(MetaObject.class) && !(
   isA(MetaProperty.class) || isA(MetaRole.class) || isA(MetaModel.class)
 )
 
Returns:
true iff 'this' is only a MO (not MP, not MR, not MM)

Implemented in metadone.metabusiness.impl.MetaObject_impl, and metadone.metabusiness.impl.WorkspaceObject_impl.

public<T extends WorkspaceObject> T metadone.metabusiness.WorkspaceObject.narrow ( Class< T >  c) throws BadPreCondition

Casts this object to an object of the given type.

This method respects: obj.narrow(c).equals(obj) == true.

Parameters:
cThe class
Returns:
This as another type
Exceptions:
BadPreConditionwhen isA(c) == false
See also:
#isA(Class)

Implemented in metadone.metabusiness.impl.ConcreteObject_impl, metadone.metabusiness.impl.MetaObject_impl, and metadone.metabusiness.impl.WorkspaceObject_impl.

Referenced by metadone.metabusiness.impl.ConcreteModel_impl._addInDefinition(), metadone.metabusiness.impl.ConcreteModel_impl._getDefinitionRestricted(), metadone.metabusiness.impl.MetaModel_impl._getMembership(), metadone.metabusiness.impl.MetaObject_impl._getName(), metadone.metabusiness.impl.MetaObject_impl._shareMetaProperty(), metadone.metabusiness.impl.ConcreteObject_impl._sharePropertyGeneric(), metadone.metabusiness.impl.MetaProperty_impl< T >.addEnumeratedValue(), metadone.metabusiness.annex.BootstrapAnnex.bootstrap_annex(), metadone.client.grasyla2.ref.RefEngine.buildChild(), metadone.client.grasyla2.ref.ActionCreateRoleEngine.create(), metadone.client.grasyla2.ref.ActionCreateEngine.create(), metadone.metabusiness.impl.MetaObject_impl.createMetaPropertyEnumerated(), metadone.plugin.grasyla.generator.GrasylaGenerator.createMetaRoleEditors(), metadone.client.grasyla2.visuallibrary.VLEdgeEngine.evaluateComponent(), metadone.client.grasyla2.ref.MORefObjectEngine.evaluateComponent(), metadone.metabusiness.script.groovy.GroovyProxyCO.findMetaRole(), metadone.metabusiness.impl.ConcreteObject_impl.getDependumIfSetIsDeleted(), metadone.metabusiness.impl.MetaModel_impl.getMOByName(), metadone.metabusiness.impl.ConcreteObject_impl.getOneProperty(), metadone.client.grasyla2.ref.RefObjectEngine.getProperty(), metadone.client.grasyla2.ref.SideEngine.getRole(), metadone.client.grasyla2.ref.RefRoleEngine.getRole(), metadone.client.grasyla2.value.Value.getValueAsCO(), metadone.metabusiness.impl.MetaPropertyExt_impl< T >.isOrdered(), metadone.client.dialog.swing.concreteobjecteditor.LinkEditor.LinkEditor(), metadone.metabusiness.impl.ConcreteObject_impl.MapMetaToConcrete.map(), metadone.metabusiness.impl.MetaModel_impl.produceMetaModel(), metadone.metabusiness.impl.MetaModel_impl.produceMetaRole(), metadone.metabusiness.syntax.grasyla.BootstrapGrasyla.retrieveGrasylaScript(), and metadone.client.grasyla2.generic.ModelEngine.updateContext().

ConcreteProperty<?> metadone.metabusiness.WorkspaceObject.narrow2ConcreteProperty ( ) throws BadPreCondition
MetaModel metadone.metabusiness.WorkspaceObject.narrow2MetaModel ( ) throws BadPreCondition

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