Class MetaModelDelegate

java.lang.Object
com.aquima.interactions.rule.parser.MetaModelDelegate
All Implemented Interfaces:
IDefinitionSource

public class MetaModelDelegate extends Object implements IDefinitionSource
Delegate class which maps the methods of the meta-model to the IDefinitionSource interface.
Since:
5.0
Author:
O. Kerpershoek
  • Constructor Details

    • MetaModelDelegate

      public MetaModelDelegate(IMetaModel model)
      Constructs the delegate for the specified meta-model.
      Parameters:
      model - The meta-model for which the delegate should be constructed.
  • Method Details

    • getModel

      protected IMetaModel getModel()
    • getObjectDefinition

      public IObjectDefinition getObjectDefinition(String name)
      Description copied from interface: IDefinitionSource
      This method returns the object definition for the specified type name.
      Specified by:
      getObjectDefinition in interface IDefinitionSource
      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

      public IObjectDefinition getNamedObjectDefinition(String objectName, String instanceName)
      Description copied from interface: IDefinitionSource
      This method returns the object definition for the specified type and instance name.
      Specified by:
      getNamedObjectDefinition in interface IDefinitionSource
      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

      public IValueDefinition getValueDefinition(String name)
      Description copied from interface: IDefinitionSource
      This method returns the value definition of a label (or global property?). For example: PI
      Specified by:
      getValueDefinition in interface IDefinitionSource
      Parameters:
      name - The name of the global value that is requested.
      Returns:
      An object containing the value definition for the specified identifier.
    • getSharedAncestor

      public String getSharedAncestor(String expectedType, String receivedType)
      Description copied from interface: IDefinitionSource
      Determines the shared ancestor of two entity types. If no shared ancestor can be found null will be returned
      Specified by:
      getSharedAncestor in interface IDefinitionSource
      Parameters:
      expectedType - The type name of the first entity.
      receivedType - The type name of the second entity.
      Returns:
      The type name of an ancestor which is shared by both types, or null when the two types do not have a common ancestor.
    • registerExpressionTemplate

      public void registerExpressionTemplate(String name)
      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 interface IDefinitionSource
      Parameters:
      name - The name of the expression template.