ilog.rules.brl.value.descriptor

Interface IlrValueDescriptor

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean checkValue(IlrSyntaxTree.Node node, java.lang.Object value)
      Checks a value.
      IlrConcept getConcept()
      Returns the concept attached to this value descriptor.
      java.lang.String getDefaultValue(IlrBRLDefinition definition)
      Returns a default value (in a localized text) for this type of value.
      java.lang.String getLocalizedText(java.lang.Object value, IlrBRLDefinition definition)
      Returns the localized text that represents the value in a locale.
      java.lang.String getParsableRepresentation(IlrBRLDefinition definition)
      Returns the regular expression 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).
    • Method Detail

      • getConcept

        IlrConcept getConcept()
        Returns the concept attached to this value descriptor.
      • getParsableRepresentation

        java.lang.String getParsableRepresentation(IlrBRLDefinition definition)
        Returns the regular expression that represents the value in a locale.
        Parameters:
        definition - The business rule language definition.
      • checkValue

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

        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).
        Parameters:
        persistentText - The value (not localized).
      • getValue

        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).
        Parameters:
        text - The localized text (in a form that matches the parsable representation).
        definition - The business rule language definition.
      • getPersistentText

        java.lang.String getPersistentText(java.lang.Object value)
        Returns the non-localized text that represents the value.
        Parameters:
        value - The value.
      • getLocalizedText

        java.lang.String getLocalizedText(java.lang.Object value,
                                        IlrBRLDefinition definition)
        Returns the localized text that represents the value in a locale.
        Parameters:
        value - The value.
        definition - The business rule language definition.
      • getDefaultValue

        java.lang.String getDefaultValue(IlrBRLDefinition definition)
        Returns a default value (in a localized text) for this type of value.
        Parameters:
        definition - The business rule language definition.

© Copyright IBM Corp. 1987, 2017