Class MetaModelDelegate
java.lang.Object
com.aquima.interactions.rule.parser.MetaModelDelegate
- All Implemented Interfaces:
IDefinitionSource
Delegate class which maps the methods of the meta-model to the IDefinitionSource interface.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionMetaModelDelegate
(IMetaModel model) Constructs the delegate for the specified meta-model. -
Method Summary
Modifier and TypeMethodDescriptionprotected IMetaModel
getModel()
getNamedObjectDefinition
(String objectName, String instanceName) This method returns the object definition for the specified type and instance name.getObjectDefinition
(String name) This method returns the object definition for the specified type name.getSharedAncestor
(String expectedType, String receivedType) Determines the shared ancestor of two entity types.getValueDefinition
(String name) This method returns the value definition of a label (or global property?).void
This function will be called to register a usage of a reusable expression to the implementor of this interface.
-
Constructor Details
-
MetaModelDelegate
Constructs the delegate for the specified meta-model.- Parameters:
model
- The meta-model for which the delegate should be constructed.
-
-
Method Details
-
getModel
-
getObjectDefinition
Description copied from interface:IDefinitionSource
This method returns the object definition for the specified type name.- Specified by:
getObjectDefinition
in interfaceIDefinitionSource
- Parameters:
name
- The name of the type for which the definition is requested.- Returns:
- The definition of the object with the specified type name.
-
getNamedObjectDefinition
Description copied from interface:IDefinitionSource
This method returns the object definition for the specified type and instance name.- Specified by:
getNamedObjectDefinition
in interfaceIDefinitionSource
- Parameters:
objectName
- The name of the type for which the definition is requested.instanceName
- The instance name for the specified type for which the definition is requested.- Returns:
- An object definition when available. null otherwise.
-
getValueDefinition
Description copied from interface:IDefinitionSource
This method returns the value definition of a label (or global property?). For example: PI- Specified by:
getValueDefinition
in interfaceIDefinitionSource
- Parameters:
name
- The name of the global value that is requested.- Returns:
- An object containing the value definition for the specified identifier.
-
registerExpressionTemplate
Description copied from interface:IDefinitionSource
This function will be called to register a usage of a reusable expression to the implementor of this interface. Added for studio 6.x+- Specified by:
registerExpressionTemplate
in interfaceIDefinitionSource
- Parameters:
name
- The name of the expression template.
-