MetaDone
|
Public Member Functions | |
boolean | hasType (MetaObject type) throws BadPreCondition |
Set< MetaObject > | getTypes () throws BadPreCondition |
MetaObject | getType (MetaModel metamodel) throws BadPreCondition |
public< A > ConcretePropertyExt< A > | shareProperty (MetaPropertyExt< A > mp, ConcreteProperty< A > cp, ConcreteModel model) throws BadPreCondition |
boolean | detachProperty (MetaPropertyExt<?> metaprop, ConcretePropertyExt<?> cp) throws BadPreCondition |
public< T > ConcretePropertyExt< T > | createProperty (MetaPropertyExt< T > mp, T value, ConcreteModel cm) throws BadPreCondition |
public< T > List<?extends ConcreteProperty< T > > | getProperties (MetaPropertyExt< T > prop) throws BadPreCondition |
public< T > ConcreteProperty< T > | getOneProperty (MetaPropertyExt< T > prop) 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 |
String | getOnePropertyString (MetaPropertyExt<?> prop) throws BadPreCondition |
List< ConcreteRole > | getAllConcreteRolesDomain (MetaRole metarole) throws BadPreCondition |
List< ConcreteRole > | getAllConcreteRolesRange (MetaRole metarole) throws BadPreCondition |
List< ConcreteObject > | getAllConcreteRolesDomainCO (MetaRole metarole) throws BadPreCondition |
List< ConcreteObject > | getAllConcreteRolesRangeCO (MetaRole metarole) throws BadPreCondition |
ConcreteObject | getOneConcreteRolesDomainCO (MetaRole metarole) throws BadPreCondition |
ConcreteObject | getOneConcreteRolesRangeCO (MetaRole metarole) throws BadPreCondition |
boolean | isOnTheOtherSide (MetaRole metarole, ConcreteObject concreteObject) throws BadPreCondition |
Set< ConcreteModel > | getConcreteModels () 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 |
public< T > Iterator < ConcreteRole > | getFilteredConcreteRoles (MetaRole mr, RoleSide side, boolean onRole, MetaPropertyExt< T > mp, T value) throws BadPreCondition |
public< T > Iterator < ConcreteObject > | getFilteredConcreteRolesCO (MetaRole mr, RoleSide side, boolean onRole, MetaPropertyExt< T > mp, T value) throws BadPreCondition |
Iterator<?extends ConcreteObject > | getLinkedObjects (RefType type, RoleSide side) |
public< T > Iterator<?extends ConcreteObject > | getLinkedObjects (RefType type, RoleSide side, MetaPropertyExt< T > mp, T value) |
ConcretePropertyExt< String > | createPropertyString (MetaPropertyExt< String > mpX, String value, ConcreteModel cm) throws BadPreCondition |
ConcretePropertyExt< Long > | createPropertyInteger (MetaPropertyExt< Long > mpX, long 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< Boolean > | createPropertyBoolean (MetaPropertyExt< Boolean > mpX, boolean value, ConcreteModel cm) throws BadPreCondition |
ConcretePropertyExt< String > | createEnumPropertyString (MetaPropertyExt< String > mpX, String value, ConcreteModel cm) throws BadPreCondition |
ConcretePropertyExt< Long > | createEnumPropertyInteger (MetaPropertyExt< Long > mpX, long value, ConcreteModel cm) 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 |
A concrete object.
ConcretePropertyExt<Character> metadone.metabusiness.ConcreteObject.createEnumPropertyChar | ( | MetaPropertyExt< Character > | mpX, |
char | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
ConcretePropertyExt<Double> metadone.metabusiness.ConcreteObject.createEnumPropertyFloat | ( | MetaPropertyExt< Double > | mpX, |
double | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
ConcretePropertyExt<Long> metadone.metabusiness.ConcreteObject.createEnumPropertyInteger | ( | MetaPropertyExt< Long > | mpX, |
long | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
ConcretePropertyExt<String> metadone.metabusiness.ConcreteObject.createEnumPropertyString | ( | MetaPropertyExt< String > | mpX, |
String | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
public<T> ConcretePropertyExt<T> metadone.metabusiness.ConcreteObject.createProperty | ( | MetaPropertyExt< T > | mp, |
T | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
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 |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
Referenced by metadone.metabusiness.impl.MetaProperty_impl< T >.addEnumeratedValue(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.createAttribute(), metadone.metabusiness.impl.MetaObject_impl.createMetaPropertyEnumerated(), metadone.metabusiness.syntax.grasyla.BootstrapGrasyla.createScript(), metadone.client.parsers.grasyla.AST_variable.generate(), metadone.client.parsers.grasyla.AST_property.generate(), metadone.client.parsers.grasyla.AST_gref.generate(), metadone.client.parsers.grasyla.AST_script.generate_update(), metadone.client.actions.Test3Action.initConcreteModel(), metadone.client.actions.Test6Action.initModels(), metadone.client.functions.importer.owl.OWLImporter.readFunctionalProperty(), metadone.client.functions.importer.owl.OWLImporter.readHasValueProperty(), metadone.client.functions.importer.owl.OWLImporter.readInverseFunctionalProperty(), metadone.client.functions.importer.owl.OWLImporter.readOneOfProperty(), metadone.client.functions.importer.owl.OWLImporter.readRangeProperty(), metadone.client.functions.importer.owl.OWLImporter.readSymmetricProperty(), metadone.client.functions.importer.owl.OWLImporter.readTransitiveProperty(), and metadone.client.functions.importer.owl.OWLImporter.readValueProperty().
ConcretePropertyExt<Boolean> metadone.metabusiness.ConcreteObject.createPropertyBoolean | ( | MetaPropertyExt< Boolean > | mpX, |
boolean | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
Referenced by metadone.metabusiness.impl.MetaPropertyExt_impl< T >._setOrdered(), metadone.client.dialog.swing.genConcreteObject.Panel_Single_Boolean.NewActionListener.actionPerformed(), metadone.metabusiness.impl.MetaObject_impl.createMetaPropertyEnumerated(), metadone.metabusiness.impl.MetaRole_impl.setOrdered(), metadone.client.functions.importer.km3.KM3Importer.Translator.translateClass(), and metadone.client.functions.importer.km3.KM3Importer.Translator.translateReference().
ConcretePropertyExt<Character> metadone.metabusiness.ConcreteObject.createPropertyChar | ( | MetaPropertyExt< Character > | mpX, |
char | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
ConcretePropertyExt<Double> metadone.metabusiness.ConcreteObject.createPropertyFloat | ( | MetaPropertyExt< Double > | mpX, |
double | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
ConcretePropertyExt<Long> metadone.metabusiness.ConcreteObject.createPropertyInteger | ( | MetaPropertyExt< Long > | mpX, |
long | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
ConcretePropertyExt<String> metadone.metabusiness.ConcreteObject.createPropertyString | ( | MetaPropertyExt< String > | mpX, |
String | value, | ||
ConcreteModel | cm | ||
) | throws BadPreCondition |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
Referenced by metadone.metabusiness.impl.MetaModel_impl._addInDefinition(), metadone.metabusiness.impl.MetaModel_impl._createMetaModel(), metadone.metabusiness.impl.MetaModel_impl._createMetaObject(), metadone.metabusiness.syntax.grasyla.GrasylaView._rename(), metadone.client.dialog.swing.genConcreteObject.Panel_Single_String.NewActionListener.actionPerformed(), metadone.client.actions.TestDialogConcrete.actionPerformed(), metadone.client.actions.Test2Action.actionPerformed(), metadone.client.functions.retrodoc.Analyzer.analyze(), metadone.metabusiness.impl.Workspace_impl.bootstrap_metametamodel(), metadone.client.dialog.swing.genConcreteObject.ModelMultipleProperty.createProperty(), metadone.metabusiness.annex.BootstrapAnnex.createUserIfNeeded(), metadone.metabusiness.syntax.grasyla.BootstrapGrasyla.createView(), metadone.client.actions.Test3Action.initConcreteModel(), metadone.client.actions.RetroDocAction.initConcreteModel(), metadone.client.functions.retrodoc.Analyzer.managePackage(), metadone.metabusiness.impl.MetaObject_impl.setDisplayNameFormula(), and metadone.metabusiness.impl.MetaRole_impl.setRangeDomainName().
boolean metadone.metabusiness.ConcreteObject.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 |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
Referenced by metadone.metabusiness.impl.MetaRole_impl.setRangeDomainName().
Iterator<ConcreteRole> metadone.metabusiness.ConcreteObject.getAllConcreteRoles | ( | MetaRole | mr, |
RoleSide | side | ||
) | throws BadPreCondition |
Gets the concrete roles linked by a metarole to this.
mr | The metarole |
side | The side of the other object |
Referenced by metadone.client.grasyla2.ref.ActionDeleteRoleEngine.delete_roles().
Iterator<ConcreteObject> metadone.metabusiness.ConcreteObject.getAllConcreteRolesCO | ( | MetaRole | mr, |
RoleSide | side | ||
) | throws BadPreCondition |
Gets the concrete objects linked by a metarole to this.
mr | The metarole |
side | The side of the other object |
Referenced by metadone.metabusiness.script.groovy.GroovyProxyCO.sideOf().
List<ConcreteRole> metadone.metabusiness.ConcreteObject.getAllConcreteRolesDomain | ( | MetaRole | metarole | ) | throws BadPreCondition |
Gets all the roles in which this is a domain.
metarole | The metarole |
BadPreCondition |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
Referenced by metadone.metabusiness.impl.MetaProperty_impl< T >._narrow2MetaPropertyExt(), metadone.client.parsers.grasyla.AST_variable.generate(), metadone.client.parsers.grasyla.AST_ref_role.generate(), metadone.client.parsers.grasyla.AST_ref_obj.generate(), metadone.client.parsers.grasyla.AST_gref.generate(), metadone.client.parsers.grasyla.AST_script.generate_update(), metadone.metabusiness.impl.ConcreteObject_impl.getDependumIfSetIsDeleted(), metadone.metabusiness.impl.MetaObject_impl.getDirectMetaProperties(), metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.getRows(), metadone.client.dialog.swing.genConcreteObject.Panel_one_range.getTheConcreteRole(), metadone.client.dialog.swing.concreteobjecteditor.SingleRoleEditor.RoleListModel.refresh(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.setAttributeObjects(), and metadone.client.parsers.grasyla.AST_script.updateMultiRole().
List<ConcreteObject> metadone.metabusiness.ConcreteObject.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 |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
Referenced by metadone.client.grasyla2.GrasylaEngineFactory.checkExpression(), metadone.client.functions.importer.km3.KM3Importer.Promoter.createClass(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.delete(), metadone.client.parsers.grasyla.AST_expression.delete_static(), metadone.client.functions.importer.km3.KM3Importer.Promoter.findEnumerations(), metadone.client.parsers.grasyla.AST_expression.generate(), metadone.client.parsers.grasyla.AST_script.generate_update(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.getAttributeObjects(), metadone.client.grasyla2.GrasylaEngine.getContained(), metadone.metabusiness.syntax.grasyla.GrasylaScript.getInitScript(), metadone.metabusiness.syntax.grasyla.GrasylaScript.getMetamodels(), metadone.metabusiness.syntax.grasyla.GrasylaScript.getViews(), and metadone.client.dialog.swing.visualizeModel.MyVisualizeModel.updateViews().
List<ConcreteRole> metadone.metabusiness.ConcreteObject.getAllConcreteRolesRange | ( | MetaRole | metarole | ) | throws BadPreCondition |
Gets all the roles in which this is a range.
metarole | The metarole |
BadPreCondition |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
Referenced by metadone.metabusiness.impl.ConcreteObject_impl._detach(), metadone.client.parsers.grasyla.AST_expression.generate(), metadone.metabusiness.impl.ConcreteObject_impl.getDependumIfSetIsDeleted(), metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.getRows(), and metadone.client.dialog.swing.genConcreteObject.Panel_one_domain.getTheConcreteRole().
List<ConcreteObject> metadone.metabusiness.ConcreteObject.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 |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
Referenced by metadone.metabusiness.syntax.grasyla.GrasylaScript.notifyScriptChanged(), metadone.metabusiness.syntax.grasyla.BootstrapGrasyla.retrieveGrasylaScripts(), and metadone.client.dialog.swing.visualizeModel.MyVisualizeModel.updateListOfGrasylaScripts().
Set<ConcreteModel> metadone.metabusiness.ConcreteObject.getConcreteModels | ( | ) | throws BadPreCondition |
Gets the concrete models that contain this in their definition
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
Referenced by metadone.client.actions.SelectAsRangeAction.actionPerformed(), metadone.metabusiness.impl.MetaProperty_impl< T >.addEnumeratedValue(), metadone.client.dialog.swing.BrowserMetal2.buildContent(), and metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.getModel().
public<T> Iterator<ConcreteRole> metadone.metabusiness.ConcreteObject.getFilteredConcreteRoles | ( | MetaRole | mr, |
RoleSide | side, | ||
boolean | onRole, | ||
MetaPropertyExt< T > | mp, | ||
T | value | ||
) | throws BadPreCondition |
Gets roles filtered by a meta property.
The property is taken from the role if onRole is true
, otherwise it is taken from the object on the other side.
mr | The metarole |
side | The side of the other object |
onRole | Whether the property is taken from the role or the other object |
mp | The metaproperty |
value | The value |
BadPreCondition |
public<T> Iterator<ConcreteObject> metadone.metabusiness.ConcreteObject.getFilteredConcreteRolesCO | ( | MetaRole | mr, |
RoleSide | side, | ||
boolean | onRole, | ||
MetaPropertyExt< T > | mp, | ||
T | value | ||
) | throws BadPreCondition |
Same as getFilteredConcreteRoles(MetaRole, RoleSide, boolean, MetaProperty, Object), but returns the objects on the other side of the relation.
BadPreCondition |
Referenced by metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.createAttribute(), metadone.client.parsers.grasyla.AST_script.generate_update(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.getAttributeCOValue(), and metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.getAttributeObjects().
Iterator<? extends ConcreteObject> metadone.metabusiness.ConcreteObject.getLinkedObjects | ( | RefType | type, |
RoleSide | side | ||
) |
Returns linked objects to this concrete object.
This is an utility method which works as getTypes(), etc. However, this method does not throw exceptions.
type | The type of the link |
side | The side of the retuned objects |
public<T> Iterator<? extends ConcreteObject> metadone.metabusiness.ConcreteObject.getLinkedObjects | ( | RefType | type, |
RoleSide | side, | ||
MetaPropertyExt< T > | mp, | ||
T | value | ||
) |
Same as getLinkedObjects(RefType, RoleSide) but filters the resulting iterator.
The resulting iterator's kept elements are those that have a concrete property of the type mp that is equal to the given value.
type | The type of the link |
side | The side of the returned objects |
mp | The metaproperty |
value | The value |
ConcreteObject metadone.metabusiness.ConcreteObject.getOneConcreteRolesCO | ( | MetaRole | metarole, |
RoleSide | side | ||
) | throws BadPreCondition |
Gets the concrete object linked to this.
metarole | The metarole |
side | The side of the other object |
null
BadPreCondition |
Referenced by metadone.metabusiness.script.groovy.GroovyProxyCO.sideOf().
ConcreteObject metadone.metabusiness.ConcreteObject.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 |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
Referenced by metadone.client.grasyla2.ref.RefEngine.buildChild(), metadone.client.grasyla2.ref.MetaEngine.buildNewComponent(), metadone.client.functions.importer.km3.KM3Importer.Promoter.createAttributes(), metadone.client.functions.importer.km3.KM3Importer.Promoter.createReference(), metadone.client.functions.importer.km3.KM3Importer.Promoter.createReferences(), metadone.client.parsers.grasyla.AST_equation.delete_static(), metadone.client.grasyla2.ref.MRRefRoleEngine.evaluateComponent(), metadone.client.parsers.grasyla.AST_equation.generate(), metadone.client.parsers.grasyla.AST_attribute.generate(), metadone.client.grasyla2.GrasylaEngine.getContainedAttributes(), metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.getExprAndCO(), metadone.client.grasyla2.ref.RefObjectEngine.getProperty(), metadone.client.grasyla2.ref.RefRoleEngine.getRole(), and metadone.metabusiness.syntax.grasyla.GrasylaEquation.GrasylaEquation().
ConcreteObject metadone.metabusiness.ConcreteObject.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 |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
Referenced by metadone.client.functions.importer.km3.KM3Importer.Promoter.createReference(), and metadone.metabusiness.syntax.grasyla.GrasylaView.getScript().
public<T> ConcreteProperty<T> metadone.metabusiness.ConcreteObject.getOneProperty | ( | MetaPropertyExt< T > | prop | ) | throws BadPreCondition |
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 |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
Referenced by metadone.metabusiness.syntax.grasyla.GrasylaView._rename(), metadone.client.dialog.swing.genConcreteObject.Panel_Single_String.DeleteActionListener.actionPerformed(), metadone.metabusiness.impl.Workspace_impl.bootstrap_metametamodel(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.getAttributeCOValue(), metadone.client.dialog.swing.genConcreteObject.ListenerFieldString.getProperty(), metadone.client.dialog.swing.genConcreteObject.ListenerFieldChar.getProperty(), metadone.metabusiness.impl.MetaProperty_impl< T >.isEnumerated(), metadone.metabusiness.impl.MetaRole_impl.isOrdered(), metadone.metabusiness.impl.MetaPropertyExt_impl< T >.isOrdered(), metadone.client.dialog.swing.genConcreteObject.Panel_Single_String.refresh(), metadone.client.dialog.swing.genConcreteObject.Panel_Single_Integer.refresh(), metadone.client.dialog.swing.genConcreteObject.Panel_Single_Float.refresh(), metadone.client.dialog.swing.genConcreteObject.Panel_Single_Char.refresh(), metadone.client.dialog.swing.genConcreteObject.Panel_Single_Boolean.refresh(), metadone.metabusiness.impl.MetaRole_impl.setOrdered(), and metadone.metabusiness.impl.MetaRole_impl.setRangeDomainName().
String metadone.metabusiness.ConcreteObject.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 |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
public<T> T metadone.metabusiness.ConcreteObject.getOnePropertyValue | ( | MetaPropertyExt< T > | prop | ) | throws BadPreCondition |
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 |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
Referenced by metadone.client.grasyla2.ref.UpdateOnEngine.activate(), metadone.client.grasyla2.GrasylaContext.activate(), metadone.client.grasyla2.ref.RefEngine.buildChild(), metadone.client.grasyla2.ref.RefRoleEngine.buildNewComponent(), metadone.client.functions.importer.km3.KM3Importer.Promoter.createAttributes(), metadone.client.functions.importer.km3.KM3Importer.Promoter.createReference(), metadone.client.functions.importer.km3.KM3Importer.Promoter.createReferences(), metadone.client.grasyla2.ref.MRRefRoleEngine.evaluateComponent(), metadone.client.grasyla2.GrasylaEngine.getContainedAttributes(), metadone.metabusiness.syntax.grasyla.GrasylaScript.getDefaultFunctor(), metadone.metabusiness.impl.MetaRole_impl.getDomainName(), metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.getExprAndCO(), metadone.metabusiness.syntax.grasyla.GrasylaScript.getName(), metadone.metabusiness.annex.User.getName(), metadone.metabusiness.syntax.grasyla.GrasylaView.getNameView(), metadone.metabusiness.impl.MetaRole_impl.getRangeName(), metadone.metabusiness.annex.User.getShortName(), metadone.client.grasyla2.ref.RefSpecEngine.getTypeAndSide(), metadone.metabusiness.syntax.grasyla.GrasylaEquation.GrasylaEquation(), metadone.metabusiness.impl.MetaProperty_impl< T >.isRestricted(), metadone.metabusiness.script.groovy.GroovyProxyCO.propertyMissing(), and metadone.client.grasyla2.GrasylaEngine.updateContext().
public<T> List<? extends ConcreteProperty<T> > metadone.metabusiness.ConcreteObject.getProperties | ( | MetaPropertyExt< T > | prop | ) | throws BadPreCondition |
Gets the list of defined properties.
prop | Denotes a metaproperty attached to this metaobject |
BadPreCondition |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
Referenced by metadone.metabusiness.impl.MetaObject_impl._getName(), metadone.metabusiness.impl.MetaPropertyExt_impl< T >._setOrdered(), metadone.client.dialog.swing.genConcreteObject.Panel_Single_Integer.DeleteActionListener.actionPerformed(), metadone.client.dialog.swing.genConcreteObject.Panel_Single_Float.DeleteActionListener.actionPerformed(), metadone.client.dialog.swing.genConcreteObject.Panel_Single_Char.DeleteActionListener.actionPerformed(), metadone.client.dialog.swing.genConcreteObject.Panel_Single_Boolean.DeleteActionListener.actionPerformed(), metadone.metabusiness.impl.Workspace_impl.bootstrap_metametamodel(), 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.client.grasyla2.ref.ActionDeleteEngine.delete_property(), metadone.client.parsers.grasyla.AST_variable.generate(), metadone.client.parsers.grasyla.AST_property.generate(), metadone.client.parsers.grasyla.AST_gref.generate(), metadone.client.parsers.grasyla.AST_expression.generate(), metadone.client.parsers.grasyla.AST_equation.generate(), metadone.client.parsers.grasyla.AST_script.generate_update(), metadone.metabusiness.impl.MetaObject_impl.getDisplayNameFormula(), metadone.metabusiness.impl.MetaProperty_impl< T >.getEnumeration(), metadone.metabusiness.syntax.grasyla.GrasylaScript.getFeatures(), metadone.client.dialog.swing.genConcreteObject.ModelMultipleProperty.getObjectAt(), metadone.client.dialog.swing.genConcreteObject.ListenerFieldFloat.getProperty(), metadone.client.dialog.swing.genConcreteObject.ListenerFieldBoolean.getProperty(), metadone.client.dialog.swing.genConcreteObject.ModelMultipleProperty.getRowCount(), metadone.client.dialog.swing.genConcreteObject.Panel_Single_Integer.ModelMVC.initProperty(), metadone.metabusiness.script.groovy.GroovyProxyCO.propertyMissing(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.setAttributeObjects(), and metadone.metabusiness.impl.MetaObject_impl.setDisplayNameFormula().
MetaObject metadone.metabusiness.ConcreteObject.getType | ( | MetaModel | metamodel | ) | throws BadPreCondition |
Gets the type of this object in a given metamodel.
metamodel | Denotes the metamodel that contains the metaObject |
BadPreCondition |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
Referenced by metadone.client.dialog.swing.genConcreteObject.Builder.buildDialog(), metadone.client.grasyla2.ref.MetaEngine.buildNewComponent(), metadone.client.functions.importer.km3.KM3Importer.Promoter.createAttributes(), metadone.client.grasyla2.ref.ActionDeleteEngine.delete_property(), and metadone.client.grasyla2.SelectorBestEquation.findEquation().
Set<MetaObject> metadone.metabusiness.ConcreteObject.getTypes | ( | ) | throws BadPreCondition |
Gets the types of this object.
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
Referenced by metadone.metabusiness.impl.ConcreteModel_impl._getDefinition(), metadone.client.grasyla2.visuallibrary.GrasylaScene.MyConnectProvider.createConnection(), metadone.client.dialog.swing.concreteobjecteditor.RoleEditor.createMetaRoles(), metadone.client.dialog.swing.genConcreteObject.DialogConcreteRoles.DialogConcreteRoles(), metadone.client.grasyla2.SelectorBestEquation.findEquation(), metadone.metabusiness.script.groovy.GroovyProxyCO.findMetaProperty(), metadone.client.dialog.swing.helperBrowserMetal2.NodeRoot.getChildren(), metadone.client.grasyla2.GrasylaContextEquation.getEquation(), metadone.client.grasyla2.actions.UserConnectEvent.initRoles(), metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.ModelTableRoles(), and metadone.client.dialog.swing.genConcreteObject.Builder.retrieveElements().
boolean metadone.metabusiness.ConcreteObject.hasType | ( | MetaObject | type | ) | throws BadPreCondition |
Indicates whether this object has the given type.
type | The type to check |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
Referenced by metadone.client.grasyla2.ref.UpdateOnEngine.activate(), metadone.client.grasyla2.ref.MetaEngine.buildNewComponent(), metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.createViewElement(), metadone.client.grasyla2.GrasylaEngine.getContainedAttributes(), metadone.client.grasyla2.GrasylaEngine.GrasylaEngine(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.GrasylaPhenomenon(), metadone.client.grasyla2.GrasylaEngine.HasType.map(), and metadone.client.grasyla2.ref.RefRoleEngine.registerSubscriber().
boolean metadone.metabusiness.ConcreteObject.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 |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
public<T> ConcretePropertyExt<T> metadone.metabusiness.ConcreteObject.setOnePropertyValue | ( | MetaPropertyExt< T > | prop, |
T | value, | ||
ConcreteModel | model | ||
) | throws BadPreCondition |
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 |
Implemented in metadone.metabusiness.impl.ConcreteObject_impl.
Referenced by metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.createViewElement(), metadone.client.parsers.grasyla.AST_variable.generate(), metadone.client.parsers.grasyla.AST_value.generate(), metadone.client.parsers.grasyla.AST_ref_spec.generate(), metadone.client.parsers.grasyla.AST_ref_role.generate(), metadone.client.parsers.grasyla.AST_expression.generate(), metadone.client.parsers.grasyla.AST_equation.generate(), metadone.client.parsers.grasyla.AST_component.generate(), metadone.client.parsers.grasyla.AST_attribute.generate(), metadone.client.parsers.grasyla.AST_script.generate_update(), metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.setAttribute(), and metadone.metabusiness.syntax.grasyla.GrasylaPhenomenon.setAttributeObjects().
public<A> ConcretePropertyExt<A> metadone.metabusiness.ConcreteObject.shareProperty | ( | MetaPropertyExt< A > | mp, |
ConcreteProperty< A > | cp, | ||
ConcreteModel | model | ||
) | throws BadPreCondition |
Associates an existing concrete property with this concrete object.
This object becomes an owner of cp
.
mp | Denotes the type of the new concrete property. Even if the metaproperty can be deduced from the concrete property cp , the extended metaproperty must be precised in order to know to which type the concrete property should be associated with. |
cp | Denotes an existing property that will be shared to this |
model | Denotes the concrete model that will hosts the result. Let's remember that every ConcretePropertyExt has an new fresh concrete role that is associated with, even if the concrete property instance is shared. |
cp
and this
.