com.ibm.bdsl.web.editor

Class DefaultIntelliTextEditorEnvironment

  • java.lang.Object
    • com.ibm.bdsl.web.editor.DefaultIntelliTextEditorEnvironment
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected ilog.rules.brl.brldf.IlrBRLDefinition definition 
      protected com.ibm.bdsl.web.editor.parsing.FixProposalStrategy fixProposalStrategy 
      protected ilog.rules.brl.parsing.IlrBRLParserService parser 
      protected java.lang.String rootAxiom 
      protected ilog.rules.brl.brldf.IlrBRLVariableProvider variableProvider 
    • Constructor Summary

      Constructors 
      Constructor and Description
      DefaultIntelliTextEditorEnvironment(ilog.rules.brl.parsing.IlrBRLParserService parser, ilog.rules.brl.brldf.IlrBRLDefinition definition)
      Class Constructor
      DefaultIntelliTextEditorEnvironment(ilog.rules.brl.parsing.IlrBRLParserService parser, ilog.rules.brl.brldf.IlrBRLVariableProvider variableProvider, ilog.rules.brl.brldf.IlrBRLDefinition definition, java.lang.String rootAxiom)
      Class Constructor
      DefaultIntelliTextEditorEnvironment(ilog.rules.brl.parsing.IlrBRLParserService parser, ilog.rules.brl.brldf.IlrBRLVariableProvider variableProvider, ilog.rules.brl.brldf.IlrBRLDefinition definition, java.lang.String rootAxiom, com.ibm.bdsl.web.editor.parsing.FixProposalStrategy fixProposalStrategy) 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.util.Set<java.lang.String> getCategoryFilter()
      Returns the Category Filter Set.
      ilog.rules.brl.brldf.IlrBRLDefinition getDefinition()
      Returns the business rule language definition that will be used to parse the input.
      com.ibm.bdsl.web.editor.parsing.FixProposalStrategy getFixProposalStrategy() 
      ilog.rules.brl.parsing.IlrBRLParserService getParser()
      Returns the IlrBRLParserService used by the intellitext editor
      ilog.rules.brl.parsing.IlrBRLParserConfigurationDef getParserConfiguration()
      Returns the Parser Configuration to be used for the request.
      ilog.rules.brl.IlrBRLParserInput getParserInput(java.lang.String text)
      Returns the Parser Input to be used for the request.
      ilog.rules.brl.parsing.IlrBRLPredictionConfigurationDef getPredictionConfiguration(int offset)
      Returns the Prediction Configuration to be used for the request and passed offset.
      java.lang.String getRootAxiom()
      Specifies an axiom that the parser will use.
      ilog.rules.brl.brldf.IlrBRLVariableProvider getVariableProvider()
      Returns the variable provider associated to the configuration.
      • Methods inherited from class java.lang.Object

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

      • parser

        protected final ilog.rules.brl.parsing.IlrBRLParserService parser
      • variableProvider

        protected final ilog.rules.brl.brldf.IlrBRLVariableProvider variableProvider
      • definition

        protected final ilog.rules.brl.brldf.IlrBRLDefinition definition
      • rootAxiom

        protected final java.lang.String rootAxiom
      • fixProposalStrategy

        protected final com.ibm.bdsl.web.editor.parsing.FixProposalStrategy fixProposalStrategy
    • Constructor Detail

      • DefaultIntelliTextEditorEnvironment

        public DefaultIntelliTextEditorEnvironment(ilog.rules.brl.parsing.IlrBRLParserService parser,
                                           ilog.rules.brl.brldf.IlrBRLVariableProvider variableProvider,
                                           ilog.rules.brl.brldf.IlrBRLDefinition definition,
                                           java.lang.String rootAxiom)
        Class Constructor
        Parameters:
        parser - the parser service
        variableProvider - the variable provider (can be null)
        definition - the language definition
        rootAxiom - the root axiom (can be null)
        See Also:
        IlrBRLParserService, IlrBRLVariableProvider, IlrBRLDefinition
      • DefaultIntelliTextEditorEnvironment

        public DefaultIntelliTextEditorEnvironment(ilog.rules.brl.parsing.IlrBRLParserService parser,
                                           ilog.rules.brl.brldf.IlrBRLVariableProvider variableProvider,
                                           ilog.rules.brl.brldf.IlrBRLDefinition definition,
                                           java.lang.String rootAxiom,
                                           com.ibm.bdsl.web.editor.parsing.FixProposalStrategy fixProposalStrategy)
      • DefaultIntelliTextEditorEnvironment

        public DefaultIntelliTextEditorEnvironment(ilog.rules.brl.parsing.IlrBRLParserService parser,
                                           ilog.rules.brl.brldf.IlrBRLDefinition definition)
        Class Constructor
        Parameters:
        parser - the parser service
        definition - the language definition
        See Also:
        IlrBRLParserService, IlrBRLDefinition
    • Method Detail

      • getVariableProvider

        public ilog.rules.brl.brldf.IlrBRLVariableProvider getVariableProvider()
        Description copied from interface: IntelliTextEditorEnvironment
        Returns the variable provider associated to the configuration. Can be null.
        Specified by:
        getVariableProvider in interface IntelliTextEditorEnvironment
        Returns:
        The variable provider associated to the configuration.
        See Also:
        IlrBRLVariableProvider
      • getDefinition

        public ilog.rules.brl.brldf.IlrBRLDefinition getDefinition()
        Description copied from interface: IntelliTextEditorEnvironment
        Returns the business rule language definition that will be used to parse the input.
        Specified by:
        getDefinition in interface IntelliTextEditorEnvironment
        Returns:
        A IlrBRLDefinition object representing the business rule language definition for the appropriate locale.
        See Also:
        IlrBRLDefinition, IlrBAL.getDefinition(java.util.Locale)
      • getCategoryFilter

        public java.util.Set<java.lang.String> getCategoryFilter()
        Description copied from interface: IntelliTextEditorEnvironment
        Returns the Category Filter Set. If null, the default category filter Set will be used.
        Specified by:
        getCategoryFilter in interface IntelliTextEditorEnvironment
        Returns:
        the category filter Set, or null to use the defaults
      • getParserConfiguration

        public ilog.rules.brl.parsing.IlrBRLParserConfigurationDef getParserConfiguration()
        Description copied from interface: IntelliTextEditorEnvironment
        Returns the Parser Configuration to be used for the request. If null, the commands will use request parameters in order to create the configuration.
        Specified by:
        getParserConfiguration in interface IntelliTextEditorEnvironment
        Returns:
        the parser config for the request, or null to use the defaults
        See Also:
        IlrBRLParserConfigurationDef
      • getPredictionConfiguration

        public ilog.rules.brl.parsing.IlrBRLPredictionConfigurationDef getPredictionConfiguration(int offset)
        Description copied from interface: IntelliTextEditorEnvironment
        Returns the Prediction Configuration to be used for the request and passed offset. If null, the commands will use request parameters in order to create the configuration.
        Specified by:
        getPredictionConfiguration in interface IntelliTextEditorEnvironment
        Parameters:
        offset - the offset in the text
        Returns:
        the prediction config for the request, or null to use the defaults
        See Also:
        IlrBRLPredictionConfigurationDef
      • getParserInput

        public ilog.rules.brl.IlrBRLParserInput getParserInput(java.lang.String text)
        Description copied from interface: IntelliTextEditorEnvironment
        Returns the Parser Input to be used for the request. If null, the commands will create a default input.
        Specified by:
        getParserInput in interface IntelliTextEditorEnvironment
        Parameters:
        text - the text to be parsed
        Returns:
        the parser input for the request, or null to use the defaults
        See Also:
        IlrBRLParserInput

© Copyright IBM Corp. 1987, 2017