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

List of all members.

Public Member Functions

 ConcreteModel_impl (K_Object target) throws BadPreCondition
ConcreteObject_impl createObject (MetaObject metaobject) throws BadPreCondition
ConcreteDef addInDefinition (ConcreteObject concreteobject) throws BadPreCondition
boolean removeFromDefinition (ConcreteObject object) throws BadPreCondition
boolean isInDefinition (ConcreteObject object) throws BadPreCondition
boolean isInDefinition (MetaModel metamodel, ConcreteObject object) throws BadPreCondition
Set< ConcreteObjectgetDefinition (MetaModel metamodel) throws BadPreCondition
Set< ConcreteObjectgetDefinition () throws BadPreCondition
Set< ConcreteObjectgetDefinitionRestricted (MetaObject restriction) throws BadPreCondition
ConcreteDef getMembership (ConcreteObject object) throws BadPreCondition
ConcreteDef getMembership (MetaModel metamodel, ConcreteObject object) throws BadPreCondition
Set< ConcreteDefgetMemberships (MetaModel metamodel) throws BadPreCondition
ConcreteRole_impl 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

Private Member Functions

ConcreteObject_impl _createObject (MetaObject_impl metaobject)
ConcreteDef_impl _addInDefinition (ConcreteObject concreteobject)
boolean _isInDefinition (ConcreteObject_impl member)
boolean someParentIsDef (K_Property candidate) throws BadPreCondition
final Set< ConcreteObject_getDefinition (MetaModel metamodel)
final Set< ConcreteObject_getDefinitionRestricted (MetaObject restriction)
ConcreteRole_impl _createRole (MetaRole_impl mr, ConcreteObject_impl domain, ConcreteObject_impl range)
void precondition_createRole (MetaRole_impl mr, ConcreteObject_impl domain, ConcreteObject_impl range) throws BadPreCondition
ConcreteRole_impl _createRole (MetaRole_impl mr, ConcreteObject_impl domain, ConcreteObject_impl range, FirstLastMode wheredomain, ConcreteRole_impl previousd, FirstLastMode whererange, ConcreteRole_impl previousr)

Static Private Member Functions

static boolean isOrdered (MetaRole mr) throws BadPreCondition
static
metadone.repository.kernel.K_PropertyType.FirstLastMode 
convertWhere (FirstLastMode fl)
static FirstLastMode defaultMode (boolean last)

Detailed Description

This class denotes instances of MetaModels. For example, if STATECHART is a metamodel, then COFEEMACHINE could be a ConcreteModel.

Author:
ven

Date=06-fevr.-2006 - 15:45:39 Filename = ConcreteModel.java


Constructor & Destructor Documentation

metadone.metabusiness.impl.ConcreteModel_impl.ConcreteModel_impl ( K_Object  target) throws BadPreCondition

Member Function Documentation

ConcreteDef metadone.metabusiness.impl.ConcreteModel_impl.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

Implements metadone.metabusiness.ConcreteModel.

References metadone.metabusiness.impl.ConcreteModel_impl._addInDefinition(), and metadone.exception.NullArgument.check().

Referenced by metadone.metabusiness.impl.ConcreteModel_impl._createRole().

static metadone.repository.kernel.K_PropertyType.FirstLastMode metadone.metabusiness.impl.ConcreteModel_impl.convertWhere ( FirstLastMode  fl) [static, private]
ConcreteModel metadone.metabusiness.impl.ConcreteModel_impl.createModel ( MetaModel  metamodel) throws BadPreCondition

Creates a new ConcreteModel.

Parameters:
metamodelThe metamodel to instantiate
Returns:
A new concrete model
Exceptions:
BadPreCondition

Implements metadone.metabusiness.ConcreteModel.

References metadone.metabusiness.impl.FactoryOfProxy.buildConcreteModel(), metadone.metabusiness.impl.ConcreteModel_impl.createObject(), and metadone.metabusiness.impl.ConcreteObject_impl.getTarget().

ConcreteObject_impl metadone.metabusiness.impl.ConcreteModel_impl.createObject ( MetaObject  metaobject) throws BadPreCondition
ConcreteRole_impl metadone.metabusiness.impl.ConcreteModel_impl.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)

Implements metadone.metabusiness.ConcreteModel.

