ilog.rules.vocabulary.model.bom

Class IlrBOMVocabularyBuilder.Term

  • java.lang.Object
    • ilog.rules.vocabulary.model.bom.IlrBOMVocabularyBuilder.Term
  • Enclosing class:
    IlrBOMVocabularyBuilder


    public static class IlrBOMVocabularyBuilder.Term
    extends java.lang.Object
    This nested class represents a vocabulary Term that can be used to attached a specific plural, gender and a set of specific articles to a term. A Term has a label. When used in a language, a default plural, gender and articles are computed according to the Locale, unless they are specified along with this term. If it is the case, the term is added to the vocabulary glossary and used wherever the term is referenced in the vocabulary. Use IlrBOMVocabularyBuilder.createTerm() to build such a term and use its setter APIs to set specific term properties such as gender, plural or articles.
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrBOMVocabularyBuilder.Term(java.lang.String label)
      This constructor creates a Term for the given label
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String getDefiniteArticle()
      This method returns the definite singular article associated to this term if any.
      java.lang.String getDefinitePluralArticle()
      This method returns the definite plural article associated to this term if any.
      java.lang.String getDemonstrativeArticle()
      This method returns the demonstrative singular article associated to this term if any.
      java.lang.String getDemonstrativeEachArticle()
      This method returns the demonstrative 'each' article associated to this term if any.
      java.lang.String getDemonstrativePluralArticle()
      This method returns the demonstrative plural article associated to this term if any.
      IlrGender getGender()
      This method returns the gender associated to this term if any.
      java.lang.String getIndefiniteArticle()
      This method returns the indefinite singular article associated to this term if any.
      java.lang.String getIndefinitePluralArticle()
      This method returns the indefinite plural article associated to this term if any.
      java.lang.String getLabel()
      This method returns the term label.
      java.lang.String getPluralLabel()
      This method returns the plural label associated to this term if any.
      java.util.Map<java.lang.String,java.lang.Object> getProperties()
      This method returns all properties associated to this term.
      java.lang.String getQuantitativeArticle()
      This method returns the quantitative singular article associated to this term if any.
      java.lang.String getQuantitativePluralArticle()
      This method returns the quantitative plural article associated to this term if any.
      boolean hasArticle()
      This method returns true if at least one specific article has been defined for this term.
      void setDefiniteArticle(java.lang.String article)
      This method sets the definite singular article associated to this term.
      void setDefinitePluralArticle(java.lang.String article)
      This method sets the definite plural article associated to this term.
      void setDemonstrativeArticle(java.lang.String article)
      This method sets the demonstrative singular article associated to this term.
      void setDemonstrativeEachArticle(java.lang.String article)
      This method sets the demonstrative 'each' article associated to this term.
      void setDemonstrativePluralArticle(java.lang.String article)
      This method sets the demonstrative plural article associated to this term.
      void setGender(IlrGender gender)
      This method set the gender associated to this term.
      void setIndefiniteArticle(java.lang.String article)
      This method sets the indefinite singular article associated to this term.
      void setIndefinitePluralArticle(java.lang.String article)
      This method sets the indefinite plural article associated to this term.
      void setPluralLabel(java.lang.String pluralLabel)
      This method set the plural label associated to this term if any.
      void setProperties(IlrBOMVocabularyBuilder.PropertyMap props)
      This method assign a set of properties to this term.
      void setQuantitativeArticle(java.lang.String article)
      This method sets the quantitative singular article associated to this term.
      void setQuantitativePluralArticle(java.lang.String article)
      This method sets the quantitative plural article associated to this term.
      • Methods inherited from class java.lang.Object

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

      • IlrBOMVocabularyBuilder.Term

        public IlrBOMVocabularyBuilder.Term(java.lang.String label)
        This constructor creates a Term for the given label
        Parameters:
        label - the term label. Cannot be null.
    • Method Detail

      • getLabel

        public java.lang.String getLabel()
        This method returns the term label.
        Returns:
        the term label
      • getGender

        public IlrGender getGender()
        This method returns the gender associated to this term if any.
        Returns:
        a Gender or null if none has been specified
      • setGender

        public void setGender(IlrGender gender)
        This method set the gender associated to this term.
        Parameters:
        gender - a Gender object to set to this term
      • getPluralLabel

        public java.lang.String getPluralLabel()
        This method returns the plural label associated to this term if any.
        Returns:
        a plural or null if none has been specified
      • setPluralLabel

        public void setPluralLabel(java.lang.String pluralLabel)
        This method set the plural label associated to this term if any.
        Parameters:
        pluralLabel - the plural
      • getDefiniteArticle

        public java.lang.String getDefiniteArticle()
        This method returns the definite singular article associated to this term if any.
        Returns:
        the definite/singular article used with term or null if none has been specified
      • setDefiniteArticle

        public void setDefiniteArticle(java.lang.String article)
        This method sets the definite singular article associated to this term.
        Parameters:
        article - the article
      • getDefinitePluralArticle

        public java.lang.String getDefinitePluralArticle()
        This method returns the definite plural article associated to this term if any.
        Returns:
        the definite/plural article used with term or null if none has been specified
      • setDefinitePluralArticle

        public void setDefinitePluralArticle(java.lang.String article)
        This method sets the definite plural article associated to this term.
        Parameters:
        article - the article
      • getIndefiniteArticle

        public java.lang.String getIndefiniteArticle()
        This method returns the indefinite singular article associated to this term if any.
        Returns:
        the indefinite/singular article used with term or null if none has been specified
      • setIndefiniteArticle

        public void setIndefiniteArticle(java.lang.String article)
        This method sets the indefinite singular article associated to this term.
        Parameters:
        article - the article
      • getIndefinitePluralArticle

        public java.lang.String getIndefinitePluralArticle()
        This method returns the indefinite plural article associated to this term if any.
        Returns:
        the indefinite/plural article used with term or null if none has been specified
      • setIndefinitePluralArticle

        public void setIndefinitePluralArticle(java.lang.String article)
        This method sets the indefinite plural article associated to this term.
        Parameters:
        article - the article
      • getQuantitativeArticle

        public java.lang.String getQuantitativeArticle()
        This method returns the quantitative singular article associated to this term if any.
        Returns:
        the quantitative/singular article used with term or null if none has been specified
      • setQuantitativeArticle

        public void setQuantitativeArticle(java.lang.String article)
        This method sets the quantitative singular article associated to this term.
        Parameters:
        article - the article
      • getQuantitativePluralArticle

        public java.lang.String getQuantitativePluralArticle()
        This method returns the quantitative plural article associated to this term if any.
        Returns:
        the quantitative/plural article used with term or null if none has been specified
      • setQuantitativePluralArticle

        public void setQuantitativePluralArticle(java.lang.String article)
        This method sets the quantitative plural article associated to this term.
        Parameters:
        article - the article
      • getDemonstrativeArticle

        public java.lang.String getDemonstrativeArticle()
        This method returns the demonstrative singular article associated to this term if any.
        Returns:
        the demonstrative/singular article used with term or null if none has been specified
      • setDemonstrativeArticle

        public void setDemonstrativeArticle(java.lang.String article)
        This method sets the demonstrative singular article associated to this term.
        Parameters:
        article - the article
      • getDemonstrativePluralArticle

        public java.lang.String getDemonstrativePluralArticle()
        This method returns the demonstrative plural article associated to this term if any.
        Returns:
        the demonstrative/plural article used with term or null if none has been specified
      • setDemonstrativePluralArticle

        public void setDemonstrativePluralArticle(java.lang.String article)
        This method sets the demonstrative plural article associated to this term.
        Parameters:
        article - the article
      • getDemonstrativeEachArticle

        public java.lang.String getDemonstrativeEachArticle()
        This method returns the demonstrative 'each' article associated to this term if any.
        Returns:
        the demonstrative/each article used with term or null if none has been specified
      • setDemonstrativeEachArticle

        public void setDemonstrativeEachArticle(java.lang.String article)
        This method sets the demonstrative 'each' article associated to this term.
        Parameters:
        article - the article
      • hasArticle

        public boolean hasArticle()
        This method returns true if at least one specific article has been defined for this term.
        Returns:
        true if at least one article is non-null and false otherwise
      • setProperties

        public void setProperties(IlrBOMVocabularyBuilder.PropertyMap props)
        This method assign a set of properties to this term. All properties are considered, locale-specific or not
        Parameters:
        props - a property map
      • getProperties

        public java.util.Map<java.lang.String,java.lang.Object> getProperties()
        This method returns all properties associated to this term.
        Returns:
        a map with all properties or null if none are defined.

© Copyright IBM Corp. 1987, 2017