ilog.rules.brl.value.info

Class IlrDefaultValueInfo

  • java.lang.Object
    • ilog.rules.brl.value.info.IlrDefaultValueInfo
  • All Implemented Interfaces:
    IlrValueInfo, ilog.rules.brl.value.info.IlrValueInfoExtension


    public class IlrDefaultValueInfo
    extends java.lang.Object
    implements IlrValueInfo, ilog.rules.brl.value.info.IlrValueInfoExtension
    A default implementation of a value info that allows you to set value descriptors, providers, checkers, and so on.
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrDefaultValueInfo(java.lang.String displayName, java.util.Locale locale) 
    • Constructor Detail

      • IlrDefaultValueInfo

        public IlrDefaultValueInfo(java.lang.String displayName,
                           java.util.Locale locale)
    • Method Detail

      • getDisplayName

        public java.lang.String getDisplayName()
      • getLocale

        public java.util.Locale getLocale()
      • getValueChecker

        public IlrValueChecker getValueChecker()
        Description copied from interface: IlrValueInfo
        Returns the value checker associated with this value info. If no value checker is available the returned value can be null.
        Specified by:
        getValueChecker in interface IlrValueInfo
        Returns:
        The value checker, or null if none.
        See Also:
        IlrValueChecker
      • setValueChecker

        public void setValueChecker(IlrValueChecker valueChecker)
        Sets the value checker associated to this value info.
        Parameters:
        valueChecker - The value checker.
      • getValueDescriptor

        public java.lang.String getValueDescriptor()
        Description copied from interface: IlrValueInfo
        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.
        Specified by:
        getValueDescriptor in interface IlrValueInfo
        Returns:
        The value descriptor.
        See Also:
        IlrValueDescriptor, IlrValueDescriptorFactory
      • setValueDescriptor

        public void setValueDescriptor(java.lang.String valueDescriptor)
        Sets the value descriptor associated to this value info.
        Parameters:
        valueDescriptor - The value descriptor.
      • getValueEditor

        public java.lang.String getValueEditor()
        Description copied from interface: IlrValueInfo
        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.
        Specified by:
        getValueEditor in interface IlrValueInfo
        Returns:
        The value editor key or null if none.
        See Also:
        IlrValueEditor, IlrValueEditorFactory
      • setValueEditor

        public void setValueEditor(java.lang.String valueEditor)
        Sets the value editor associated to this value info.
        Parameters:
        valueEditor - The value editor.
      • getValueProvider

        public IlrValueProvider getValueProvider()
        Description copied from interface: IlrValueInfo
        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.
        Specified by:
        getValueProvider in interface IlrValueInfo
        Returns:
        The value provider, or null if none.
        See Also:
        IlrValueProvider
      • setValueProvider

        public void setValueProvider(IlrValueProvider valueProvider)
        Sets the value provider associated to this value info.
        Parameters:
        valueProvider - The value provider.
      • getValueTranslator

        public IlrValueTranslator getValueTranslator(java.lang.String target)
        Description copied from interface: IlrValueInfo
        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.
        Specified by:
        getValueTranslator in interface IlrValueInfo
        Parameters:
        target - The target language.
        Returns:
        A value translator.
        See Also:
        IlrValueTranslator
      • setValueTranslator

        public void setValueTranslator(java.lang.String target,
                              IlrValueTranslator valueTranslator)
        Sets a value translator for a specific target language.
        Parameters:
        target - The target language.
        valueTranslator - The value translator.
      • getDisplayName

        public java.lang.String getDisplayName(java.util.Locale locale)
        Description copied from interface: IlrValueInfo
        Returns the localized display name of this value info.
        Specified by:
        getDisplayName in interface IlrValueInfo
        Parameters:
        locale - The locale.
        Returns:
        The localized display name.

© Copyright IBM Corp. 1987, 2017