MetaDone
|
Public Types | |
enum | FirstLastMode { FIRST, LAST, AFTER, SKIP } |
enum | Cardinality { NO_TO_NO = (-999, "no to no"), ONE_TO_MANY = (1, "one to many"), MANY_TO_ONE = (2, "many to one"), ONE_TO_ONE = (3, "one to one"), MANY_TO_MANY = (4, "many to many"), MANYS_TO_MANYS = (0, "manys to manys") } |
Public Member Functions | |
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 | getDomain () throws BadPreCondition |
MetaObject | getRange () throws BadPreCondition |
MetaObject | getSide (RoleSide side) throws BadPreCondition |
boolean | isRangeOrdered () throws BadPreCondition |
boolean | isDomainOrdered () throws BadPreCondition |
boolean | isOrdered (RoleSide side) throws BadPreCondition |
void | setRangeOrdered (boolean isOrdered) throws BadPreCondition |
void | setDomainOrdered (boolean isOrdered) throws BadPreCondition |
void | setDomainName (String name) throws BadPreCondition |
void | setRangeName (String name) throws BadPreCondition |
String | getDomainName () throws BadPreCondition |
String | getRangeName () throws BadPreCondition |
String | getSideName (RoleSide side) throws BadPreCondition |
boolean | isRangeMany () |
boolean | isDomainMany () |
boolean | isMany (RoleSide side) |
MetaPropertyExt<?> | toMetaPropertyExt () throws BadPreCondition |
A metarole.
The cardinalities for metaroles.
NO_TO_NO |
Defines a value distinct of all the valid values. |
ONE_TO_MANY |
Defines a one to many cardinality for a MetaRole instance |
MANY_TO_ONE |
Defines a many to one cardinality for a MetaRole instance |
ONE_TO_ONE |
Defines a one to one cardinality for a MetaRole instance |
MANY_TO_MANY |
Defines a many to many cardinality for a MetaRole instance |
MANYS_TO_MANYS |
Defines a special type of many to many cardinality for a MetaRole instance where MetaRole instances can be replicated between two MetaObjects |
boolean metadone.metabusiness.MetaRole.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 |
Implemented in metadone.metabusiness.impl.MetaRole_impl.
Cardinality metadone.metabusiness.MetaRole.getCardinality | ( | ) | throws BadPreCondition |
Gets the cardinality.
Implemented in metadone.metabusiness.impl.MetaRole_impl.
Referenced by metadone.metabusiness.impl.MetaObject_impl.createMetaProperty(), and metadone.metabusiness.impl.MetaModel_impl.produceMetaRole().
MetaObject metadone.metabusiness.MetaRole.getDomain | ( | ) | throws BadPreCondition |
Gets the metaobject on the domain side.
Implemented in metadone.metabusiness.impl.MetaRole_impl.
Referenced by metadone.client.dialog.swing.genConcreteObject.Panel_one_domain.SelectActionListener.actionPerformed(), metadone.metabusiness.impl.MetaObject_impl.createMetaProperty(), metadone.plugin.grasyla.generator.GrasylaGenerator.createMetaRoleEditors(), metadone.client.dialog.swing.genConcreteObject.DialogConcreteRoles.DialogConcreteRoles(), metadone.client.dialog.swing.selectAMetaRole.MyChooseMetaRole.format(), metadone.client.dialog.swing.helperBrowserMetal2.NodeRoot_MetaObject_RangeOf.getChildren(), metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.ModelTableRoles(), metadone.client.dialog.swing.genConcreteObject.Panel_many_ranges.Panel_many_ranges(), metadone.metabusiness.impl.MetaModel_impl.produceMetaRole(), and metadone.client.dialog.swing.genConcreteObject.DialogConcreteRoles.selectMetaObject().
String metadone.metabusiness.MetaRole.getDomainName | ( | ) | throws BadPreCondition |
Gets the name of the domain side.
null
if there is no name BadPreCondition |
Implemented in metadone.metabusiness.impl.MetaRole_impl.
Referenced by metadone.client.dialog.swing.selectAMetaRole.MyChooseMetaRole.format().
List<ConcreteObject> metadone.metabusiness.MetaRole.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. |
Implemented in metadone.metabusiness.impl.MetaRole_impl.
Referenced by metadone.client.dialog.swing.helperBrowserMetal2.NodeRoot_MetaObject_RangeOf.getChildren().
MetaObject metadone.metabusiness.MetaRole.getRange | ( | ) | throws BadPreCondition |
Gets the metaobject on the range side.
Implemented in metadone.metabusiness.impl.MetaRole_impl.
Referenced by metadone.client.dialog.swing.genConcreteObject.Panel_one_range.SelectActionListener.actionPerformed(), metadone.metabusiness.impl.MetaObject_impl.createMetaProperty(), metadone.plugin.grasyla.generator.GrasylaGenerator.createMetaRoleEditors(), metadone.client.dialog.swing.genConcreteObject.DialogConcreteRoles.DialogConcreteRoles(), metadone.client.dialog.swing.selectAMetaRole.MyChooseMetaRole.format(), metadone.client.dialog.swing.helperBrowserMetal2.NodeRoot_MetaObject_DomainOf.getChildren(), metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.ModelTableRoles(), metadone.client.dialog.swing.genConcreteObject.Panel_many_domains.Panel_many_domains(), metadone.metabusiness.impl.MetaModel_impl.produceMetaRole(), and metadone.client.dialog.swing.genConcreteObject.DialogConcreteRoles.selectMetaObject().
String metadone.metabusiness.MetaRole.getRangeName | ( | ) | throws BadPreCondition |
Gets the name of the range side.
null
if there is no name BadPreCondition |
Implemented in metadone.metabusiness.impl.MetaRole_impl.
Referenced by metadone.client.dialog.swing.selectAMetaRole.MyChooseMetaRole.format().
List<ConcreteObject> metadone.metabusiness.MetaRole.getRanges | ( | ConcreteObject | domain | ) | throws BadPreCondition |
Retrieves all ConcreteObjects that are the ranges of the given ConcreteObject.
domain | the ConcreteObjects at the range side |
BadPreCondition |
Implemented in metadone.metabusiness.impl.MetaRole_impl.
Referenced by metadone.client.dialog.swing.helperBrowserMetal2.NodeRoot_MetaObject_DomainOf.getChildren().
MetaObject metadone.metabusiness.MetaRole.getSide | ( | RoleSide | side | ) | throws BadPreCondition |
Gets the metaobject on the given side.
side | The side |
BadPreCondition |
Referenced by metadone.client.grasyla2.ref.ActionCreateRoleEngine.create(), and metadone.client.grasyla2.ref.MORefRoleEngine.evaluateComponent().
String metadone.metabusiness.MetaRole.getSideName | ( | RoleSide | side | ) | throws BadPreCondition |
Gets the name of the given side.
side | The side |
null
if there is no name BadPreCondition |
boolean metadone.metabusiness.MetaRole.isDomainMany | ( | ) |
Indicates whether the cardinality of the domain is many.
Implemented in metadone.metabusiness.impl.MetaRole_impl.
Referenced by metadone.client.dialog.swing.genConcreteObject.Panel_one_range.SelectActionListener.actionPerformed(), and metadone.client.dialog.swing.genConcreteObject.Wmetarole.create().
boolean metadone.metabusiness.MetaRole.isDomainOrdered | ( | ) | throws BadPreCondition |
Indicates whether the domain side is ordered.
Implemented in metadone.metabusiness.impl.MetaRole_impl.
Referenced by metadone.client.dialog.swing.genConcreteObject.DialogConcreteRoles.configure().
boolean metadone.metabusiness.MetaRole.isMany | ( | RoleSide | side | ) |
Indicates whether the cardinality of the given side is many.
side | The side |
Referenced by metadone.metabusiness.script.groovy.GroovyProxyCO.sideOf().
boolean metadone.metabusiness.MetaRole.isOrdered | ( | RoleSide | side | ) | throws BadPreCondition |
Indicates whether the given side is ordered
side | The side |
Referenced by metadone.client.grasyla2.ref.RefRoleEngine.activate().
boolean metadone.metabusiness.MetaRole.isRangeMany | ( | ) |
Indicates whether the cardinality of the range is many.
Implemented in metadone.metabusiness.impl.MetaRole_impl.
Referenced by metadone.client.dialog.swing.genConcreteObject.Panel_one_domain.SelectActionListener.actionPerformed(), metadone.client.dialog.swing.genConcreteObject.Wmetarole.create(), and metadone.plugin.grasyla.generator.GrasylaGenerator.createMetaRoleEditors().
boolean metadone.metabusiness.MetaRole.isRangeOrdered | ( | ) | throws BadPreCondition |
Indicates whether the range side is ordered.
Implemented in metadone.metabusiness.impl.MetaRole_impl.
Referenced by metadone.client.dialog.swing.genConcreteObject.DialogConcreteRoles.configure().
List<ConcreteRole> metadone.metabusiness.MetaRole.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'. |
Implemented in metadone.metabusiness.impl.MetaRole_impl.
void metadone.metabusiness.MetaRole.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 |
Implemented in metadone.metabusiness.impl.MetaRole_impl.
Referenced by metadone.client.functions.importer.km3.KM3Importer.Promoter.createReference().
void metadone.metabusiness.MetaRole.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 |
Implemented in metadone.metabusiness.impl.MetaRole_impl.
void metadone.metabusiness.MetaRole.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 |
Implemented in metadone.metabusiness.impl.MetaRole_impl.
Referenced by metadone.client.functions.importer.km3.KM3Importer.Promoter.createReference().
void metadone.metabusiness.MetaRole.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 |
Implemented in metadone.metabusiness.impl.MetaRole_impl.
MetaPropertyExt<?> metadone.metabusiness.MetaRole.toMetaPropertyExt | ( | ) | throws BadPreCondition |
Converts this role to a MetaPropertyExt.
BadPreCondition | when this role does not represent a metaproperty |
Implemented in metadone.metabusiness.impl.MetaRole_impl.