ilog.rules.vocabulary.verbalization

Class IlrVerbalizerHelper.BasicVerbalizable

  • java.lang.Object
    • ilog.rules.vocabulary.verbalization.IlrVerbalizerHelper.BasicVerbalizable
  • All Implemented Interfaces:
    IlrVerbalizable
    Enclosing class:
    IlrVerbalizerHelper


    public static class IlrVerbalizerHelper.BasicVerbalizable
    extends java.lang.Object
    implements IlrVerbalizable
    This class provides a basic implementation of verbalizable whose label is given as argument of the constructor. This verbalizable is verbalized using default plural, gender and articles
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrVerbalizerHelper.BasicVerbalizable(java.lang.String label)
      Use this constructor to build a basic verbalizable with the given label.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      protected IlrTerm buildDefaultTerm(IlrVocabulary voc)
      This method builds a term for this verbalizable for the given vocabulary
      java.lang.String getLabel()
      Gets the label of this verbalizable element.
      IlrTerm getTerm(IlrVocabulary vocabulary)
      Gets the term associated to this verbalizable element, from a given vocabulary.
      • Methods inherited from class java.lang.Object

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

      • IlrVerbalizerHelper.BasicVerbalizable

        public IlrVerbalizerHelper.BasicVerbalizable(java.lang.String label)
        Use this constructor to build a basic verbalizable with the given label.
        Parameters:
        label - the label used for this verbalizable.
    • Method Detail

      • getLabel

        public java.lang.String getLabel()
        Description copied from interface: IlrVerbalizable
        Gets the label of this verbalizable element.
        Specified by:
        getLabel in interface IlrVerbalizable
        Returns:
        The label of this verbalizable element.
      • getTerm

        public IlrTerm getTerm(IlrVocabulary vocabulary)
        Description copied from interface: IlrVerbalizable
        Gets the term associated to this verbalizable element, from a given vocabulary.
        Specified by:
        getTerm in interface IlrVerbalizable
        Parameters:
        vocabulary - The vocabulary.
        Returns:
        The term found, or null.
      • buildDefaultTerm

        protected IlrTerm buildDefaultTerm(IlrVocabulary voc)
        This method builds a term for this verbalizable for the given vocabulary
        Parameters:
        voc - the vocabulary for which this term is created
        Returns:
        a default term

© Copyright IBM Corp. 1987, 2017