ilog.rules.brl.parsing

Interface IlrBRLParserService

  • All Superinterfaces:
    IlrBRLParser
    All Known Implementing Classes:
    IlrBRLParserManager


    public interface IlrBRLParserService
    extends IlrBRLParser
    IlrBRLParserService specifies the API of a BRL parser service used to parse BRL input text and to compute predictions. The BRL parser accessible through this service is configured using:
    • An IlrBRLParserConfigurationDef object to configure the parser.
    • An optional IlrBRLPredictionConfigurationDef object to configure the prediction.

    A text input implementing IlrBRLParserInput is passed to this parser and interpreted. A syntax tree is created and a list of errors is reported to the parser configuration.

    This interface is not supposed to be implemented outside the BRL framework. The IlrBRLParserManager implementation of this interface can be used outside any environment. This interface is replacing IlrBRLParser.

    Since:
    JRules 7.5
    See Also:
    IlrBRLParserManager
    • Method Detail

      • getVocabulary

        IlrVocabulary getVocabulary(IlrBRLDefinition definition,
                                  java.util.Locale locale)
        Returns the vocabulary associated with the parser for the given language and the given locale.
        Throws:
        java.lang.IllegalArgumentException - if the parser does not support the given locale.
        Parameters:
        definition - The BRL language.
        locale - The locale to check.
        Returns:
        The vocabulary associated with the parser for the defined language and locale.

© Copyright IBM Corp. 1987, 2017