MetaDone
|
Classes | |
class | MapMetaToConcrete |
Public Member Functions | |
ConcreteObject_impl (K_Object target) throws BadPreCondition | |
String | getIdentifier () |
boolean | hasType (MetaObject typed) throws BadPreCondition |
Set< MetaObject > | getTypes () throws BadPreCondition |
MetaObject | getType (MetaModel metamodel) throws BadPreCondition |
boolean | detachProperty (MetaPropertyExt<?> metaprop, ConcretePropertyExt<?> cp) throws BadPreCondition |
String | getOnePropertyString (MetaPropertyExt<?> prop) throws BadPreCondition |
List< ConcreteRole > | getAllConcreteRolesDomain (MetaRole metarole) throws BadPreCondition |
List< ConcreteRole > | getAllConcreteRolesRange (MetaRole metarole) throws BadPreCondition |
boolean | isOnTheOtherSide (MetaRole metarole, ConcreteObject concreteObject) throws BadPreCondition |
Set< ConcreteModel > | getConcreteModels () throws BadPreCondition |
boolean | delete () throws BadPreCondition |
MetaProperty_impl<?> | narrow2MetaProperty () throws BadPreCondition |
MetaObject_impl | narrow2MetaObject () throws BadPreCondition |
MetaRole_impl | narrow2MetaRole () throws BadPreCondition |
MetaModel_impl | narrow2MetaModel () throws BadPreCondition |
ConcreteRole_impl | narrow2ConcreteRole () throws BadPreCondition |
ConcreteProperty_impl<?> | narrow2ConcreteProperty () throws BadPreCondition |
ConcreteModel_impl | narrow2ConcreteModel () throws BadPreCondition |
int | hashCode () |
boolean | equals (Object obj) |
int | compareTo (ConcreteObject arg) |
List< ConcreteObject > | getAllConcreteRolesDomainCO (MetaRole metarole) throws BadPreCondition |
List< ConcreteObject > | getAllConcreteRolesRangeCO (MetaRole metarole) throws BadPreCondition |
String | getDisplayName (final MetaModel mm) throws BadPreCondition |
ConcretePropertyExt< Boolean > | createPropertyBoolean (MetaPropertyExt< Boolean > mpX, boolean value, ConcreteModel cm) throws BadPreCondition |
ConcretePropertyExt< Character > | createPropertyChar (MetaPropertyExt< Character > mpX, char value, ConcreteModel cm) throws BadPreCondition |
ConcretePropertyExt< Double > | createPropertyFloat (MetaPropertyExt< Double > mpX, double value, ConcreteModel cm) throws BadPreCondition |
ConcretePropertyExt< Long > | createPropertyInteger (MetaPropertyExt< Long > mpX, long value, ConcreteModel cm) throws BadPreCondition |
ConcretePropertyExt< String > | createPropertyString (MetaPropertyExt< String > mpX, String value, ConcreteModel cm) throws BadPreCondition |
boolean | isGhost () |
ConcreteObject | getOneConcreteRolesDomainCO (MetaRole metarole) throws BadPreCondition |
ConcreteObject | getOneConcreteRolesRangeCO (MetaRole metarole) throws BadPreCondition |
ConcretePropertyExt< Character > | createEnumPropertyChar (MetaPropertyExt< Character > mpX, char value, ConcreteModel cm) throws BadPreCondition |
ConcretePropertyExt< Double > | createEnumPropertyFloat (MetaPropertyExt< Double > mpX, double value, ConcreteModel cm) throws BadPreCondition |
ConcretePropertyExt< Long > | createEnumPropertyInteger (MetaPropertyExt< Long > mpX, long value, ConcreteModel cm) throws BadPreCondition |
ConcretePropertyExt< String > | createEnumPropertyString (MetaPropertyExt< String > mpX, String value, ConcreteModel cm) throws BadPreCondition |
Iterator< ConcreteRole > | getAllConcreteRoles (MetaRole mr, RoleSide side) throws BadPreCondition |
Iterator< ConcreteObject > | getAllConcreteRolesCO (MetaRole mr, RoleSide side) throws BadPreCondition |
ConcreteObject | getOneConcreteRolesCO (MetaRole metarole, RoleSide side) throws BadPreCondition |
Iterator<?extends ConcreteObject > | getLinkedObjects (RefType type, RoleSide side) |
Protected Member Functions | |
final K_Object | getTarget () |
List< ConcreteObject > | _getAllConcreteRolesDomainCO (MetaRole_impl metarole) |
List< ConcreteObject > | _getAllConcreteRolesRangeCO (MetaRole_impl metarole) |
ConcreteObject | _getOneConcreteRolesDomainCO (MetaRole_impl metarole) |
ConcreteObject | _getOneConcreteRolesRangeCO (MetaRole_impl metarole) |
Package Functions | |
private< A > ConcretePropertyExt< A > | addPropertyGeneric (MetaPropertyExt_impl< A > metaprop, K_Object value, ConcreteModel_impl model) |
public< T > ConcretePropertyExt< T > | getOneProperty (MetaPropertyExt< T > prop) throws BadPreCondition |
public< T > List<?extends ConcreteProperty< T > > | getProperties (MetaPropertyExt< T > prop) throws BadPreCondition |
private< T > List < ConcreteProperty< T > > | _getProperties (MetaPropertyExt_impl< T > prop) |
public< T extends WorkspaceObject > boolean | isA (Class< T > c) |
private< T extends MetaObject > boolean | isAConcrete (Class< T > cl) |
public< T extends WorkspaceObject > T | narrow (Class< T > c) throws BadPreCondition |
public< T > ConcretePropertyExt< T > | createProperty (MetaPropertyExt< T > mp, T value, ConcreteModel cm) throws BadPreCondition |
public< T > T | getOnePropertyValue (MetaPropertyExt< T > prop) throws BadPreCondition |
public< T > ConcretePropertyExt< T > | setOnePropertyValue (MetaPropertyExt< T > prop, T value, ConcreteModel model) throws BadPreCondition |
private< T > ConcretePropertyExt< T > | _sharePropertyGeneric (MetaPropertyExt< T > metaprop, ConcreteProperty< T > cp, ConcreteModel model) |
public< T > ConcretePropertyExt< T > | shareProperty (MetaPropertyExt< T > mp, ConcreteProperty< T > cp, ConcreteModel model) throws BadPreCondition |
public< T > Iterator < ConcreteRole > | getFilteredConcreteRoles (MetaRole mr, final RoleSide side, final boolean onRole, final MetaPropertyExt< T > mp, final T value) throws BadPreCondition |
public< T > Iterator < ConcreteObject > | getFilteredConcreteRolesCO (MetaRole mr, final RoleSide side, boolean onRole, MetaPropertyExt< T > mp, T value) throws BadPreCondition |
public< T > Iterator<?extends ConcreteObject > | getLinkedObjects (RefType type, RoleSide side, final MetaPropertyExt< T > mp, final T value) |
Private Member Functions | |
final MetaObject | _getType (MetaModel metamodel) |
boolean | _detach (MetaPropertyExt_impl<?> metaprop, ConcretePropertyExt_impl<?> cp) |
List< ConcreteRole > | _getAllConcreteRolesDomain (MetaRole_impl metarole) |
List< ConcreteRole > | _getAllConcreteRolesRange (MetaRole_impl metarole) |
boolean | _isOnTheOtherSide (MetaRole_impl metarole, ConcreteObject_impl concreteObject) |
void | deleteAllTheObjectsIn (Set< ConcreteObject_impl > accumulator) |
void | checkObjectIsOwnerOfProperty (MetaPropertyExt_impl<?> prop) throws InternalError, BadPreCondition |
String | _getDisplayName (final MetaModel mm) |
String | evaluateFormula (String formula, MetaModel mm) |
void | _precond_createProperty (MetaPropertyExt_impl<?> mpX, ConcreteModel cm, K_ObjectType type) throws BadPreCondition |
Static Private Member Functions | |
static void | getDependumIfSetIsDeleted (ConcreteObject co, Set< ConcreteObject_impl > acc) throws BadPreCondition |
Private Attributes | |
final K_Object | target |
Static Private Attributes | |
static final String | THE_TYPE_OF_THE_METAPROPERTY_DOESN_T_MATCH_THE_SIGNATURE_OF_THE_METHOD = "The type of the metaproperty doesn't match the signature of the method." |
static final String | THE_CARDINALITY_OF_THE_METAPROPERTY_IS_NOT_RESPECTED = "The cardinality of the metaproperty is not respected" |
static final Logger | logger = Logger.getLogger(ConcreteObject_impl.class) |
This class denotes instance of metaobjects, for example: if state is a metaobject, then IDLE or BUSY could be ConcreteObject_impl.
metadone.metabusiness.impl.ConcreteObject_impl.ConcreteObject_impl | ( | K_Object | target | ) | throws BadPreCondition |
boolean metadone.metabusiness.impl.ConcreteObject_impl._detach | ( | MetaPropertyExt_impl<?> | metaprop, |
ConcretePropertyExt_impl<?> | cp | ||
) | [private] |
List<ConcreteRole> metadone.metabusiness.impl.ConcreteObject_impl._getAllConcreteRolesDomain | ( | MetaRole_impl | metarole | ) | [private] |
References metadone.metabusiness.impl.FactoryOfProxy.buildConcreteRole(), metadone.repository.kernel.K_Object.getDomainOf(), metadone.metabusiness.impl.MetaRole_impl.getMetaroleType(), and metadone.metabusiness.impl.ConcreteObject_impl.getTarget().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRolesDomain().
List<ConcreteObject> metadone.metabusiness.impl.ConcreteObject_impl._getAllConcreteRolesDomainCO | ( | MetaRole_impl | metarole | ) | [protected] |
References metadone.metabusiness.impl.FactoryOfProxy.buildConcreteRole(), metadone.repository.kernel.K_Object.getDomainOf(), metadone.metabusiness.impl.MetaRole_impl.getMetaroleType(), and metadone.metabusiness.impl.ConcreteObject_impl.getTarget().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRolesDomainCO().
List<ConcreteRole> metadone.metabusiness.impl.ConcreteObject_impl._getAllConcreteRolesRange | ( | MetaRole_impl | metarole | ) | [private] |
References metadone.metabusiness.impl.FactoryOfProxy.buildConcreteRole(), metadone.metabusiness.impl.MetaRole_impl.getMetaroleType(), metadone.repository.kernel.K_Object.getRangeOf(), and metadone.metabusiness.impl.ConcreteObject_impl.getTarget().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRolesRange().
List<ConcreteObject> metadone.metabusiness.impl.ConcreteObject_impl._getAllConcreteRolesRangeCO | ( | MetaRole_impl | metarole | ) | [protected] |
References metadone.metabusiness.impl.FactoryOfProxy.buildConcreteRole(), metadone.metabusiness.impl.MetaRole_impl.getMetaroleType(), metadone.repository.kernel.K_Object.getRangeOf(), and metadone.metabusiness.impl.ConcreteObject_impl.getTarget().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRolesRangeCO().
String metadone.metabusiness.impl.ConcreteObject_impl._getDisplayName | ( | final MetaModel | mm | ) | [private] |
References metadone.metabusiness.impl.ConcreteObject_impl.evaluateFormula(), metadone.metabusiness.MetaObject.findDisplayNameFormula(), metadone.metabusiness.MetaObject.getName(), metadone.metabusiness.impl.ConcreteObject_impl.getType(), metadone.metabusiness.impl.ConcreteObject_impl.getTypes(), and metadone.metabusiness.impl.ConcreteObject_impl.logger.
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.getDisplayName().
ConcreteObject metadone.metabusiness.impl.ConcreteObject_impl._getOneConcreteRolesDomainCO | ( | MetaRole_impl | metarole | ) | [protected] |
ConcreteObject metadone.metabusiness.impl.ConcreteObject_impl._getOneConcreteRolesRangeCO | ( | MetaRole_impl | metarole | ) | [protected] |
private<T> List<ConcreteProperty<T> > metadone.metabusiness.impl.ConcreteObject_impl._getProperties | ( | MetaPropertyExt_impl< T > | prop | ) | [package] |
final MetaObject metadone.metabusiness.impl.ConcreteObject_impl._getType | ( | MetaModel | metamodel | ) | [private] |
References metadone.metabusiness.impl.FactoryOfProxy.buildMetaObject(), metadone.repository.kernel.K_Object.getObjectTypes(), metadone.metabusiness.impl.WorkspaceObject_impl.getWorkspace(), metadone.metabusiness.MetaModel.hasInItsDefinition(), metadone.metabusiness.impl.Workspace_impl.isAMetaObject(), metadone.util.SetUtil.isDisjoined(), and metadone.metabusiness.impl.ConcreteObject_impl.target.
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.getType().
boolean metadone.metabusiness.impl.ConcreteObject_impl._isOnTheOtherSide | ( | MetaRole_impl | metarole, |
ConcreteObject_impl | concreteObject | ||
) | [private] |
void metadone.metabusiness.impl.ConcreteObject_impl._precond_createProperty | ( | MetaPropertyExt_impl<?> | mpX, |
ConcreteModel | cm, | ||
K_ObjectType | type | ||
) | throws BadPreCondition [private] |
References metadone.exception.NullArgument.check(), metadone.metabusiness.impl.ConcreteObject_impl.THE_CARDINALITY_OF_THE_METAPROPERTY_IS_NOT_RESPECTED, and metadone.metabusiness.impl.ConcreteObject_impl.THE_TYPE_OF_THE_METAPROPERTY_DOESN_T_MATCH_THE_SIGNATURE_OF_THE_METHOD.
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.createPropertyBoolean(), metadone.metabusiness.impl.ConcreteObject_impl.createPropertyChar(), metadone.metabusiness.impl.ConcreteObject_impl.createPropertyFloat(), metadone.metabusiness.impl.ConcreteObject_impl.createPropertyInteger(), and metadone.metabusiness.impl.ConcreteObject_impl.createPropertyString().
private<T> ConcretePropertyExt<T> metadone.metabusiness.impl.ConcreteObject_impl._sharePropertyGeneric | ( | MetaPropertyExt< T > | metaprop, |
ConcreteProperty< T > | cp, | ||
ConcreteModel | model | ||
) | [package] |
Set this.metaprop=rangeProperty
metapropExt | the metapropertyExt |
value | the value to set |
metamodel | the metamodel of 'model' |
model | the model within the new concrete property will be added. |
Metal2Exception | |
BadPreCondition |
References metadone.metabusiness.impl.ConcreteModel_impl.createRole(), and metadone.metabusiness.WorkspaceObject.narrow().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.shareProperty().
private<A> ConcretePropertyExt<A> metadone.metabusiness.impl.ConcreteObject_impl.addPropertyGeneric | ( | MetaPropertyExt_impl< A > | metaprop, |
K_Object | value, | ||
ConcreteModel_impl | model | ||
) | [package] |
Set this.metaprop=rangeProperty
metapropExt | the metapropertyExt |
value | the value to set |
metamodel | the metamodel of 'model' |
model | the model within the new concrete property will be added. |
Metal2Exception | |
BadPreCondition |
References metadone.metabusiness.impl.ConcreteModel_impl.createObject(), metadone.repository.kernel.K_PropertyType.createProperty(), metadone.metabusiness.impl.ConcreteModel_impl.createRole(), metadone.repository.kernel.K_Common.getDataObject(), metadone.repository.kernel.K_Object.getDomainOf(), metadone.util.ListUtil.getOneOf(), metadone.metabusiness.impl.ConcreteObject_impl.getTarget(), metadone.metabusiness.impl.WorkspaceObject_impl.getWorkspace(), and metadone.repository.kernel.DataObject.narrow_K_PropertyType().
Referenced by 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.ConcreteObject_impl.createPropertyBoolean(), metadone.metabusiness.impl.ConcreteObject_impl.createPropertyChar(), metadone.metabusiness.impl.ConcreteObject_impl.createPropertyFloat(), metadone.metabusiness.impl.ConcreteObject_impl.createPropertyInteger(), and metadone.metabusiness.impl.ConcreteObject_impl.createPropertyString().
void metadone.metabusiness.impl.ConcreteObject_impl.checkObjectIsOwnerOfProperty | ( | MetaPropertyExt_impl<?> | prop | ) | throws InternalError, BadPreCondition [private] |
prop |
InternalException | |
BadPreCondition |
References metadone.metabusiness.impl.ConcreteObject_impl.getIdentifier(), metadone.metabusiness.impl.ConcreteObject_impl.getTypes(), and metadone.metabusiness.impl.ConcreteObject_impl.hasType().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.getProperties().
int metadone.metabusiness.impl.ConcreteObject_impl.compareTo | ( | ConcreteObject | arg | ) |
ConcretePropertyExt<Character> metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyChar | ( | MetaPropertyExt< Character > | mpX, |
char | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl.addPropertyGeneric(), metadone.exception.NullArgument.check(), metadone.metabusiness.impl.Workspace_impl.getMP_EnumChar(), metadone.metabusiness.impl.Workspace_impl.getProject(), metadone.metabusiness.ConcreteObject.getProperties(), metadone.metabusiness.impl.Workspace_impl.getPropertyHasType_pt(), metadone.repository.kernel.Project.getTypeChar(), metadone.metabusiness.impl.ConcreteObject_impl.narrow(), metadone.metabusiness.WorkspaceObject.narrow2ConcreteObject(), metadone.metabusiness.impl.ConcreteObject_impl.THE_CARDINALITY_OF_THE_METAPROPERTY_IS_NOT_RESPECTED, metadone.metabusiness.impl.ConcreteObject_impl.THE_TYPE_OF_THE_METAPROPERTY_DOESN_T_MATCH_THE_SIGNATURE_OF_THE_METHOD, and metadone.metabusiness.impl.WorkspaceObject_impl.workspace.
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.createProperty().
ConcretePropertyExt<Double> metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyFloat | ( | MetaPropertyExt< Double > | mpX, |
double | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl.addPropertyGeneric(), metadone.exception.NullArgument.check(), metadone.metabusiness.impl.Workspace_impl.getMP_EnumFloat(), metadone.metabusiness.impl.Workspace_impl.getProject(), metadone.metabusiness.ConcreteObject.getProperties(), metadone.metabusiness.impl.Workspace_impl.getPropertyHasType_pt(), metadone.repository.kernel.Project.getTypeFloat(), metadone.metabusiness.impl.ConcreteObject_impl.narrow(), metadone.metabusiness.WorkspaceObject.narrow2ConcreteObject(), metadone.metabusiness.impl.ConcreteObject_impl.THE_CARDINALITY_OF_THE_METAPROPERTY_IS_NOT_RESPECTED, metadone.metabusiness.impl.ConcreteObject_impl.THE_TYPE_OF_THE_METAPROPERTY_DOESN_T_MATCH_THE_SIGNATURE_OF_THE_METHOD, and metadone.metabusiness.impl.WorkspaceObject_impl.workspace.
ConcretePropertyExt<Long> metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyInteger | ( | MetaPropertyExt< Long > | mpX, |
long | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl.addPropertyGeneric(), metadone.exception.NullArgument.check(), metadone.metabusiness.impl.Workspace_impl.getMP_EnumInteger(), metadone.metabusiness.impl.Workspace_impl.getProject(), metadone.metabusiness.ConcreteObject.getProperties(), metadone.metabusiness.impl.Workspace_impl.getPropertyHasType_pt(), metadone.repository.kernel.Project.getTypeInteger(), metadone.metabusiness.impl.ConcreteObject_impl.narrow(), metadone.metabusiness.WorkspaceObject.narrow2ConcreteObject(), metadone.metabusiness.impl.ConcreteObject_impl.THE_CARDINALITY_OF_THE_METAPROPERTY_IS_NOT_RESPECTED, metadone.metabusiness.impl.ConcreteObject_impl.THE_TYPE_OF_THE_METAPROPERTY_DOESN_T_MATCH_THE_SIGNATURE_OF_THE_METHOD, and metadone.metabusiness.impl.WorkspaceObject_impl.workspace.
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.createProperty().
ConcretePropertyExt<String> metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyString | ( | MetaPropertyExt< String > | mpX, |
String | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl.addPropertyGeneric(), metadone.exception.NullArgument.check(), metadone.metabusiness.impl.Workspace_impl.getMP_EnumString(), metadone.metabusiness.impl.Workspace_impl.getProject(), metadone.metabusiness.ConcreteObject.getProperties(), metadone.metabusiness.impl.Workspace_impl.getPropertyHasType_pt(), metadone.repository.kernel.Project.getTypeString(), metadone.metabusiness.impl.ConcreteObject_impl.narrow(), metadone.metabusiness.WorkspaceObject.narrow2ConcreteObject(), metadone.metabusiness.impl.ConcreteObject_impl.THE_CARDINALITY_OF_THE_METAPROPERTY_IS_NOT_RESPECTED, metadone.metabusiness.impl.ConcreteObject_impl.THE_TYPE_OF_THE_METAPROPERTY_DOESN_T_MATCH_THE_SIGNATURE_OF_THE_METHOD, and metadone.metabusiness.impl.WorkspaceObject_impl.workspace.
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.createProperty().
public<T> ConcretePropertyExt<T> metadone.metabusiness.impl.ConcreteObject_impl.createProperty | ( | MetaPropertyExt< T > | mp, |
T | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition [package] |
Creates a new property on this object placed in the given concrete model.
The created property may be enumerated.
mp | The metaproperty |
value | The value |
cm | The concrete model |
BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyChar(), metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyInteger(), metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyString(), metadone.metabusiness.impl.ConcreteObject_impl.createPropertyBoolean(), metadone.metabusiness.impl.ConcreteObject_impl.createPropertyChar(), metadone.metabusiness.impl.ConcreteObject_impl.createPropertyFloat(), metadone.metabusiness.impl.ConcreteObject_impl.createPropertyInteger(), and metadone.metabusiness.impl.ConcreteObject_impl.createPropertyString().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.setOnePropertyValue().
ConcretePropertyExt<Boolean> metadone.metabusiness.impl.ConcreteObject_impl.createPropertyBoolean | ( | MetaPropertyExt< Boolean > | mpX, |
boolean | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl._precond_createProperty(), metadone.metabusiness.impl.ConcreteObject_impl.addPropertyGeneric(), metadone.repository.kernel.K_TypeBoolean.createObjectBoolean(), metadone.metabusiness.impl.Workspace_impl.getProject(), metadone.repository.kernel.Project.getTypeBoolean(), and metadone.metabusiness.impl.WorkspaceObject_impl.workspace.
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.createProperty().
ConcretePropertyExt<Character> metadone.metabusiness.impl.ConcreteObject_impl.createPropertyChar | ( | MetaPropertyExt< Character > | mpX, |
char | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl._precond_createProperty(), metadone.metabusiness.impl.ConcreteObject_impl.addPropertyGeneric(), metadone.repository.kernel.K_TypeChar.createObjectChar(), metadone.metabusiness.impl.Workspace_impl.getProject(), metadone.repository.kernel.Project.getTypeChar(), and metadone.metabusiness.impl.WorkspaceObject_impl.workspace.
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.createProperty().
ConcretePropertyExt<Double> metadone.metabusiness.impl.ConcreteObject_impl.createPropertyFloat | ( | MetaPropertyExt< Double > | mpX, |
double | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl._precond_createProperty(), metadone.metabusiness.impl.ConcreteObject_impl.addPropertyGeneric(), metadone.repository.kernel.K_TypeFloat.createObjectFloat(), metadone.metabusiness.impl.Workspace_impl.getProject(), metadone.repository.kernel.Project.getTypeFloat(), and metadone.metabusiness.impl.WorkspaceObject_impl.workspace.
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.createProperty().
ConcretePropertyExt<Long> metadone.metabusiness.impl.ConcreteObject_impl.createPropertyInteger | ( | MetaPropertyExt< Long > | mpX, |
long | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl._precond_createProperty(), metadone.metabusiness.impl.ConcreteObject_impl.addPropertyGeneric(), metadone.repository.kernel.K_TypeInteger.createObjectInteger(), metadone.metabusiness.impl.Workspace_impl.getProject(), metadone.repository.kernel.Project.getTypeInteger(), and metadone.metabusiness.impl.WorkspaceObject_impl.workspace.
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.createProperty().
ConcretePropertyExt<String> metadone.metabusiness.impl.ConcreteObject_impl.createPropertyString | ( | MetaPropertyExt< String > | mpX, |
String | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl._precond_createProperty(), metadone.metabusiness.impl.ConcreteObject_impl.addPropertyGeneric(), metadone.repository.kernel.K_TypeString.createObjectString(), metadone.metabusiness.impl.Workspace_impl.getProject(), metadone.repository.kernel.Project.getTypeString(), and metadone.metabusiness.impl.WorkspaceObject_impl.workspace.
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.createProperty().
boolean metadone.metabusiness.impl.ConcreteObject_impl.delete | ( | ) | throws BadPreCondition |
Deletes the concrete object from the repository and burns the proxy.
BadPreCondition |
Implements metadone.metabusiness.WorkspaceObject.
References metadone.metabusiness.impl.ConcreteObject_impl.deleteAllTheObjectsIn(), metadone.metabusiness.impl.ConcreteObject_impl.getDependumIfSetIsDeleted(), and metadone.metabusiness.impl.ConcreteObject_impl.isGhost().
void metadone.metabusiness.impl.ConcreteObject_impl.deleteAllTheObjectsIn | ( | Set< ConcreteObject_impl > | accumulator | ) | [private] |
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.delete().
boolean metadone.metabusiness.impl.ConcreteObject_impl.detachProperty | ( | MetaPropertyExt<?> | metaprop, |
ConcretePropertyExt<?> | cp | ||
) | throws BadPreCondition |
Removes the 'cp' concrete property from the 'this' concrete object as a valuation of the 'metaprop' metaproperty.
If 'cp' is no more referenced as a valuation of some metaproperty, then the concreteproperty is deleted (physically removed from the repository), and the proxy is burned.
metaprop | The metaproperty that attaches the concrete property to 'this' |
cp | The concrete property |
BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl._detach(), and metadone.exception.NullArgument.check().
boolean metadone.metabusiness.impl.ConcreteObject_impl.equals | ( | Object | obj | ) |
String metadone.metabusiness.impl.ConcreteObject_impl.evaluateFormula | ( | String | formula, |
MetaModel | mm | ||
) | [private] |
formula | denotes a script expression to be evaluated. |
mm | The metamodel that can help to precise the name to produce. |
formula
in the context of the mm
metamodel (it can be null) References metadone.metabusiness.script.ScriptEvaluator.declareVariable(), metadone.metabusiness.script.ScriptEvaluator.evaluate(), metadone.metabusiness.script.ScriptEvaluator.ScriptResult.getException(), metadone.metabusiness.script.ScriptEvaluator.getLanguage(), metadone.metabusiness.script.ScriptEvaluator.ScriptResult.getObject(), metadone.metabusiness.impl.Workspace_impl.getScriptEvaluator(), metadone.metabusiness.script.ScriptEvaluator.ScriptResult.getString(), metadone.metabusiness.script.ScriptEvaluator.ScriptResult.getType(), metadone.metabusiness.impl.WorkspaceObject_impl.getWorkspace(), metadone.metabusiness.script.ScriptEvaluator.ScriptResult.isException(), and metadone.metabusiness.impl.ConcreteObject_impl.logger.
Referenced by metadone.metabusiness.impl.ConcreteObject_impl._getDisplayName().
Iterator<ConcreteRole> metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRoles | ( | MetaRole | mr, |
RoleSide | side | ||
) | throws BadPreCondition |
Iterator<ConcreteObject> metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRolesCO | ( | MetaRole | mr, |
RoleSide | side | ||
) | throws BadPreCondition |
List<ConcreteRole> metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRolesDomain | ( | MetaRole | metarole | ) | throws BadPreCondition |
Gets all the roles in which this is a domain.
metarole | The metarole |
BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl._getAllConcreteRolesDomain(), and metadone.metabusiness.impl.ConcreteObject_impl.hasType().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl._getProperties(), and metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRoles().
List<ConcreteObject> metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRolesDomainCO | ( | MetaRole | metarole | ) | throws BadPreCondition |
Gets all the concrete objects which are on the range side of the roles for the given metarole.
This is equivalent to:
List<ConcreteObject> result = new ...; for (ConcreteRole cr : getAllConcreteRolesDomain(metarole)) { result.add(cr.getRange()); } return result;
metarole | The metarole |
BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl._getAllConcreteRolesDomainCO(), metadone.exception.NullArgument.check(), and metadone.metabusiness.impl.ConcreteObject_impl.hasType().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRolesCO().
List<ConcreteRole> metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRolesRange | ( | MetaRole | metarole | ) | throws BadPreCondition |
Gets all the roles in which this is a range.
metarole | The metarole |
BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl._getAllConcreteRolesRange(), metadone.exception.NullArgument.check(), and metadone.metabusiness.impl.ConcreteObject_impl.hasType().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRoles().
List<ConcreteObject> metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRolesRangeCO | ( | MetaRole | metarole | ) | throws BadPreCondition |
Gets all the concrete objects which are on the domain side of the roles for the given metarole.
This is equivalent to:
List<ConcreteObject> result = new ...; for (ConcreteRole cr : getAllConcreteRolesRange(metarole)) { result.add(cr.getDomain()); } return result;
metarole | The metarole |
BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl._getAllConcreteRolesRangeCO(), metadone.exception.NullArgument.check(), and metadone.metabusiness.impl.ConcreteObject_impl.hasType().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRolesCO().
Set<ConcreteModel> metadone.metabusiness.impl.ConcreteObject_impl.getConcreteModels | ( | ) | throws BadPreCondition |
Gets the concrete models that contain this in their definition
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.FactoryOfProxy.buildConcreteModel(), metadone.metabusiness.impl.Workspace_impl.getDef_pt(), metadone.metabusiness.impl.ConcreteObject_impl.getTarget(), and metadone.metabusiness.impl.WorkspaceObject_impl.workspace.
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.getLinkedObjects().
static void metadone.metabusiness.impl.ConcreteObject_impl.getDependumIfSetIsDeleted | ( | ConcreteObject | co, |
Set< ConcreteObject_impl > | acc | ||
) | throws BadPreCondition [static, private] |
Returns the objects that should be deleted the objects in toDelete will be deleted.
co | the concrete object |
acc | the accumulator for dependent objects |
References metadone.metabusiness.ConcreteObject.getAllConcreteRolesDomain(), metadone.metabusiness.ConcreteObject.getAllConcreteRolesRange(), metadone.metabusiness.ConcreteModel.getDefinitionRestricted(), metadone.metabusiness.MetaObject.getDirectMetaRolesDomain(), metadone.metabusiness.MetaObject.getDirectMetaRolesRange(), metadone.metabusiness.MetaModel.getMemberships(), metadone.metabusiness.WorkspaceObject.narrow(), and metadone.metabusiness.WorkspaceObject.narrow2ConcreteModel().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.delete().
String metadone.metabusiness.impl.ConcreteObject_impl.getDisplayName | ( | final MetaModel | mm | ) | throws BadPreCondition |
References metadone.metabusiness.impl.ConcreteObject_impl._getDisplayName(), metadone.exception.NullArgument.check(), metadone.metabusiness.impl.ConcreteObject_impl.getIdentifier(), metadone.metabusiness.MetaObject.getName(), metadone.metabusiness.impl.ConcreteObject_impl.getType(), metadone.metabusiness.impl.ConcreteObject_impl.logger, and metadone.metabusiness.impl.WorkspaceObject_impl.toString().
public<T> Iterator<ConcreteRole> metadone.metabusiness.impl.ConcreteObject_impl.getFilteredConcreteRoles | ( | MetaRole | mr, |
final RoleSide | side, | ||
final boolean | onRole, | ||
final MetaPropertyExt< T > | mp, | ||
final T | value | ||
) | throws BadPreCondition [package] |
References metadone.util.IteratorUtil.filter(), metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRoles(), metadone.metabusiness.impl.ConcreteObject_impl.getProperties(), and metadone.metabusiness.ConcreteRole.getSide().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.getFilteredConcreteRolesCO().
public<T> Iterator<ConcreteObject> metadone.metabusiness.impl.ConcreteObject_impl.getFilteredConcreteRolesCO | ( | MetaRole | mr, |
final RoleSide | side, | ||
boolean | onRole, | ||
MetaPropertyExt< T > | mp, | ||
T | value | ||
) | throws BadPreCondition [package] |
String metadone.metabusiness.impl.ConcreteObject_impl.getIdentifier | ( | ) |
Gets an identifier for this object.
The identifier is unique for the object in its workspace. if a.equals(b)
then also a.getIdentifier().equals(b.getIdentifier())
.
Implements metadone.metabusiness.WorkspaceObject.
References metadone.metabusiness.impl.ConcreteObject_impl.getTarget().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.checkObjectIsOwnerOfProperty(), metadone.metabusiness.impl.ConcreteObject_impl.getDisplayName(), and metadone.metabusiness.impl.ConcreteRole_impl.toString().
Iterator<? extends ConcreteObject> metadone.metabusiness.impl.ConcreteObject_impl.getLinkedObjects | ( | RefType | type, |
RoleSide | side | ||
) |
References metadone.util.IteratorUtil.emptyIterator(), metadone.metabusiness.impl.ConcreteObject_impl.getConcreteModels(), metadone.metabusiness.impl.ConcreteObject_impl.getTypes(), metadone.metabusiness.impl.ConcreteObject_impl.MapMetaToConcrete.map(), and metadone.metabusiness.impl.ConcreteObject_impl.narrow().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.getLinkedObjects().
public<T> Iterator<? extends ConcreteObject> metadone.metabusiness.impl.ConcreteObject_impl.getLinkedObjects | ( | RefType | type, |
RoleSide | side, | ||
final MetaPropertyExt< T > | mp, | ||
final T | value | ||
) | [package] |
ConcreteObject metadone.metabusiness.impl.ConcreteObject_impl.getOneConcreteRolesCO | ( | MetaRole | metarole, |
RoleSide | side | ||
) | throws BadPreCondition |
ConcreteObject metadone.metabusiness.impl.ConcreteObject_impl.getOneConcreteRolesDomainCO | ( | MetaRole | metarole | ) | throws BadPreCondition |
Gets one of the objects on the range side for the given metarole.
metarole | The metarole |
null
if there is no such object and a random value if there exists several values. BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl._getOneConcreteRolesDomainCO(), and metadone.metabusiness.impl.ConcreteObject_impl.hasType().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.getOneConcreteRolesCO(), and metadone.metabusiness.impl.ConcreteObject_impl.getOneProperty().
ConcreteObject metadone.metabusiness.impl.ConcreteObject_impl.getOneConcreteRolesRangeCO | ( | MetaRole | metarole | ) | throws BadPreCondition |
Gets one of the objects on the domain side for the given metarole.
metarole | The metarole |
null
if there is no such object and a random value if there exists several values. BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl._getOneConcreteRolesRangeCO(), metadone.exception.NullArgument.check(), and metadone.metabusiness.impl.ConcreteObject_impl.hasType().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.getOneConcreteRolesCO().
public<T> ConcretePropertyExt<T> metadone.metabusiness.impl.ConcreteObject_impl.getOneProperty | ( | MetaPropertyExt< T > | prop | ) | throws BadPreCondition [package] |
Gets a single property.
This method is useful specially when the cardinality is 1.
prop | Denotes a metaproperty attached to this object |
null
is no property does exist. BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl.getOneConcreteRolesDomainCO(), and metadone.metabusiness.WorkspaceObject.narrow().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.getOnePropertyValue(), and metadone.metabusiness.impl.ConcreteObject_impl.setOnePropertyValue().
String metadone.metabusiness.impl.ConcreteObject_impl.getOnePropertyString | ( | MetaPropertyExt<?> | prop | ) | throws BadPreCondition |
Gets one property value transformed into a string. // TODO could be deprecated as getOnePropertyValue is enough?
This is equivalent to:
Object result = getOnePropertyValue(prop); return result != null ? result.toString() : null;
prop | Denotes a metaproperty attached to this object |
null
BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl.getOnePropertyValue().
public<T> T metadone.metabusiness.impl.ConcreteObject_impl.getOnePropertyValue | ( | MetaPropertyExt< T > | prop | ) | throws BadPreCondition [package] |
Gets a single property value.
This method is useful specially when the cardinality is 1.
This method is equivalent to:
ConcretePropertyExt<T> cp = getOneProperty(prop); return cp != null ? cp.getValue() : null;
prop | Denotes a metaproperty attached to this object |
null
is no property does exist. BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl.getOneProperty().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.getOnePropertyString().
public<T> List<? extends ConcreteProperty<T> > metadone.metabusiness.impl.ConcreteObject_impl.getProperties | ( | MetaPropertyExt< T > | prop | ) | throws BadPreCondition [package] |
Gets the list of defined properties.
prop | Denotes a metaproperty attached to this metaobject |
BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl._getProperties(), metadone.exception.NullArgument.check(), metadone.metabusiness.impl.ConcreteObject_impl.checkObjectIsOwnerOfProperty(), and metadone.metabusiness.impl.MetaObject_impl.narrow().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.getFilteredConcreteRoles(), metadone.metabusiness.impl.ConcreteObject_impl.getLinkedObjects(), and metadone.metabusiness.impl.ConcreteObject_impl.shareProperty().
final K_Object metadone.metabusiness.impl.ConcreteObject_impl.getTarget | ( | ) | [protected] |
References metadone.metabusiness.impl.ConcreteObject_impl.target.
Referenced by metadone.metabusiness.impl.ConcreteModel_impl._addInDefinition(), metadone.metabusiness.impl.ConcreteModel_impl._createObject(), metadone.metabusiness.impl.ConcreteModel_impl._createRole(), metadone.metabusiness.impl.ConcreteObject_impl._getAllConcreteRolesDomain(), metadone.metabusiness.impl.ConcreteObject_impl._getAllConcreteRolesDomainCO(), metadone.metabusiness.impl.ConcreteObject_impl._getAllConcreteRolesRange(), metadone.metabusiness.impl.ConcreteObject_impl._getAllConcreteRolesRangeCO(), metadone.metabusiness.impl.ConcreteModel_impl._getDefinition(), metadone.metabusiness.impl.ConcreteModel_impl._getDefinitionRestricted(), metadone.metabusiness.impl.ConcreteObject_impl._getOneConcreteRolesDomainCO(), metadone.metabusiness.impl.ConcreteObject_impl._getOneConcreteRolesRangeCO(), metadone.metabusiness.impl.ConcreteModel_impl._isInDefinition(), metadone.metabusiness.impl.ConcreteObject_impl._isOnTheOtherSide(), metadone.metabusiness.impl.MetaObject_impl._shareMetaProperty(), metadone.metabusiness.impl.ConcreteObject_impl.addPropertyGeneric(), metadone.metabusiness.impl.ConcreteRole_impl.afterDomain(), metadone.metabusiness.impl.ConcreteRole_impl.afterRange(), metadone.metabusiness.impl.ConcreteObject_impl.compareTo(), metadone.metabusiness.impl.MetaObject_impl.createMetaProperty(), metadone.metabusiness.impl.ConcreteModel_impl.createModel(), metadone.metabusiness.impl.ConcreteObject_impl.equals(), metadone.metabusiness.impl.ConcreteObject_impl.getConcreteModels(), metadone.metabusiness.impl.ConcreteModel_impl.getDefinition(), metadone.metabusiness.impl.MetaRole_impl.getDomains(), metadone.metabusiness.impl.ConcreteObject_impl.getIdentifier(), metadone.metabusiness.impl.ConcreteRole_impl.getMetaRole(), metadone.metabusiness.impl.MetaRole_impl.getRanges(), metadone.metabusiness.impl.ConcreteObject_impl.hasType(), metadone.metabusiness.impl.MetaRole_impl.listRoles(), metadone.metabusiness.impl.ConcreteObject_impl.narrow2MetaModel(), metadone.metabusiness.impl.ConcreteObject_impl.narrow2MetaObject(), metadone.metabusiness.impl.ConcreteObject_impl.narrow2MetaProperty(), metadone.metabusiness.impl.ConcreteObject_impl.narrow2MetaRole(), metadone.metabusiness.impl.ConcreteProperty_impl< T >.narrowExt(), and metadone.metabusiness.impl.ConcreteModel_impl.removeFromDefinition().
MetaObject metadone.metabusiness.impl.ConcreteObject_impl.getType | ( | MetaModel | metamodel | ) | throws BadPreCondition |
Gets the type of this object in a given metamodel.
metamodel | Denotes the metamodel that contains the metaObject |
BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl._getType(), and metadone.exception.NullArgument.check().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl._getDisplayName(), and metadone.metabusiness.impl.ConcreteObject_impl.getDisplayName().
Set<MetaObject> metadone.metabusiness.impl.ConcreteObject_impl.getTypes | ( | ) | throws BadPreCondition |
Gets the types of this object.
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.FactoryOfProxy.buildMetaObject(), metadone.repository.kernel.K_Object.getObjectTypes(), metadone.metabusiness.impl.WorkspaceObject_impl.getWorkspace(), metadone.metabusiness.impl.Workspace_impl.isAMetaObject(), and metadone.metabusiness.impl.ConcreteObject_impl.target.
Referenced by metadone.metabusiness.impl.ConcreteObject_impl._getDisplayName(), metadone.metabusiness.impl.ConcreteObject_impl.checkObjectIsOwnerOfProperty(), metadone.metabusiness.impl.ConcreteObject_impl.getLinkedObjects(), and metadone.metabusiness.impl.ConcreteObject_impl.isAConcrete().
int metadone.metabusiness.impl.ConcreteObject_impl.hashCode | ( | ) |
boolean metadone.metabusiness.impl.ConcreteObject_impl.hasType | ( | MetaObject | type | ) | throws BadPreCondition |
Indicates whether this object has the given type.
type | The type to check |
Implements metadone.metabusiness.ConcreteObject.
References metadone.exception.NullArgument.check(), and metadone.metabusiness.impl.ConcreteObject_impl.getTarget().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.checkObjectIsOwnerOfProperty(), metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRolesDomain(), metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRolesDomainCO(), metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRolesRange(), metadone.metabusiness.impl.ConcreteObject_impl.getAllConcreteRolesRangeCO(), metadone.metabusiness.impl.ConcreteObject_impl.getOneConcreteRolesDomainCO(), metadone.metabusiness.impl.ConcreteObject_impl.getOneConcreteRolesRangeCO(), and metadone.metabusiness.impl.ConcreteObject_impl.isOnTheOtherSide().
public<T extends WorkspaceObject> boolean metadone.metabusiness.impl.ConcreteObject_impl.isA | ( | Class< T > | c | ) | [package] |
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).
c | The class |
Reimplemented from metadone.metabusiness.impl.WorkspaceObject_impl.
References metadone.metabusiness.impl.ConcreteObject_impl.isAConcrete().
private<T extends MetaObject> boolean metadone.metabusiness.impl.ConcreteObject_impl.isAConcrete | ( | Class< T > | cl | ) | [package] |
References metadone.metabusiness.impl.ConcreteObject_impl.getTypes().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.isA().
boolean metadone.metabusiness.impl.ConcreteObject_impl.isGhost | ( | ) |
Indicates whether this object is a ghost (deleted).
true
iff this object is a ghost Implements metadone.metabusiness.WorkspaceObject.
References metadone.repository.kernel.K_Common.getDataObject(), metadone.repository.kernel.K_Common.isA(), and metadone.metabusiness.impl.ConcreteObject_impl.target.
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.delete().
boolean metadone.metabusiness.impl.ConcreteObject_impl.isOnTheOtherSide | ( | MetaRole | metarole, |
ConcreteObject | concreteObject | ||
) | throws BadPreCondition |
Checks if an object is on the other side of the role.
This method is equivalent to:
for (ConcreteObject co : getAllConcreteRolesDomain(this)) { if (co.equals(concreteObject)) return true; } for (ConcreteObject co : getAllConcreteRolesRange(this)) { if (co.equals(concreteObject)) return true; } return false;
metarole | The metarole |
concreteObject | The concrete object to check |
BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl._isOnTheOtherSide(), metadone.exception.NullArgument.check(), and metadone.metabusiness.impl.ConcreteObject_impl.hasType().
public<T extends WorkspaceObject> T metadone.metabusiness.impl.ConcreteObject_impl.narrow | ( | Class< T > | c | ) | throws BadPreCondition [package] |
Casts this object to an object of the given type.
This method respects: obj.narrow(c).equals(obj) == true
.
c | The class |
BadPreCondition | when isA(c) == false |
Reimplemented from metadone.metabusiness.impl.WorkspaceObject_impl.
References metadone.metabusiness.impl.ConcreteObject_impl.narrow2ConcreteModel(), metadone.metabusiness.impl.ConcreteObject_impl.narrow2ConcreteProperty(), metadone.metabusiness.impl.ConcreteObject_impl.narrow2ConcreteRole(), metadone.metabusiness.impl.ConcreteObject_impl.narrow2MetaModel(), metadone.metabusiness.impl.ConcreteObject_impl.narrow2MetaObject(), metadone.metabusiness.impl.ConcreteObject_impl.narrow2MetaProperty(), and metadone.metabusiness.impl.ConcreteObject_impl.narrow2MetaRole().
Referenced by 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.ConcreteModel_impl.createRole(), metadone.metabusiness.impl.MetaRole_impl.getDomains(), metadone.metabusiness.impl.ConcreteObject_impl.getLinkedObjects(), metadone.metabusiness.impl.MetaRole_impl.getRanges(), metadone.metabusiness.impl.ConcreteModel_impl.isInDefinition(), metadone.metabusiness.impl.MetaRole_impl.listRoles(), metadone.metabusiness.impl.MetaObject_impl.narrow(), metadone.metabusiness.impl.ConcreteProperty_impl< T >.narrowExt(), and metadone.metabusiness.impl.ConcreteModel_impl.removeFromDefinition().
ConcreteModel_impl metadone.metabusiness.impl.ConcreteObject_impl.narrow2ConcreteModel | ( | ) | throws BadPreCondition |
Reimplemented from metadone.metabusiness.impl.WorkspaceObject_impl.
References metadone.metabusiness.impl.FactoryOfProxy.narrowCO2CM().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.narrow().
ConcreteProperty_impl<?> metadone.metabusiness.impl.ConcreteObject_impl.narrow2ConcreteProperty | ( | ) | throws BadPreCondition |
Reimplemented from metadone.metabusiness.impl.WorkspaceObject_impl.
References metadone.metabusiness.impl.FactoryOfProxy.narrowCO2CP().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.narrow().
ConcreteRole_impl metadone.metabusiness.impl.ConcreteObject_impl.narrow2ConcreteRole | ( | ) | throws BadPreCondition |
Reimplemented from metadone.metabusiness.impl.WorkspaceObject_impl.
References metadone.metabusiness.impl.FactoryOfProxy.narrowCO2CR().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.narrow().
MetaModel_impl metadone.metabusiness.impl.ConcreteObject_impl.narrow2MetaModel | ( | ) | throws BadPreCondition |
Reimplemented from metadone.metabusiness.impl.WorkspaceObject_impl.
References metadone.metabusiness.impl.FactoryOfProxy.buildMetaModel(), and metadone.metabusiness.impl.ConcreteObject_impl.getTarget().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.narrow().
MetaObject_impl metadone.metabusiness.impl.ConcreteObject_impl.narrow2MetaObject | ( | ) | throws BadPreCondition |
Reimplemented from metadone.metabusiness.impl.WorkspaceObject_impl.
References metadone.metabusiness.impl.FactoryOfProxy.buildMetaObject(), and metadone.metabusiness.impl.ConcreteObject_impl.getTarget().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.narrow().
MetaProperty_impl<?> metadone.metabusiness.impl.ConcreteObject_impl.narrow2MetaProperty | ( | ) | throws BadPreCondition |
Reimplemented from metadone.metabusiness.impl.WorkspaceObject_impl.
References metadone.metabusiness.impl.FactoryOfProxy.buildMetaProperty(), metadone.repository.kernel.K_Common.getDataObject(), metadone.metabusiness.impl.ConcreteObject_impl.getTarget(), and metadone.repository.kernel.DataObject.narrow_K_ObjectType().
Referenced by metadone.metabusiness.impl.MetaObject_impl.createMetaProperty(), and metadone.metabusiness.impl.ConcreteObject_impl.narrow().
MetaRole_impl metadone.metabusiness.impl.ConcreteObject_impl.narrow2MetaRole | ( | ) | throws BadPreCondition |
Reimplemented from metadone.metabusiness.impl.WorkspaceObject_impl.
References metadone.metabusiness.impl.FactoryOfProxy.buildMetaRole(), metadone.repository.kernel.K_Common.getDataObject(), metadone.metabusiness.impl.ConcreteObject_impl.getTarget(), and metadone.repository.kernel.DataObject.narrow_K_ObjectType().
Referenced by metadone.metabusiness.impl.ConcreteObject_impl.narrow().
public<T> ConcretePropertyExt<T> metadone.metabusiness.impl.ConcreteObject_impl.setOnePropertyValue | ( | MetaPropertyExt< T > | prop, |
T | value, | ||
ConcreteModel | model | ||
) | throws BadPreCondition [package] |
Sets a single property value.
This method is useful specially when the cardinality is 1.
This method is equivalent to:
ConcretePropertyExt<T> cp = getOneProperty(prop); if (cp != null) { cp.setValue(value); } else { cp = createProperty(prop, value, model); } return cp;
prop | Denotes a metaproperty attached to this object |
value | The value to set |
BadPreCondition |
Implements metadone.metabusiness.ConcreteObject.
References metadone.metabusiness.impl.ConcreteObject_impl.createProperty(), metadone.metabusiness.impl.ConcreteObject_impl.getOneProperty(), and metadone.metabusiness.ConcreteProperty< T >.setValue().
public<T> ConcretePropertyExt<T> metadone.metabusiness.impl.ConcreteObject_impl.shareProperty | ( | MetaPropertyExt< T > | mp, |
ConcreteProperty< T > | cp, | ||
ConcreteModel | model | ||
) | throws BadPreCondition [package] |
final Logger metadone.metabusiness.impl.ConcreteObject_impl.logger = Logger.getLogger(ConcreteObject_impl.class) [static, private] |
final K_Object metadone.metabusiness.impl.ConcreteObject_impl.target [private] |
Referenced by metadone.metabusiness.impl.ConcreteObject_impl._getType(), metadone.metabusiness.impl.ConcreteModel_impl.ConcreteModel_impl(), metadone.metabusiness.impl.ConcreteObject_impl.ConcreteObject_impl(), metadone.metabusiness.impl.ConcreteRole_impl.ConcreteRole_impl(), metadone.metabusiness.impl.ConcreteObject_impl.getTarget(), metadone.metabusiness.impl.ConcreteObject_impl.getTypes(), metadone.metabusiness.impl.ConcreteObject_impl.hashCode(), and metadone.metabusiness.impl.ConcreteObject_impl.isGhost().
final String metadone.metabusiness.impl.ConcreteObject_impl.THE_CARDINALITY_OF_THE_METAPROPERTY_IS_NOT_RESPECTED = "The cardinality of the metaproperty is not respected" [static, private] |
Referenced by metadone.metabusiness.impl.ConcreteObject_impl._precond_createProperty(), metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyChar(), metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyFloat(), metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyInteger(), and metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyString().
final String metadone.metabusiness.impl.ConcreteObject_impl.THE_TYPE_OF_THE_METAPROPERTY_DOESN_T_MATCH_THE_SIGNATURE_OF_THE_METHOD = "The type of the metaproperty doesn't match the signature of the method." [static, private] |
Referenced by metadone.metabusiness.impl.ConcreteObject_impl._precond_createProperty(), metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyChar(), metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyFloat(), metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyInteger(), and metadone.metabusiness.impl.ConcreteObject_impl.createEnumPropertyString().