ilog.rules.vocabulary.verbalization

Class IlrDefaultArticleBuilder

  • java.lang.Object
    • ilog.rules.vocabulary.verbalization.IlrDefaultArticleBuilder
    • Constructor Detail

      • IlrDefaultArticleBuilder

        public IlrDefaultArticleBuilder()
    • Method Detail

      • getPluralArticle

        protected abstract java.lang.String getPluralArticle(IlrVerbalizationContext context,
                                        IlrVerbalizable verbalizable)
                                                      throws IlrVerbalizationException
        Returns the plural article that should be used for the specified verbalizable in the specified verbalization context provided as argument.
        Throws:
        IlrVerbalizationException
        Parameters:
        context - The verbalization context used to compute the plural article.
        verbalizable - The verbalizable for which the plural article is built.
        Returns:
        The plural article.
      • getSingularArticle

        protected abstract java.lang.String getSingularArticle(IlrVerbalizationContext context,
                                          IlrVerbalizable verbalizable)
                                                        throws IlrVerbalizationException
        Returns the singular article that should be used for the specified verbalizable in the specified verbalization context provided as argument.
        Throws:
        IlrVerbalizationException
        Parameters:
        context - The verbalization context used to compute the singular article.
        verbalizable - The verbalizable for which the singular article is built.
        Returns:
        The singular article.
      • defaultGetArticle

        protected java.lang.String defaultGetArticle(IlrVerbalizationContext context,
                                         IlrVerbalizable verbalizable)
        Gets the article as specified in the glossary.
        Parameters:
        context - The verbalization context.
        verbalizable - The verbalizable.

© Copyright IBM Corp. 1987, 2017