MetaDone
metadone.metabusiness.ConcreteModel Interface Reference
Inheritance diagram for metadone.metabusiness.ConcreteModel:
Collaboration diagram for metadone.metabusiness.ConcreteModel:

List of all members.

Public Member Functions

ConcreteDef addInDefinition (ConcreteObject object) throws BadPreCondition
boolean removeFromDefinition (ConcreteObject object) throws BadPreCondition
Set< ConcreteObjectgetDefinition () throws BadPreCondition
Set< ConcreteObjectgetDefinition (MetaModel metamodel) throws BadPreCondition
Set< ConcreteObjectgetDefinitionRestricted (MetaObject restriction) throws BadPreCondition
Set< ConcreteDefgetMemberships (MetaModel metamodel) throws BadPreCondition
ConcreteDef getMembership (ConcreteObject object) throws BadPreCondition
ConcreteDef getMembership (MetaModel metamodel, ConcreteObject object) throws BadPreCondition
boolean isInDefinition (ConcreteObject object) throws BadPreCondition
boolean isInDefinition (MetaModel metamodel, ConcreteObject object) throws BadPreCondition
ConcreteObject createObject (MetaObject metaobject) throws BadPreCondition
ConcreteRole createRole (MetaRole mr, ConcreteObject domain, ConcreteObject range) throws BadPreCondition
ConcreteRole createRole (MetaRole mr, ConcreteObject domain, ConcreteObject range, FirstLastMode wheredomain, ConcreteRole previousd, FirstLastMode whererange, ConcreteRole previousr) throws BadPreCondition
ConcreteModel createModel (MetaModel metamodel) throws BadPreCondition

Detailed Description

The concrete model.

Author:
ven
kma
See also:
MetaModel

Member Function Documentation

ConcreteDef metadone.metabusiness.ConcreteModel.addInDefinition ( ConcreteObject  object) throws BadPreCondition

Adds the specified ConcreteObject in the definition of 'this'.

Parameters:
objectThe ConcreteObject to add in the definition of this ConcreteModel
Returns:
The concrete definition

Implemented in metadone.metabusiness.impl.ConcreteModel_impl.

ConcreteObject metadone.metabusiness.ConcreteModel.createObject ( MetaObject  metaobject) throws BadPreCondition

Creates a new ConcreteObject instance of type metaobject.

Parameters:
metaobjectis the MetaObject instance typing the ConcreteObject
Returns:
The newly created ConcreteObject instance
Exceptions:
BadPreCondition

Implemented in metadone.metabusiness.impl.ConcreteModel_impl.

Referenced by metadone.client.actions.TestDialogConcrete.actionPerformed(), metadone.client.actions.Test2Action.actionPerformed(), metadone.client.actions.ConcreteObjectCreateAction.actionPerformed(), metadone.client.functions.retrodoc.Analyzer.analyze(), metadone.client.actions.Ecore2MetalRelationships.caseEAnnotation(), metadone.client.actions.Ecore2MetalAttributes.caseEAnnotation(), metadone.client.actions.Ecore2MetalAttributes.caseEAttribute(), metadone.client.actions.Ecore2MetalAttributes.caseEClass(), metadone.client.actions.Ecore2MetalAttributes.caseEClassifier(), metadone.client.actions.Ecore2MetalAttributes.caseEDataType(), metadone.client.actions.Ecore2MetalAttributes.caseEEnum(), metadone.client.actions.Ecore2MetalAttributes.caseEEnumLiteral(), metadone.client.actions.Ecore2MetalAttributes.caseEGenericType(), metadone.client.actions.Ecore2MetalAttributes.caseEModelElement(), metadone.client.actions.Ecore2MetalAttributes.caseENamedElement(), metadone.client.actions.Ecore2MetalAttributes.caseEOperation(), metadone.client.actions.Ecore2MetalAttributes.caseEPackage(), metadone.client.actions.Ecore2MetalAttributes.caseEParameter(), metadone.client.actions.Ecore2MetalAttributes.caseEReference(), metadone.client.actions.Ecore2MetalAttributes.caseEStringToStringMapEntry(), metadone.client.actions.Ecore2MetalAttributes.caseEStructuralFeature(), metadone.client.actions.Ecore2MetalAttributes.caseETypedElement(), metadone.client.actions.Ecore2MetalAttributes.caseETypeParameter(), metadone.client.dialog.swing.genConcreteObject.DialogConcreteRoles.configure(), metadone.client.grasyla2.ref.ActionCreateRoleEngine.create(), metadone.client.grasyla2.ref.ActionCreateEngine.create(), metadone.metabusiness.annex.BootstrapAnnex.createUserIfNeeded(), metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.createViewElement(), metadone.client.parsers.grasyla.AST_script.generate_update(), metadone.client.actions.Test3Action.initConcreteModel(), metadone.client.actions.Test6Action.initModels(), metadone.client.functions.retrodoc.Analyzer.managePackage(), metadone.client.functions.importer.owl.OWLImporter.readOntology(), and metadone.client.functions.importer.owl.OWLImporter.readOntologyObject().

