ilog.rules.studio.model.ruleflow

Class IlrRFService

  • java.lang.Object
    • org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      • org.eclipse.emf.ecore.impl.BasicEObjectImpl
        • org.eclipse.emf.ecore.impl.EObjectImpl
          • ilog.rules.studio.model.base.impl.IlrRuleProjectServiceImpl
            • ilog.rules.studio.model.ruleflow.IlrRFService
  • All Implemented Interfaces:
    IlrRFEnvironment, IlrRuleProjectService, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject


    public class IlrRFService
    extends ilog.rules.studio.model.base.impl.IlrRuleProjectServiceImpl
    implements IlrRFEnvironment
    This class is a Rule Project Service dedicated to the management of RuleFlows in the context of Rule Designer. Associated to a given rule project, this service is initialized when rule project is created and disposed when the rule project is closed or deleted. It provides an implementation of IlrRFEnvironment giving access to objects like parsers with environment specific storage
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl

        org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
      • Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl

        org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
      • Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject

        org.eclipse.emf.ecore.InternalEObject.EStore
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String SERVICE_ID
      Identification of the Ruleflow Service.
      • Fields inherited from class ilog.rules.studio.model.base.impl.IlrRuleProjectServiceImpl

        SERVICE_ID_EDEFAULT, serviceID
      • Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl

        eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
      • Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl

        EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
      • Fields inherited from interface org.eclipse.emf.ecore.InternalEObject

        EOPPOSITE_FEATURE_BASE
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrRFService() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void clean()
      Clean the stored caches
      void endBuild(java.util.Collection<org.eclipse.core.resources.IResource> builtElements)
      At the end of the build of the project the impact manager is ordered to save its impact table
      java.lang.String getDisplayName(java.lang.String str)
      Resolve the key if it starts with '%'
      java.lang.String getFQNFromUUID(java.lang.String uuid)
      Returns the fully qualified name for the element referenced by a specific UUID.
      ilog.rules.studio.model.ruleflow.impl.IlrRuleFlowImpactManager getImpactManager() 
      java.lang.String getLabelFromUUID(java.lang.String uuid)
      Find the display name of the given artefact
      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()
      This method returns the variable provider associated to this service.
      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 associated to the rule project.
      boolean isInProjectScope(IlrProjectElement element)
      Check if the given element belongs to the project hierarchy.
      boolean isValidScopeReference(java.lang.String uuid)
      Checks if a reference can be found in the environment.
      • Methods inherited from class ilog.rules.studio.model.base.impl.IlrRuleProjectServiceImpl

        basicSetRuleProject, dispose, eBasicRemoveFromContainerFeature, eGet, eInverseAdd, eInverseRemove, eIsSet, eSet, eStaticClass, eUnset, getRuleProject, getServiceID, initialize, setRuleProject, setServiceID, toString
      • Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl

        eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
      • Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl

        eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
      • Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl

        eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.emf.ecore.EObject

        eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
      • Methods inherited from interface org.eclipse.emf.common.notify.Notifier

        eAdapters, eDeliver, eNotify, eSetDeliver
      • Methods inherited from interface org.eclipse.emf.ecore.InternalEObject

        eNotificationRequired
    • Field Detail

      • SERVICE_ID

        public static java.lang.String SERVICE_ID
        Identification of the Ruleflow Service.
    • Constructor Detail

      • IlrRFService

        public IlrRFService()
    • Method Detail

      • getVocabulary

        public IlrVocabulary getVocabulary(java.util.Locale locale)
        Returns the vocabulary associated to the rule project.
        Specified by:
        getVocabulary in interface IlrRFEnvironment
        Parameters:
        locale - The locale.
        Returns:
        The vocabulary associated with locale. This method never returns null.
      • getImpactManager

        public ilog.rules.studio.model.ruleflow.impl.IlrRuleFlowImpactManager getImpactManager()
      • getVariableProvider

        public IlrBRLVariableProvider getVariableProvider()
        This method returns the variable provider associated to this service.
        Returns:
        A variable provider.
      • getParser

        public ilog.rules.brl.parsing.IlrBRLEarleyParser getParser(IlrRFBodyKind kind,
                                                          java.util.Locale locale)
        Description copied from interface: IlrRFEnvironment
        Returns the parser for a specific body kind and locale.
        Specified by:
        getParser in interface IlrRFEnvironment
        Parameters:
        kind - The body kind.
        locale - The locale.
        Returns:
        The parser.
      • getLabelFromUUID

        public java.lang.String getLabelFromUUID(java.lang.String uuid)
        Find the display name of the given artefact
        Specified by:
        getLabelFromUUID in interface IlrRFEnvironment
        Parameters:
        uuid - The UUID.
        Returns:
        The label.
      • getFQNFromUUID

        public java.lang.String getFQNFromUUID(java.lang.String uuid)
        Description copied from interface: IlrRFEnvironment
        Returns the fully qualified name for the element referenced by a specific UUID.
        Specified by:
        getFQNFromUUID in interface IlrRFEnvironment
        Parameters:
        uuid - The UUID.
        Returns:
        The fully qualified name.
      • isValidScopeReference

        public boolean isValidScopeReference(java.lang.String uuid)
        Description copied from interface: IlrRFEnvironment
        Checks if a reference can be found in the environment.
        Specified by:
        isValidScopeReference in interface IlrRFEnvironment
        Parameters:
        uuid - The reference to check.
        Returns:
        If the reference is found, true is returned.
      • getDisplayName

        public java.lang.String getDisplayName(java.lang.String str)
        Resolve the key if it starts with '%'
        Specified by:
        getDisplayName in interface IlrRFEnvironment
        Parameters:
        str - The message key.
        Returns:
        The label found in messages resources. If no message is found, key is returned as the display name.
      • getRFModelFromUUID

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

        public boolean isInProjectScope(IlrProjectElement element)
        Check if the given element belongs to the project hierarchy. If it does, element can be referenced by a ruleflow in this project
        Parameters:
        element - The element to test.
        Returns:
        If element belongs to the project hierarchy, true is returned.
      • endBuild

        public void endBuild(java.util.Collection<org.eclipse.core.resources.IResource> builtElements)
        At the end of the build of the project the impact manager is ordered to save its impact table
        Parameters:
        builtElements - not used ?
      • clean

        public void clean()
        Clean the stored caches

© Copyright IBM Corp. 1987, 2017