ilog.rules.brl.value.descriptor

Class IlrCharacterValueDescriptor

  • All Implemented Interfaces:
    IlrValueDescriptor, ilog.rules.brl.value.descriptor.IlrValueDescriptorExtension


    public class IlrCharacterValueDescriptor
    extends IlrAbstractValueDescriptor
    This class implements a value descriptor for character lexical values.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String ID
      ID of the Character Value Descriptor
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean checkValue(IlrSyntaxTree.Node node, java.lang.Object value)
      Checks a value.
      java.lang.String getDefaultValue(IlrBRLDefinition definition)
      Returns the default value of a value descriptor.
      java.lang.String getLocalizedText(java.lang.Object value, IlrBRLDefinition definition)
      Returns the localized text that represents the value in a locale.
      java.lang.String getPersistentText(java.lang.Object value)
      Returns the non-localized text that represents the value.
      java.lang.Object getValue(java.lang.String persistentText)
      Returns an object that represents the value (for example, a date returns an instance of java.util.Date).
      java.lang.Object getValue(java.lang.String text, IlrBRLDefinition definition)
      Returns an object that represents the value (for example, a date returns an instance of java.util.Date).
      • Methods inherited from class java.lang.Object

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

      • ID

        public static final java.lang.String ID
        ID of the Character Value Descriptor
        See Also:
        Constant Field Values
    • Constructor Detail

      • IlrCharacterValueDescriptor

        public IlrCharacterValueDescriptor(IlrConcept concept)
        Creates a String value descriptor.
        Parameters:
        concept - The associated concept.
    • Method Detail

      • checkValue

        public boolean checkValue(IlrSyntaxTree.Node node,
                         java.lang.Object value)
        Description copied from interface: IlrValueDescriptor
        Checks a value.
        Parameters:
        node - The abstract syntax tree node that holds the value.
        value - The value to check.
      • getValue

        public java.lang.Object getValue(java.lang.String persistentText)
        Description copied from interface: IlrValueDescriptor
        Returns an object that represents the value (for example, a date returns an instance of java.util.Date).
        Parameters:
        persistentText - The value (not localized).
      • getPersistentText

        public java.lang.String getPersistentText(java.lang.Object value)
        Description copied from interface: IlrValueDescriptor
        Returns the non-localized text that represents the value.
        Parameters:
        value - The value.
      • getValue

        public java.lang.Object getValue(java.lang.String text,
                                IlrBRLDefinition definition)
        Description copied from interface: IlrValueDescriptor
        Returns an object that represents the value (for example, a date returns an instance of java.util.Date).
        Parameters:
        text - The localized text (in a form that matches the parsable representation).
        definition - The business rule language definition.
      • getLocalizedText

        public java.lang.String getLocalizedText(java.lang.Object value,
                                        IlrBRLDefinition definition)
        Description copied from interface: IlrValueDescriptor
        Returns the localized text that represents the value in a locale.
        Parameters:
        value - The value.
        definition - The business rule language definition.

© Copyright IBM Corp. 1987, 2017