ilog.rules.vocabulary.verbalization

Interface IlrTermBuilder

  • All Known Implementing Classes:
    IlrDefaultTermBuilder


    public interface IlrTermBuilder
    This interface defines a term builder, used by an IlrVerbalizer. This interface is not intended to be implemented directly. You should sub-class the abstract class IlrDefaultTermBuilder instead. This interface declares only one method getTerm(String, String, boolean) which purpose is to produce a term from the specified string. The string comes from the name of the element to verbalized (a class name, or a member name), and this method will produce a term that will be associated to it. This interface is called when the vocabulary is generated from an Business Object Model.
    Since:
    JRules 6.1
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      IlrTerm getTerm(java.lang.String source, java.lang.String alternateSource, boolean isPlural)
      Creates a term associated to the source string.
    • Method Detail

      • getTerm

        IlrTerm getTerm(java.lang.String source,
                      java.lang.String alternateSource,
                      boolean isPlural)
        Creates a term associated to the source string.
        Parameters:
        source - The source string. This string is actually a BOM class short name or a member name.
        alternateSource - An alternate source string. This string can be used as source in some rare cases where the main source string is not sufficient to build a term. It is usually the type of a unique parameter from a BOM method. It could also be null.
        isPlural - Indicates if the source string is considered as a plural form.
        Returns:
        A new instance of IlrTerm.

© Copyright IBM Corp. 1987, 2017