MetaDone
|
Public Member Functions | |
MetaRole_impl (K_ObjectType x, Workspace_impl workspace) throws BadPreCondition | |
boolean | disposeRoles (ConcreteObject domain, ConcreteObject range) throws BadPreCondition |
List< ConcreteObject > | getDomains (ConcreteObject range) throws BadPreCondition |
List< ConcreteObject > | getRanges (ConcreteObject domain) throws BadPreCondition |
List< ConcreteRole > | listRoles (ConcreteObject domain, ConcreteObject range) throws BadPreCondition |
Cardinality | getCardinality () throws BadPreCondition |
MetaObject_impl | getDomain () throws BadPreCondition |
MetaObject_impl | getRange () throws BadPreCondition |
MetaObject | getSide (RoleSide side) throws BadPreCondition |
boolean | isOrdered (RoleSide side) throws BadPreCondition |
boolean | isMany (RoleSide side) |
String | getSideName (RoleSide side) throws BadPreCondition |
boolean | isDomainOrdered () throws BadPreCondition |
boolean | isRangeOrdered () throws BadPreCondition |
void | setDomainOrdered (boolean isOrdered) throws BadPreCondition |
void | setRangeOrdered (boolean isOrdered) throws BadPreCondition |
boolean | isDomainMany () |
boolean | isRangeMany () |
String | getDomainName () throws BadPreCondition |
String | getRangeName () throws BadPreCondition |
void | setDomainName (String name) throws BadPreCondition |
void | setRangeName (String name) throws BadPreCondition |
MetaPropertyExt<?> | toMetaPropertyExt () throws BadPreCondition |
Protected Member Functions | |
final K_PropertyType | getMetaroleType () |
Private Member Functions | |
List< ConcreteRole > | _listRoles (ConcreteObject_impl domain, ConcreteObject_impl range) throws BadPreCondition |
boolean | isOrdered (MetaPropertyExt< Boolean > side) throws BadPreCondition |
void | setOrdered (boolean isOrdered, MetaPropertyExt< Boolean > side) throws BadPreCondition |
void | setRangeDomainName (MetaPropertyExt< String > mp, String name) throws BadPreCondition |
metadone.metabusiness.impl.MetaRole_impl.MetaRole_impl | ( | K_ObjectType | x, |
Workspace_impl | workspace | ||
) | throws BadPreCondition |
Should be used only by the FactoryOfProxy class !
x | |
workspace |
BadPreCondition |
References metadone.metabusiness.impl.WorkspaceObject_impl.workspace.
List<ConcreteRole> metadone.metabusiness.impl.MetaRole_impl._listRoles | ( | ConcreteObject_impl | domain, |
ConcreteObject_impl | range | ||
) | throws BadPreCondition [private] |
boolean metadone.metabusiness.impl.MetaRole_impl.disposeRoles | ( | ConcreteObject | domain, |
ConcreteObject | range | ||
) | throws BadPreCondition |
Disposes all ConcreteRoles typed by 'this' MetaRole between the given ConcreteObjects.
domain | the ConcreteObject specified as the domain |
range | the ConceteObject specified as the range |
BadPreCondition |
Implements metadone.metabusiness.MetaRole.
References metadone.metabusiness.impl.MetaRole_impl.listRoles().
Cardinality metadone.metabusiness.impl.MetaRole_impl.getCardinality | ( | ) | throws BadPreCondition |
Gets the cardinality.
Implements metadone.metabusiness.MetaRole.
References metadone.repository.kernel.K_Object.getDomainOfAsObject(), metadone.util.ListUtil.getOneOf(), metadone.metabusiness.impl.Workspace_impl.getRoleCard_pt(), metadone.metabusiness.impl.MetaObject_impl.getTarget(), metadone.repository.kernel.K_ObjectInteger.getValueObjectInteger(), and metadone.metabusiness.impl.WorkspaceObject_impl.workspace.
Referenced by metadone.metabusiness.impl.MetaRole_impl.isDomainMany(), and metadone.metabusiness.impl.MetaRole_impl.isRangeMany().
MetaObject_impl metadone.metabusiness.impl.MetaRole_impl.getDomain | ( | ) | throws BadPreCondition |
Gets the metaobject on the domain side.
Implements metadone.metabusiness.MetaRole.
References metadone.metabusiness.impl.FactoryOfProxy.buildMetaObject(), and metadone.metabusiness.impl.MetaRole_impl.getMetaroleType().
Referenced by metadone.metabusiness.impl.MetaRole_impl.getSide().
String metadone.metabusiness.impl.MetaRole_impl.getDomainName | ( | ) | throws BadPreCondition |
Gets the name of the domain side.
null
if there is no name BadPreCondition |
Implements metadone.metabusiness.MetaRole.
References metadone.metabusiness.ConcreteObject.getOnePropertyValue(), metadone.metabusiness.impl.WorkspaceObject_impl.getWorkspace(), and metadone.metabusiness.impl.WorkspaceObject_impl.narrow2ConcreteObject().
Referenced by metadone.metabusiness.impl.MetaRole_impl.getSideName(), and metadone.metabusiness.impl.MetaRole_impl.setRangeDomainName().
List<ConcreteObject> metadone.metabusiness.impl.MetaRole_impl.getDomains | ( | ConcreteObject | range | ) | throws BadPreCondition |
Retrieves all ConcreteObjects that are the domains of the given ConcreteObject.
range | the ConcreteObject at the domain side |
BadPreCondition | if the type of 'range' does not comply to the range-side of 'this', or if range is null. |
Implements metadone.metabusiness.MetaRole.
References metadone.metabusiness.impl.FactoryOfProxy.buildConcreteObject(), metadone.exception.NullArgument.check(), metadone.metabusiness.impl.MetaRole_impl.getMetaroleType(), metadone.repository.kernel.K_Object.getObjectTypes(), metadone.repository.kernel.K_Object.getRangeOfAsObject(), metadone.metabusiness.impl.ConcreteObject_impl.getTarget(), and metadone.metabusiness.impl.ConcreteObject_impl.narrow().
final K_PropertyType metadone.metabusiness.impl.MetaRole_impl.getMetaroleType | ( | ) | [protected] |
References metadone.repository.kernel.K_Common.getDataObject(), metadone.metabusiness.impl.MetaObject_impl.getTarget(), and metadone.repository.kernel.DataObject.narrow_K_PropertyType().
Referenced by 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.ConcreteObject_impl._getOneConcreteRolesDomainCO(), metadone.metabusiness.impl.ConcreteObject_impl._getOneConcreteRolesRangeCO(), metadone.metabusiness.impl.ConcreteObject_impl._isOnTheOtherSide(), metadone.metabusiness.impl.MetaRole_impl._listRoles(), metadone.metabusiness.impl.ConcreteRole_impl.afterDomain(), metadone.metabusiness.impl.ConcreteRole_impl.afterRange(), metadone.metabusiness.impl.Workspace_impl.bootstrap_metametamodel(), metadone.metabusiness.impl.MetaRole_impl.getDomain(), metadone.metabusiness.impl.MetaRole_impl.getDomains(), metadone.metabusiness.impl.MetaRole_impl.getRange(), metadone.metabusiness.impl.MetaRole_impl.getRanges(), and metadone.metabusiness.impl.MetaRole_impl.listRoles().
MetaObject_impl metadone.metabusiness.impl.MetaRole_impl.getRange | ( | ) | throws BadPreCondition |
Gets the metaobject on the range side.
Implements metadone.metabusiness.MetaRole.
References metadone.metabusiness.impl.FactoryOfProxy.buildMetaObject(), and metadone.metabusiness.impl.MetaRole_impl.getMetaroleType().
Referenced by metadone.metabusiness.impl.MetaRole_impl.getSide().
String metadone.metabusiness.impl.MetaRole_impl.getRangeName | ( | ) | throws BadPreCondition |
Gets the name of the range side.
null
if there is no name BadPreCondition |
Implements metadone.metabusiness.MetaRole.
References metadone.metabusiness.ConcreteObject.getOnePropertyValue(), metadone.metabusiness.impl.WorkspaceObject_impl.getWorkspace(), and metadone.metabusiness.impl.WorkspaceObject_impl.narrow2ConcreteObject().
Referenced by metadone.metabusiness.impl.MetaRole_impl.getSideName().
List<ConcreteObject> metadone.metabusiness.impl.MetaRole_impl.getRanges | ( | ConcreteObject | domain | ) | throws BadPreCondition |
Retrieves all ConcreteObjects that are the ranges of the given ConcreteObject.
domain | the ConcreteObjects at the range side |
BadPreCondition |
Implements metadone.metabusiness.MetaRole.
References metadone.metabusiness.impl.FactoryOfProxy.buildConcreteObject(), metadone.exception.NullArgument.check(), metadone.repository.kernel.K_Object.getDomainOfAsObject(), metadone.metabusiness.impl.MetaRole_impl.getMetaroleType(), metadone.repository.kernel.K_Object.getObjectTypes(), metadone.metabusiness.impl.ConcreteObject_impl.getTarget(), and metadone.metabusiness.impl.ConcreteObject_impl.narrow().
MetaObject metadone.metabusiness.impl.MetaRole_impl.getSide | ( | RoleSide | side | ) | throws BadPreCondition |
String metadone.metabusiness.impl.MetaRole_impl.getSideName | ( | RoleSide | side | ) | throws BadPreCondition |
boolean metadone.metabusiness.impl.MetaRole_impl.isDomainMany | ( | ) |
Indicates whether the cardinality of the domain is many.
Implements metadone.metabusiness.MetaRole.
References metadone.metabusiness.impl.MetaRole_impl.getCardinality().
Referenced by metadone.metabusiness.impl.MetaRole_impl.isMany().
boolean metadone.metabusiness.impl.MetaRole_impl.isDomainOrdered | ( | ) | throws BadPreCondition |
Indicates whether the domain side is ordered.
Implements metadone.metabusiness.MetaRole.
References metadone.metabusiness.impl.Workspace_impl.getIsDomainMetaRoleOrdered(), metadone.metabusiness.impl.MetaRole_impl.isOrdered(), and metadone.metabusiness.impl.WorkspaceObject_impl.workspace.
Referenced by metadone.metabusiness.impl.MetaRole_impl.isOrdered().
boolean metadone.metabusiness.impl.MetaRole_impl.isMany | ( | RoleSide | side | ) |
boolean metadone.metabusiness.impl.MetaRole_impl.isOrdered | ( | RoleSide | side | ) | throws BadPreCondition |
References metadone.metabusiness.impl.MetaRole_impl.isDomainOrdered(), and metadone.metabusiness.impl.MetaRole_impl.isRangeOrdered().
Referenced by metadone.metabusiness.impl.MetaRole_impl.isDomainOrdered(), metadone.metabusiness.impl.MetaRole_impl.isRangeOrdered(), metadone.metabusiness.impl.MetaRole_impl.setDomainOrdered(), metadone.metabusiness.impl.MetaRole_impl.setOrdered(), and metadone.metabusiness.impl.MetaRole_impl.setRangeOrdered().
boolean metadone.metabusiness.impl.MetaRole_impl.isOrdered | ( | MetaPropertyExt< Boolean > | side | ) | throws BadPreCondition [private] |
boolean metadone.metabusiness.impl.MetaRole_impl.isRangeMany | ( | ) |
Indicates whether the cardinality of the range is many.
Implements metadone.metabusiness.MetaRole.
References metadone.metabusiness.impl.MetaRole_impl.getCardinality().
Referenced by metadone.metabusiness.impl.MetaRole_impl.isMany().
boolean metadone.metabusiness.impl.MetaRole_impl.isRangeOrdered | ( | ) | throws BadPreCondition |
Indicates whether the range side is ordered.
Implements metadone.metabusiness.MetaRole.
References metadone.metabusiness.impl.Workspace_impl.getIsRangeMetaRoleOrdered(), metadone.metabusiness.impl.MetaRole_impl.isOrdered(), and metadone.metabusiness.impl.WorkspaceObject_impl.workspace.
Referenced by metadone.metabusiness.impl.MetaRole_impl.isOrdered().
List<ConcreteRole> metadone.metabusiness.impl.MetaRole_impl.listRoles | ( | ConcreteObject | domain, |
ConcreteObject | range | ||
) | throws BadPreCondition |
Retrieves all ConcreteRoles between the given ConcreteObjects.
domain | the ConcreteObject at the domain-side (not null) |
range | the ConcreteObject at the range-side (not null) |
BadPreCondition | when the types of domain or range do not comply to the domain and range types of 'this'. |
Implements metadone.metabusiness.MetaRole.
References metadone.metabusiness.impl.MetaRole_impl._listRoles(), metadone.exception.NullArgument.check(), metadone.metabusiness.impl.MetaRole_impl.getMetaroleType(), metadone.repository.kernel.K_Object.getObjectTypes(), metadone.metabusiness.impl.ConcreteObject_impl.getTarget(), and metadone.metabusiness.impl.ConcreteObject_impl.narrow().
Referenced by metadone.metabusiness.impl.MetaRole_impl.disposeRoles().
void metadone.metabusiness.impl.MetaRole_impl.setDomainName | ( | String | name | ) | throws BadPreCondition |
Defines the name of the domain side of the metarole.
>This name must be distinct of getRangeName(). If name is null
and if an alias existed before, it is removed.
name | The name or null |
BadPreCondition |
Implements metadone.metabusiness.MetaRole.
References metadone.metabusiness.impl.WorkspaceObject_impl.getWorkspace(), and metadone.metabusiness.impl.MetaRole_impl.setRangeDomainName().
void metadone.metabusiness.impl.MetaRole_impl.setDomainOrdered | ( | boolean | isOrdered | ) | throws BadPreCondition |
Specify if the domain side of this metarole is ordered.
This method can not be used once the metarole has been instantiated (createRole).
BadPreCondition |
Implements metadone.metabusiness.MetaRole.
References metadone.metabusiness.impl.Workspace_impl.getIsDomainMetaRoleOrdered(), metadone.metabusiness.impl.MetaRole_impl.isOrdered(), metadone.metabusiness.impl.MetaRole_impl.setOrdered(), and metadone.metabusiness.impl.WorkspaceObject_impl.workspace.
void metadone.metabusiness.impl.MetaRole_impl.setOrdered | ( | boolean | isOrdered, |
MetaPropertyExt< Boolean > | side | ||
) | throws BadPreCondition [private] |
References metadone.metabusiness.ConcreteObject.createPropertyBoolean(), metadone.metabusiness.impl.Workspace_impl.getOmegaModel(), metadone.metabusiness.ConcreteObject.getOneProperty(), metadone.metabusiness.impl.MetaObject_impl.getTarget(), metadone.repository.kernel.K_ObjectType.hasInstances(), metadone.metabusiness.impl.MetaRole_impl.isOrdered(), metadone.metabusiness.impl.WorkspaceObject_impl.narrow2ConcreteObject(), and metadone.metabusiness.impl.WorkspaceObject_impl.workspace.
Referenced by metadone.metabusiness.impl.MetaRole_impl.setDomainOrdered(), and metadone.metabusiness.impl.MetaRole_impl.setRangeOrdered().
void metadone.metabusiness.impl.MetaRole_impl.setRangeDomainName | ( | MetaPropertyExt< String > | mp, |
String | name | ||
) | throws BadPreCondition [private] |
References metadone.metabusiness.ConcreteObject.createPropertyString(), metadone.metabusiness.ConcreteObject.detachProperty(), metadone.metabusiness.impl.MetaRole_impl.getDomainName(), metadone.metabusiness.ConcreteObject.getOneProperty(), metadone.metabusiness.impl.WorkspaceObject_impl.getWorkspace(), and metadone.metabusiness.impl.WorkspaceObject_impl.narrow2ConcreteObject().
Referenced by metadone.metabusiness.impl.MetaRole_impl.setDomainName(), and metadone.metabusiness.impl.MetaRole_impl.setRangeName().
void metadone.metabusiness.impl.MetaRole_impl.setRangeName | ( | String | name | ) | throws BadPreCondition |
Defines the name of the range side of the metarole.
>This name must be distinct of getDomainName(). If name is null
and if an alias existed before, it is removed.
name | The name or null |
BadPreCondition |
Implements metadone.metabusiness.MetaRole.
References metadone.metabusiness.impl.WorkspaceObject_impl.getWorkspace(), and metadone.metabusiness.impl.MetaRole_impl.setRangeDomainName().
void metadone.metabusiness.impl.MetaRole_impl.setRangeOrdered | ( | boolean | isOrdered | ) | throws BadPreCondition |
Specify if the range side of this metarole is ordered.
This method can not be used once the metarole has been instantiated (createRole).
BadPreCondition |
Implements metadone.metabusiness.MetaRole.
References metadone.metabusiness.impl.Workspace_impl.getIsRangeMetaRoleOrdered(), metadone.metabusiness.impl.MetaRole_impl.isOrdered(), metadone.metabusiness.impl.MetaRole_impl.setOrdered(), and metadone.metabusiness.impl.WorkspaceObject_impl.workspace.
MetaPropertyExt<?> metadone.metabusiness.impl.MetaRole_impl.toMetaPropertyExt | ( | ) | throws BadPreCondition |
Converts this role to a MetaPropertyExt.
BadPreCondition | when this role does not represent a metaproperty |
Implements metadone.metabusiness.MetaRole.
References metadone.metabusiness.impl.FactoryOfProxy.buildMetaPropertyExt().