References metadone.metabusiness.impl.ConcreteModel_impl._createRole(), metadone.metabusiness.impl.ConcreteModel_impl.defaultMode(), metadone.metabusiness.impl.ConcreteModel_impl.isOrdered(), metadone.metabusiness.impl.ConcreteObject_impl.narrow(), metadone.metabusiness.impl.MetaObject_impl.narrow(), and metadone.metabusiness.impl.ConcreteModel_impl.precondition_createRole().

Referenced by metadone.metabusiness.impl.ConcreteObject_impl._sharePropertyGeneric(), metadone.metabusiness.impl.ConcreteObject_impl.addPropertyGeneric(), and metadone.metabusiness.impl.MetaObject_impl.createMetaProperty().

ConcreteRole metadone.metabusiness.impl.ConcreteModel_impl.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)

Implements metadone.metabusiness.ConcreteModel.

References metadone.metabusiness.impl.ConcreteModel_impl._createRole().

static FirstLastMode metadone.metabusiness.impl.ConcreteModel_impl.defaultMode ( boolean  last) [static, private]
Set<ConcreteObject> metadone.metabusiness.impl.ConcreteModel_impl.getDefinition ( ) throws BadPreCondition
Set<ConcreteObject> metadone.metabusiness.impl.ConcreteModel_impl.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)

Implements metadone.metabusiness.ConcreteModel.

References metadone.metabusiness.impl.ConcreteModel_impl._getDefinition(), and metadone.exception.NullArgument.check().

Set<ConcreteObject> metadone.metabusiness.impl.ConcreteModel_impl.getDefinitionRestricted ( MetaObject  restriction) throws BadPreCondition

Retrieves all ConcreteObjects in 'this' typed by the given MetaObject instance.

Parameters:
restrictionthe MetaObject typing the wanted ConcreteObject instances. Must belong to the MetaModel that types 'this'. Can not be null.
Returns:
The set of ConcreteObjects contained in the definition of this whose type is restriction.
Exceptions:
BadPreCondition

Implements metadone.metabusiness.ConcreteModel.

References metadone.metabusiness.impl.ConcreteModel_impl._getDefinitionRestricted(), and metadone.exception.NullArgument.check().

ConcreteDef metadone.metabusiness.impl.ConcreteModel_impl.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

Implements metadone.metabusiness.ConcreteModel.

References metadone.metabusiness.impl.ConcreteModel_impl.isInDefinition().

ConcreteDef metadone.metabusiness.impl.ConcreteModel_impl.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

Implements metadone.metabusiness.ConcreteModel.

References metadone.metabusiness.impl.ConcreteModel_impl.isInDefinition().

Set<ConcreteDef> metadone.metabusiness.impl.ConcreteModel_impl.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

Implements metadone.metabusiness.ConcreteModel.

References metadone.metabusiness.impl.ConcreteModel_impl.getDefinition().

boolean metadone.metabusiness.impl.ConcreteModel_impl.isInDefinition ( ConcreteObject  object) throws BadPreCondition
boolean metadone.metabusiness.impl.ConcreteModel_impl.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)

Implements metadone.metabusiness.ConcreteModel.

References metadone.exception.NullArgument.check(), and metadone.metabusiness.impl.ConcreteModel_impl.isInDefinition().

static boolean metadone.metabusiness.impl.ConcreteModel_impl.isOrdered ( MetaRole  mr) throws BadPreCondition [static, private]
void metadone.metabusiness.impl.ConcreteModel_impl.precondition_createRole ( MetaRole_impl  mr,
ConcreteObject_impl  domain,
ConcreteObject_impl  range 
) throws BadPreCondition [private]
boolean metadone.metabusiness.impl.ConcreteModel_impl.removeFromDefinition ( ConcreteObject  object) throws BadPreCondition
boolean metadone.metabusiness.impl.ConcreteModel_impl.someParentIsDef ( K_Property  candidate) throws BadPreCondition [private]
Parameters:
candidate
Returns:
true if a parent (direct or indirect) denotes the workspace.getDef_pt()PropertyType.
Exceptions:
BadPreCondition

References metadone.repository.kernel.K_Property.getModel(), and metadone.metabusiness.impl.WorkspaceObject_impl.getWorkspace().

Referenced by metadone.metabusiness.impl.ConcreteModel_impl._isInDefinition(), and metadone.metabusiness.impl.ConcreteModel_impl.removeFromDefinition().


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