ConcreteRole metadone.metabusiness.ConcreteModel.createRole ( MetaRole  mr,
ConcreteObject  domain,
ConcreteObject  range,
FirstLastMode  wheredomain,
ConcreteRole  previousd,
FirstLastMode  whererange,
ConcreteRole  previousr 
) throws BadPreCondition

Creates a ConcreteRole between two concrete objects with the given ordering.

Parameters:
mrThe metarole
domainis a ConcreteObject instance typed by the MetaObject specified as the domain-side of the MetaRole
rangeis a ConcreteObject instance typed by the MetaObject specified as the domain-side of the MetaRole
wheredomainWhere to insert the role in the domain
afterdThe object after which insert this role or null
whererangeWhere to intert the role in the range
afterrThe object after which insert this role or null
Returns:
The created range
Exceptions:
BadPreCondition
See also:
createRole(MetaRole, ConcreteObject, ConcreteObject)
ConcreteRole.afterDomain(ConcreteRole)
ConcreteRole.afterRange(ConcreteRole)

Implemented in metadone.metabusiness.impl.ConcreteModel_impl.

ConcreteRole metadone.metabusiness.ConcreteModel.createRole ( MetaRole  mr,
ConcreteObject  domain,
ConcreteObject  range 
) throws BadPreCondition

Creates a ConcreteRole between two concrete objects.

If the metarole is sorted, it is added as the last element.

Parameters:
mrThe metarole
domainis a ConcreteObject instance typed by the MetaObject specified as the domain-side of the MetaRole
rangeis a ConcreteObject instance typed by the MetaObject specified as the range-side of the MetaRole
Returns:
The ConcreteRole instance created between the objects
Exceptions:
BadPreConditionIf the domain or the range is null. If the domain or the range have incompatible types with the domain and the range of the MetaRole. If the cardinality is not verified.
See also:
createRole(MetaRole, ConcreteObject, ConcreteObject, FirstLastMode, ConcreteRole, FirstLastMode, ConcreteRole)

Implemented in metadone.metabusiness.impl.ConcreteModel_impl.

Referenced by metadone.metabusiness.impl.MetaObject_impl._shareMetaProperty(), metadone.client.dialog.swing.genConcreteObject.Panel_one_range.SelectActionListener.actionPerformed(), metadone.client.dialog.swing.genConcreteObject.Panel_one_domain.SelectActionListener.actionPerformed(), metadone.client.actions.TestDialogConcrete.actionPerformed(), metadone.client.actions.Test2Action.actionPerformed(), metadone.client.dialog.swing.concreteobjecteditor.SingleRoleEditor.RoleListModel.add(), metadone.client.functions.retrodoc.Analyzer.analyze(), metadone.client.actions.Ecore2MetalRelationships.caseEAnnotation(), metadone.client.actions.Ecore2MetalRelationships.caseEAttribute(), metadone.client.actions.Ecore2MetalRelationships.caseEClass(), metadone.client.actions.Ecore2MetalRelationships.caseEClassifier(), metadone.client.actions.Ecore2MetalRelationships.caseEEnum(), metadone.client.actions.Ecore2MetalRelationships.caseEGenericType(), metadone.client.actions.Ecore2MetalRelationships.caseEModelElement(), metadone.client.actions.Ecore2MetalRelationships.caseEOperation(), metadone.client.actions.Ecore2MetalRelationships.caseEPackage(), metadone.client.actions.Ecore2MetalRelationships.caseEReference(), metadone.client.actions.Ecore2MetalRelationships.caseETypedElement(), metadone.client.actions.Ecore2MetalRelationships.caseETypeParameter(), metadone.client.dialog.swing.genConcreteObject.DialogConcreteRoles.configure(), metadone.client.grasyla2.ref.ActionCreateRoleEngine.create(), metadone.client.grasyla2.visuallibrary.GrasylaScene.MyConnectProvider.createConnection(), metadone.metabusiness.syntax.grasyla.BootstrapGrasyla.createView(), metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.createViewElement(), metadone.client.parsers.grasyla.AST_script.generate_update(), metadone.client.actions.Test3Action.initConcreteModel(), metadone.client.actions.Test6Action.initModels(), metadone.client.functions.retrodoc.Analyzer.managePackage(), metadone.client.functions.importer.owl.OWLImporter.readGenericAssociation(), and metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.setAttributeObjects().

