ilog.rules.rf.model

Interface IlrRFScope

  • All Superinterfaces:
    java.io.Serializable


    public interface IlrRFScope
    extends java.io.Serializable
    IlrRFScope represents rule task scope. A scope is an ordered list of entries. Each entry is either a package or a rule. It is identified by an ID:
    • For packages, the ID is the path in the ruleset.
    • For rules, the ID is a UUID.
    Note: this interface is provided for documentation purposes, do not implemented it directly.
    Since:
    JRules 7.0
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface and Description
      static interface  IlrRFScope.ScopeEntry 
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String PACKAGE
      Constant value for a scope entry type of type package
      static java.lang.String RULE
      Constant value for a scope entry type of type rule
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void addEntries(java.util.List<IlrRFScope.ScopeEntry> entries)
      Adds a list of entries to this scope.
      void addEntry(java.lang.String type, java.lang.String ID)
      Adds a new entry to this scope.
      void clear()
      Clears this scope by emptying all contained scope elements.
      boolean contains(java.lang.String ID)
      Check if the scope contains a element with the given ID
      java.util.List<IlrRFScope.ScopeEntry> getEntries()
      Returns the collection of entries contained in this scope.
      void removeEntry(java.lang.String entryId)
      Removes an entry from this scope.
    • Field Detail

      • RULE

        static final java.lang.String RULE
        Constant value for a scope entry type of type rule
        See Also:
        Constant Field Values
      • PACKAGE

        static final java.lang.String PACKAGE
        Constant value for a scope entry type of type package
        See Also:
        Constant Field Values
    • Method Detail

      • getEntries

        java.util.List<IlrRFScope.ScopeEntry> getEntries()
        Returns the collection of entries contained in this scope.
        Returns:
        The list of entries.
      • addEntry

        void addEntry(java.lang.String type,
                    java.lang.String ID)
        Adds a new entry to this scope.
        Parameters:
        type - The new entry.
        ID - The ID of the new entry.
      • addEntries

        void addEntries(java.util.List<IlrRFScope.ScopeEntry> entries)
        Adds a list of entries to this scope.
        Parameters:
        entries - The entry list.
      • removeEntry

        void removeEntry(java.lang.String entryId)
        Removes an entry from this scope.
        Parameters:
        entryId - The ID of the entry to remove.
      • clear

        void clear()
        Clears this scope by emptying all contained scope elements.
      • contains

        boolean contains(java.lang.String ID)
        Check if the scope contains a element with the given ID
        Parameters:
        ID - The ID of the element to check.
        Returns:
        If the scope contains an element ID, true is returned.

© Copyright IBM Corp. 1987, 2017