ilog.rules.brl.value.descriptor

Class IlrAbstractValueDescriptor

  • java.lang.Object
    • ilog.rules.brl.value.descriptor.IlrAbstractValueDescriptor
  • All Implemented Interfaces:
    IlrValueDescriptor, ilog.rules.brl.value.descriptor.IlrValueDescriptorExtension
    Direct Known Subclasses:
    IlrCharacterValueDescriptor, IlrDateValueDescriptor, IlrDecoratedValueDescriptor, IlrNumberValueDescriptor, IlrStringValueDescriptor


    public abstract class IlrAbstractValueDescriptor
    extends java.lang.Object
    implements IlrValueDescriptor, ilog.rules.brl.value.descriptor.IlrValueDescriptorExtension
    IlrAbstractValueDescriptor provides part of the implementation of the IlrValueDescriptor interface. This class retrieves the parsable representation of a value descriptor with a property mechanism:
    • In the business rule language definition (in the concrete syntax <language>.properties file) with the property <fully qualified name of BOM type>#valueDescriptor.parsableRepresentation.
    • In the associated BOM class with the custom property valueDescriptor.parsableRepresentation.
    • Field Detail

      • concept

        protected final IlrConcept concept
        The concept represented by this value descriptor.
    • Constructor Detail

      • IlrAbstractValueDescriptor

        protected IlrAbstractValueDescriptor(IlrConcept concept)
        Initializes an abstract value descriptor.
        Parameters:
        concept - The associated concept.
    • Method Detail

      • getConcept

        public final IlrConcept getConcept()
        Returns the concept represented by this value descriptor.
        Specified by:
        getConcept in interface IlrValueDescriptor
        Returns:
        the concept represented by this value descriptor.
      • getParsableRepresentation

        public java.lang.String getParsableRepresentation(IlrBRLDefinition definition)
        Returns the parsable representation of this value descriptor.
        Specified by:
        getParsableRepresentation in interface IlrValueDescriptor
        Parameters:
        definition - The value descriptor.
        Returns:
        The parsable representation of definition.
      • getDefaultValue

        public java.lang.String getDefaultValue(IlrBRLDefinition definition)
        Returns the default value of a value descriptor. This default value is used each time a value with this value descriptor is used in a rule.
        Specified by:
        getDefaultValue in interface IlrValueDescriptor
        Parameters:
        definition - The value descriptor.
        Returns:
        The default value of definition.
      • getValue

        public java.lang.Object getValue(java.lang.String text,
                                IlrBRLDefinition definition,
                                boolean strict)
        Returns an object that represents a string value. This default implementation calls IlrValueDescriptor.getValue(text, definition). If strict is set to true, concrete subclasses of IlrAbstractValueDescriptor can implement strict parsing for text if applicable.
        Parameters:
        text - Localized text in a form that matches a parsable representation. For example, a date returns an instance of java.util.Date.
        definition - The business rule language definition.
        strict - Set to true so strict parsing of text is performed.
        Returns:
        The value resulting from parsing text.
        See Also:
        IlrValueDescriptor.getValue(java.lang.String text, IlrBRLDefinition definition)

© Copyright IBM Corp. 1987, 2017