ilog.rules.rf.model

Interface IlrRFEnvironment

  • All Known Implementing Classes:
    IlrRFService


    public interface IlrRFEnvironment
    Use IlrRFEnvironment to provide environment dependent data to the services around an IlrRFModel instance. A concrete instance must be provided by the specific environment where a ruleflow is used: RuleStudio or Rule Team Server, etc.

    NOTE: This interface is provided for documentation purposes, but is not intended to be implemented directly.

    Since:
    JRules 7.0
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String getDisplayName(java.lang.String key)
      Returns a localized string for the given key.
      java.lang.String getFQNFromUUID(java.lang.String uuid)
      Returns the fully qualified name for the element referenced by a specific UUID.
      java.lang.String getLabelFromUUID(java.lang.String uuid)
      Returns a human readable label for the element referenced by the specified UUID.
      java.lang.Object getLock()
      Returns the lock object for this environment.
      java.util.logging.Logger getLogger()
      Returns the logger object for this environment.
      ilog.rules.brl.parsing.IlrBRLEarleyParser getParser(IlrRFBodyKind kind, java.util.Locale locale)
      Returns the parser for a specific body kind and locale.
      IlrRFModel getRFModelFromUUID(java.lang.String ruleflowUUID)
      Retrieves an instance of IlrRFModel using an UUID.
      IlrBRLVariableProvider getVariableProvider(IlrRFBodyKind kind, java.util.Locale locale)
      Returns the variable provider associated with this environment for a specific body kind and locale.
      IlrVocabulary getVocabulary(java.util.Locale locale)
      Returns the vocabulary for a specific locale.
      boolean isValidScopeReference(java.lang.String uuid)
      Checks if a reference can be found in the environment.
    • Method Detail

      • getVocabulary

        IlrVocabulary getVocabulary(java.util.Locale locale)
        Returns the vocabulary for a specific locale.
        Parameters:
        locale - The locale.
        Returns:
        The vocabulary associated with locale. This method never returns null.
      • getLock

        java.lang.Object getLock()
        Returns the lock object for this environment. This lock object is used for parsing control.
        Returns:
        A lock object that controls parsing. If this method returns null, the parser is used as the lock.
      • getLogger

        java.util.logging.Logger getLogger()
        Returns the logger object for this environment.
        Returns:
        The logger used to log error messages.
      • getVariableProvider

        IlrBRLVariableProvider getVariableProvider(IlrRFBodyKind kind,
                                                 java.util.Locale locale)
        Returns the variable provider associated with this environment for a specific body kind and locale.
        Parameters:
        kind - The body kind.
        locale - The locale.
        Returns:
        The variable provider
      • getParser

        ilog.rules.brl.parsing.IlrBRLEarleyParser getParser(IlrRFBodyKind kind,
                                                          java.util.Locale locale)
        Returns the parser for a specific body kind and locale.
        Parameters:
        kind - The body kind.
        locale - The locale.
        Returns:
        The parser.
      • getLabelFromUUID

        java.lang.String getLabelFromUUID(java.lang.String uuid)
        Returns a human readable label for the element referenced by the specified UUID.
        Parameters:
        uuid - The UUID.
        Returns:
        The label.
      • getFQNFromUUID

        java.lang.String getFQNFromUUID(java.lang.String uuid)
        Returns the fully qualified name for the element referenced by a specific UUID.
        Parameters:
        uuid - The UUID.
        Returns:
        The fully qualified name.
      • getRFModelFromUUID

        IlrRFModel getRFModelFromUUID(java.lang.String ruleflowUUID)
        Retrieves an instance of IlrRFModel using an UUID. This method is used to resolve the reference of a subflow task.
        Parameters:
        ruleflowUUID - The UUIF stored in the "uuid" property of IlrRFSubflowTask.
        Returns:
        The IlrRFModel corresponding to ruleflowUUID or null.
      • getDisplayName

        java.lang.String getDisplayName(java.lang.String key)
        Returns a localized string for the given key. This method uses an environment specific mechanism to look for messages.
        Parameters:
        key - The message key.
        Returns:
        The label found in messages resources. If no message is found, key is returned as the display name.
      • isValidScopeReference

        boolean isValidScopeReference(java.lang.String uuid)
        Checks if a reference can be found in the environment.
        Parameters:
        uuid - The reference to check.
        Returns:
        If the reference is found, true is returned.

© Copyright IBM Corp. 1987, 2017