ilog.rules.vocabulary.model

Interface IlrGlossary

  • All Superinterfaces:
    IlrNotifier, java.io.Serializable


    public interface IlrGlossary
    extends IlrNotifier, java.io.Serializable
    This interface defines glossaries. A glossary is a set of terms, attached to a vocabulary. It contains data for the internationalization of terms.
    See Also:
    IlrTerm
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean addTerm(IlrTerm term)
      Adds a term into the glossary.
      boolean containTerm(IlrTerm term)
      Tests if the glossary contains a given term.
      IlrTerm getTerm(java.lang.String id)
      Gets a term by its ID.
      int getTermCount()
      Returns the count of all terms in this glossary.
      java.util.Set idSet()
      Returns the set of all IDs of the terms in this glossary.
      void read(java.io.InputStream istream)
      Reads the specified input stream and loads it into this glossary.
      boolean removeTerm(IlrTerm term)
      Removes a term from the glossary.
      java.util.Set termSet()
      Returns the set of all terms in this glossary.
      void write(java.io.OutputStream ostream)
      Writes this glossary to the specified output stream.
    • Field Detail

      • TERM_PLURAL_LITERAL

        static final java.lang.String TERM_PLURAL_LITERAL
        internal
        See Also:
        Constant Field Values
      • TERM_GENDER_LITERAL

        static final java.lang.String TERM_GENDER_LITERAL
        internal
        See Also:
        Constant Field Values
    • Method Detail

      • idSet

        java.util.Set idSet()
        Returns the set of all IDs of the terms in this glossary.
        Returns:
        The set of all IDs of the terms in this glossary.
      • termSet

        java.util.Set termSet()
        Returns the set of all terms in this glossary.
        Returns:
        The set of all terms in this glossary.
      • getTermCount

        int getTermCount()
        Returns the count of all terms in this glossary.
        Returns:
        The count of all terms in this glossary.
      • addTerm

        boolean addTerm(IlrTerm term)
        Adds a term into the glossary.
        Parameters:
        term - The term to add.
        Returns:
        false if the term is already in the glossary, true otherwise.
      • removeTerm

        boolean removeTerm(IlrTerm term)
        Removes a term from the glossary.
        Parameters:
        term - The term to remove.
        Returns:
        true if the term has been successfully removed, false if the term was not in the glossary.
      • containTerm

        boolean containTerm(IlrTerm term)
        Tests if the glossary contains a given term.
        Parameters:
        term - The term to be tested.
        Returns:
        true if the glossary contains the term, false otherwise.
      • getTerm

        IlrTerm getTerm(java.lang.String id)
        Gets a term by its ID.
        Parameters:
        id - The ID of the term to retrieve.
        Returns:
        The term found, or null if no term has been found.
      • read

        void read(java.io.InputStream istream)
                  throws java.io.IOException
        Reads the specified input stream and loads it into this glossary.
        Throws:
        java.io.IOException
        Parameters:
        istream - The input stream.
      • write

        void write(java.io.OutputStream ostream)
                   throws java.io.IOException
        Writes this glossary to the specified output stream.
        Throws:
        java.io.IOException
        Parameters:
        ostream - The output stream.

© Copyright IBM Corp. 1987, 2017