ilog.rules.vocabulary.model.bom

Class IlrBOMVocabularyFactory

  • java.lang.Object
    • ilog.rules.vocabulary.model.bom.IlrBOMVocabularyFactory


  • public final class IlrBOMVocabularyFactory
    extends java.lang.Object
    Use IlrBOMVocabularyFactory to create instances of IlrBOMVocabulary.

    Code example

    The following code example shows how to create a vocabulary from a business object model using an IlrBOMVocabularyFactory.

       protected IlrBOMVocabulary createVocabulary(IlrObjectModel bom, Locale locale) {
         IlrBOMVocabulary vocabulary = IlrBOMVocabularyFactory.createBOMVocabulary(locale, bom);
         return vocabulary;
       }
     
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static IlrBOMVocabulary createBOMVocabulary(IlrObjectModel bom)
      Creates a BOM vocabulary from an IlrObjectModel instance.
      static IlrBOMVocabulary createBOMVocabulary(java.util.Locale locale, IlrObjectModel bom)
      Creates a BOM vocabulary from an IlrObjectModel instance, for the specified locale.
      static IlrBOMVocabularySet createBOMVocabularySet(java.util.Locale locale, IlrBOMVocabulary[] vocPath, boolean includeBootVoc)
      Creates a BOM vocabulary set, initialized using the specified locale, an array of vocabularies, and the system BOM vocabulary if the flag includeBootVoc is set to true.
      static IlrBOMVocabularySet createBOMVocabularySet(java.util.Locale locale, IlrBOMVocabulary vocabulary, boolean includeBootVoc)
      Creates a BOM vocabulary set, initialized using the specified locale.
      static IlrBOMVocabularySet createBOMVocabularySet(java.util.Locale locale, java.util.List vocPath, boolean includeBootVoc)
      Creates a BOM vocabulary set, initialized using the specified locale, an ordered list of vocabularies, and the system BOM vocabulary if the flag includeBootVoc is set to true.
      • Methods inherited from class java.lang.Object

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

      • createBOMVocabulary

        public static final IlrBOMVocabulary createBOMVocabulary(IlrObjectModel bom)
        Creates a BOM vocabulary from an IlrObjectModel instance.
        Parameters:
        bom - The object model.
        Returns:
        The new instance of IlrBOMVocabulary.
      • createBOMVocabulary

        public static final IlrBOMVocabulary createBOMVocabulary(java.util.Locale locale,
                                           IlrObjectModel bom)
        Creates a BOM vocabulary from an IlrObjectModel instance, for the specified locale.
        Parameters:
        locale - The locale.
        bom - The object model.
        Returns:
        The new instance of IlrBOMVocabulary.
      • createBOMVocabularySet

        public static final IlrBOMVocabularySet createBOMVocabularySet(java.util.Locale locale,
                                                 IlrBOMVocabulary vocabulary,
                                                 boolean includeBootVoc)
        Creates a BOM vocabulary set, initialized using the specified locale. The BOM vocabulary set will contain the provided vocabulary, and the system BOM vocabulary if the flag includeBootVoc is set to true.
        Parameters:
        locale - The locale.
        vocabulary - The lone IlrBOMVocabulary composing this vocabulary set.
        includeBootVoc - If true, the system BOM vocabulary is added after vocabulary.
        Returns:
        The new instance of IlrBOMVocabularySet.
      • createBOMVocabularySet

        public static final IlrBOMVocabularySet createBOMVocabularySet(java.util.Locale locale,
                                                 IlrBOMVocabulary[] vocPath,
                                                 boolean includeBootVoc)
        Creates a BOM vocabulary set, initialized using the specified locale, an array of vocabularies, and the system BOM vocabulary if the flag includeBootVoc is set to true.
        Parameters:
        locale - The locale.
        vocPath - The array of vocabularies that composes this vocabulary set.
        includeBootVoc - Indicates if the system BOM vocabulary should be included at the end of the vocabulary path.
        Returns:
        The new instance of IlrBOMVocabularySet.
      • createBOMVocabularySet

        public static final IlrBOMVocabularySet createBOMVocabularySet(java.util.Locale locale,
                                                 java.util.List vocPath,
                                                 boolean includeBootVoc)
        Creates a BOM vocabulary set, initialized using the specified locale, an ordered list of vocabularies, and the system BOM vocabulary if the flag includeBootVoc is set to true.
        Parameters:
        locale - The locale.
        vocPath - The ordered list of vocabularies that composes this vocabulary set.
        includeBootVoc - Indicates if the system BOM vocabulary should be included at the end of the vocabulary path.
        Returns:
        The new instance of IlrBOMVocabularySet.

© Copyright IBM Corp. 1987, 2017