ilog.rules.dt

Class IlrDTIRLTranslator.DTRowTranslatorInput

  • java.lang.Object
    • ilog.rules.dt.IlrDTIRLTranslator.DTRowTranslatorInput
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      IlrDTActionSet getActionSet()
      This method returns the action set representing the row translated using this translator input
      java.lang.String getBALCode()
      This method returns the BAL code corresponding to the row translated using this translator input.
      java.lang.String getBusinessName()
      This method returns the business name of the translator input.
      java.lang.String getDocumentation()
      Gets the documentation of the element to translate.
      IlrDTRuleElement getDTRuleElement()
      This method returns the DTRuleElement representing the DT that is translated by this translator
      IlrBRLLogger getLogger()
      Gets the BRL logger associated to this translator input.
      java.lang.String getName()
      Gets the name of the rule as it will be printed in generated code.
      java.lang.String getPackageBusinessName()
      This method returns the business name of the package enclosing this translator input.
      java.lang.String getPackageName()
      Gets the name of the package as it will be printed in generated code.
      java.util.Map getProperties()
      Gets the map of properties of the element to translate.
      protected java.lang.String getRuleBusinessName() 
      int getRuleIndex()
      This method returns the index of the row translated using this translator input
      IlrSyntaxTree getSyntaxTree()
      Gets the syntax tree of the element to translate.
      boolean useBAL()
      This method returns whether this translator is using BAL code to translate the row in IRL code
      • Methods inherited from class java.lang.Object

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

      • IlrDTIRLTranslator.DTRowTranslatorInput

        public IlrDTIRLTranslator.DTRowTranslatorInput(IlrDTActionSet actionSet,
                                               java.lang.String balCode,
                                               int ruleIndex)
        This constructor is called to create a Row Translator input. The translation will be based on the given BAL code.
        Parameters:
        actionSet - the action set representing the row to be translated
        balCode - the BAL code of the row
        ruleIndex - the index of the row
      • IlrDTIRLTranslator.DTRowTranslatorInput

        public IlrDTIRLTranslator.DTRowTranslatorInput(IlrDTActionSet actionSet,
                                               int ruleIndex)
        This constructor is called to create a Row Translator Input.
        Parameters:
        actionSet - the action set representing the row to be translated
        ruleIndex - the index of the row
    • Method Detail

      • getDTRuleElement

        public IlrDTRuleElement getDTRuleElement()
        This method returns the DTRuleElement representing the DT that is translated by this translator
        Returns:
        the translated DT
      • getActionSet

        public IlrDTActionSet getActionSet()
        This method returns the action set representing the row translated using this translator input
        Returns:
        an action set
      • getRuleIndex

        public int getRuleIndex()
        This method returns the index of the row translated using this translator input
        Returns:
        the rule index
      • getBALCode

        public java.lang.String getBALCode()
        This method returns the BAL code corresponding to the row translated using this translator input.
        Returns:
        the BAL code of the row or null if this translator is not using BAL code to translate the row.
      • useBAL

        public boolean useBAL()
        This method returns whether this translator is using BAL code to translate the row in IRL code
        Returns:
        true if BAL code is used
      • getName

        public java.lang.String getName()
        Description copied from interface: IlrTranslatorInput
        Gets the name of the rule as it will be printed in generated code.
        Specified by:
        getName in interface IlrTranslatorInput
        Returns:
        the name
      • getBusinessName

        public java.lang.String getBusinessName()
        Description copied from interface: IlrTranslatorInputExtension
        This method returns the business name of the translator input. Unlike getName(), this method returns a name which is not the technical name generated in the IRL statement.
        Specified by:
        getBusinessName in interface IlrTranslatorInputExtension
        Returns:
        the translator input business name.
      • getPackageName

        public java.lang.String getPackageName()
        Description copied from interface: IlrTranslatorInput
        Gets the name of the package as it will be printed in generated code.
        Specified by:
        getPackageName in interface IlrTranslatorInput
        Returns:
        the name of the package containing the element to translate, or null.
      • getPackageBusinessName

        public java.lang.String getPackageBusinessName()
        Description copied from interface: IlrTranslatorInputExtension
        This method returns the business name of the package enclosing this translator input. Unlike getPackageName(), this method returns a name which is not the technical package name generated in the IRL statement. If the translator input belongs to the default package, null should be returned.
        Specified by:
        getPackageBusinessName in interface IlrTranslatorInputExtension
        Returns:
        the translator input package business name.
      • getProperties

        public java.util.Map getProperties()
        Description copied from interface: IlrTranslatorInput
        Gets the map of properties of the element to translate. Notice that the values contained in the map will be printed as they are. No formating will be done by the code generator.
        Specified by:
        getProperties in interface IlrTranslatorInput
        Returns:
        The map of all properties.
      • getRuleBusinessName

        protected java.lang.String getRuleBusinessName()
      • getDocumentation

        public java.lang.String getDocumentation()
        Description copied from interface: IlrTranslatorInput
        Gets the documentation of the element to translate.
        Specified by:
        getDocumentation in interface IlrTranslatorInput
        Returns:
        The documentation.

© Copyright IBM Corp. 1987, 2017