ilog.rules.brl.value.info

Class IlrAbstractValueProvider

  • java.lang.Object
    • ilog.rules.brl.value.info.IlrAbstractValueProvider
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void dispose()
      Disposes of the value provider after a visit.
      java.lang.Object[] getChildren(java.lang.Object parent)
      Returns the child elements of the given parent element.
      abstract java.lang.String getDisplayText(java.lang.Object element, java.util.Locale locale)
      Returns the localized text that can be displayed in viewers.
      java.lang.String getDocumentation(java.lang.Object element, java.util.Locale locale)
      By default returns null.
      java.lang.Object getParent(java.lang.Object element)
      Returns the parent for the given element.
      abstract java.lang.String getText(java.lang.Object element, java.util.Locale locale)
      Returns the localized text that can inserted in rule text.
      abstract java.lang.Object[] getValues()
      Returns the elements at the root level.
      boolean hasChildren(java.lang.Object element)
      States whether the given element has children.
      boolean isContextSensitive()
      By default returns true.
      boolean isExclusive()
      Returns true if the value provider accepts only the values returned by getValues(), and does not accept any other value entered in a value editor.
      void prepare(IlrSyntaxTree.Node node)
      Prepares the value provider for a visit with the given branch of the Abstract Syntax Tree.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlrAbstractValueProvider

        public IlrAbstractValueProvider()
    • Method Detail

      • getValues

        public abstract java.lang.Object[] getValues()
        Description copied from interface: IlrValueProvider
        Returns the elements at the root level.
        Specified by:
        getValues in interface IlrValueProvider
        Returns:
        The array of root elements.
      • getDisplayText

        public abstract java.lang.String getDisplayText(java.lang.Object element,
                                      java.util.Locale locale)
        Description copied from interface: IlrValueProvider
        Returns the localized text that can be displayed in viewers.
        Specified by:
        getDisplayText in interface IlrValueProvider
        Parameters:
        element - The element.
        locale - The locale.
        Returns:
        The localized display text.
      • getText

        public abstract java.lang.String getText(java.lang.Object element,
                               java.util.Locale locale)
        Description copied from interface: IlrValueProvider
        Returns the localized text that can inserted in rule text.
        Specified by:
        getText in interface IlrValueProvider
        Parameters:
        element - The element.
        locale - The locale.
        Returns:
        The localized text.
      • getChildren

        public java.lang.Object[] getChildren(java.lang.Object parent)
        Returns the child elements of the given parent element.
        Specified by:
        getChildren in interface IlrValueProvider
        Parameters:
        parent - The parent element.
        Returns:
        null.
      • getParent

        public java.lang.Object getParent(java.lang.Object element)
        Returns the parent for the given element.
        Specified by:
        getParent in interface IlrValueProvider
        Parameters:
        element - The child element.
        Returns:
        null.
      • hasChildren

        public boolean hasChildren(java.lang.Object element)
        States whether the given element has children.
        Specified by:
        hasChildren in interface IlrValueProvider
        Parameters:
        element - The element.
        Returns:
        false.
      • prepare

        public void prepare(IlrSyntaxTree.Node node)
        Prepares the value provider for a visit with the given branch of the Abstract Syntax Tree. This implementation does nothing.
        Specified by:
        prepare in interface IlrValueProvider
        Parameters:
        node - The parent node under which a value can be added.
      • dispose

        public void dispose()
        Disposes of the value provider after a visit. This implementation does nothing.
        Specified by:
        dispose in interface IlrValueProvider
      • isExclusive

        public boolean isExclusive()
        Returns true if the value provider accepts only the values returned by getValues(), and does not accept any other value entered in a value editor.
        Specified by:
        isExclusive in interface IlrValueProvider
        Returns:
        true.

© Copyright IBM Corp. 1987, 2017