Set<ConcreteObject> metadone.metabusiness.ConcreteModel.getDefinition ( MetaModel  metamodel) throws BadPreCondition

Retrieves all ConcreteObject instances contained in 'this'.

Parameters:
metamodelSpecifies the MetaModel instance typing 'this'.
Returns:
The set of ConcreteObjects in 'this'.
Exceptions:
BadPreConditionif metamodel is null or if the concretemodel does not have this type.
See also:
getMemberships(MetaModel)

Implemented in metadone.metabusiness.impl.ConcreteModel_impl.

Set<ConcreteObject> metadone.metabusiness.ConcreteModel.getDefinition ( ) throws BadPreCondition

Retrieves all concreteobjects that belong to the definition of 'this' metamodel.

Returns:
The set of all the metaobjects

Implemented in metadone.metabusiness.impl.ConcreteModel_impl.

ConcreteDef metadone.metabusiness.ConcreteModel.getMembership ( MetaModel  metamodel,
ConcreteObject  object 
) throws BadPreCondition

Gets the definition of a concreteobject in this concretemodel.

Parameters:
metamodelThe metamodel. Since a concretemodel could have several metamodel types, it is necessary to precise the pertinent type.
objectThe object
Returns:
The concretedef object between object and this in the given metamodel; null if mo does not belong to the definition of concretemodel
Exceptions:
BadPreCondition

Implemented in metadone.metabusiness.impl.ConcreteModel_impl.

ConcreteDef metadone.metabusiness.ConcreteModel.getMembership ( ConcreteObject  object) throws BadPreCondition

Gets the definition of a concreteobject in this concretemodel.

Parameters:
objectThe object
Returns:
The concretedef object between object and this in the given metamodel; null if mo does not belong to the definition of concretemodel
Exceptions:
BadPreCondition

Implemented in metadone.metabusiness.impl.ConcreteModel_impl.

Set<ConcreteDef> metadone.metabusiness.ConcreteModel.getMemberships ( MetaModel  metamodel) throws BadPreCondition

Gets the set of the memberships of this concretemodel

Parameters:
metamodelThe metamodel. Since a concretemodel could have several metamodel types, it is necessary to precise the pertinent type.
Returns:
The set of all the ConcreteDef objects attached to the concretemodel.
Exceptions:
BadPreCondition

Implemented in metadone.metabusiness.impl.ConcreteModel_impl.

boolean metadone.metabusiness.ConcreteModel.isInDefinition ( MetaModel  metamodel,
ConcreteObject  object 
) throws BadPreCondition

Checks if a concrete object is defined in this concretemodel.

Parameters:
metamodelThe metamodel. Since a concretemodel could have several metamodel types, it is necessary to precise the pertinent type.
objectThe object
Returns:
true iff getMembership(MetaModel, ConcreteObject) does not return null
Exceptions:
BadPreCondition
See also:
getMembership(MetaModel, ConcreteObject)

Implemented in metadone.metabusiness.impl.ConcreteModel_impl.

boolean metadone.metabusiness.ConcreteModel.isInDefinition ( ConcreteObject  object) throws BadPreCondition

Checks if a concrete object is defined in this concretemodel.

Parameters:
objectThe object
Returns:
true iff the object is in this model
Exceptions:
BadPreCondition
See also:
getMembership(ConcreteObject)

Implemented in metadone.metabusiness.impl.ConcreteModel_impl.

Referenced by metadone.metabusiness.impl.MetaObject_impl._getName(), metadone.metabusiness.impl.MetaObject_impl.getDisplayNameFormula(), and metadone.metabusiness.impl.MetaObject_impl.setDisplayNameFormula().

boolean metadone.metabusiness.ConcreteModel.removeFromDefinition ( ConcreteObject  object) throws BadPreCondition

Removes the specified ConcreteObject from the definition of 'this'.

Parameters:
objectThe ConcreteObject to remove from the definition of this ConcreteModel
Returns:
true if the object was removed

Implemented in metadone.metabusiness.impl.ConcreteModel_impl.


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