ilog.rules.vocabulary.model

Interface IlrTerm

  • All Superinterfaces:
    IlrNotifier


    public interface IlrTerm
    extends IlrNotifier
    This interface defines terms in a glossary.

    A term defines a set of properties used for the verbalization of a verbalizable element. These properties may be the plural form of a word, the articles that may be used with it, and so on. Not all properties may not be useful in all languages. The term is identified by its label.

    A verbalizable element is attached to a term with its label. When a concept or a role is verbalized, an associated term is retrieved from the glossary of the vocabulary using:

     IlrTerm term = verbalizable.getTerm(vocabulary);
     

    Note that the methods getGender() and getPluralLabel() are helpers to get those two properties for the list of properties of the term.

    See Also:
    IlrGlossary
    • Method Detail

      • getLabel

        java.lang.String getLabel()
        Gets the label of this term.
        Returns:
        The label of this term.
      • setLabel

        void setLabel(java.lang.String label)
        Sets the label of this term.
        Parameters:
        label - The new label.
      • getPluralLabel

        java.lang.String getPluralLabel()
        Gets the plural label of this term.
        Returns:
        The plural label of this term.
      • setPluralLabel

        void setPluralLabel(java.lang.String pluralLabel)
        Sets the plural label of this term.
        Parameters:
        pluralLabel - The new plural label.
      • getGender

        IlrGender getGender()
        Gets the gender of this term.
        Returns:
        The gender of this term.
      • setGender

        void setGender(IlrGender gender)
        Sets the gender of this term.
        Parameters:
        gender - The new gender of this term.
      • addTermProperty

        void addTermProperty(java.lang.String key,
                           java.lang.String value)
        Adds a property to the term. If the property already exists, its value is overriden.
        Parameters:
        key - The property key.
        value - The property value.
      • getTermPropertyValue

        java.lang.String getTermPropertyValue(java.lang.String key)
        Gets the value of a property.
        Parameters:
        key - The key of the term property.
        Returns:
        The value of the term property.
      • removeTermProperty

        void removeTermProperty(java.lang.String key)
        Removes a term property by its key.
        Parameters:
        key - A String that represents the key of the term property.
      • getAllDefinedTermProperties

        java.util.Set getAllDefinedTermProperties()
        Gets the list of property keys for this term.
      • setTermProperties

        void setTermProperties(java.util.Map termProps)
        Sets term properties as a map.
        Parameters:
        termProps - The map of term properties.
      • getTermProperties

        java.util.Map getTermProperties()
        Gets the term properties as a map.
        Returns:
        The map of term properties, or an empty map if no properties have been defined on this term.

© Copyright IBM Corp. 1987, 2017