ilog.rules.brl.value.info

Interface IlrValueInfo

  • All Known Implementing Classes:
    IlrDefaultValueInfo


    public interface IlrValueInfo
    IlrValueInfo provides a way to describe a value when it is used in the placeholder of a phrase.

    Overview

    An IlrValueInfo instance comprises the following services:

    • value provider
    • value editor
    • value checker
    • value translator

    A service on a value info is required when a lexical value can be expressed in place of a placeholder role decorated with that value info.

    See Also:
    IlrValueProvider, IlrValueEditor, IlrValueChecker, IlrValueInfo
    • Method Detail

      • getDisplayName

        java.lang.String getDisplayName(java.util.Locale locale)
        Returns the localized display name of this value info.
        Parameters:
        locale - The locale.
        Returns:
        The localized display name.
      • getValueDescriptor

        java.lang.String getValueDescriptor()
        Returns the value descriptor key associated with this value info. The returned value must not be null. The value descriptor class can be retrieved with that key through the value descriptor factory.
        Returns:
        The value descriptor.
        See Also:
        IlrValueDescriptor, IlrValueDescriptorFactory
      • getValueEditor

        java.lang.String getValueEditor()
        Returns the value editor key associated with this value info. If no value editor is available the returned value can be null. The value editor class can be retrieved with that key through the value editor factory. If no value editor is returned by this value info, the value editor registered for the type, if any, is used.
        Returns:
        The value editor key or null if none.
        See Also:
        IlrValueEditor, IlrValueEditorFactory
      • getValueProvider

        IlrValueProvider getValueProvider()
        Returns the value provider associated with this value info. If no value provider is available the returned value can be null. If the value provider is not null, we consider that the set of possible values for this value info is given and that the user is not allowed to input other values. For this reason, no value editor is used.
        Returns:
        The value provider, or null if none.
        See Also:
        IlrValueProvider
      • getValueChecker

        IlrValueChecker getValueChecker()
        Returns the value checker associated with this value info. If no value checker is available the returned value can be null.
        Returns:
        The value checker, or null if none.
        See Also:
        IlrValueChecker
      • getValueTranslator

        IlrValueTranslator getValueTranslator(java.lang.String target)
        Returns the value translator associated with this value info. If no value translator is available the returned value can be null. A value translator is used to translate to a target language values used in the placeholder role for which this value info is declared.
        Parameters:
        target - The target language.
        Returns:
        A value translator.
        See Also:
        IlrValueTranslator

© Copyright IBM Corp. 1987, 2017