ilog.rules.vocabulary.model.bom.io

Class IlrBOMVocabularySerializer

  • java.lang.Object
    • ilog.rules.vocabulary.model.bom.io.IlrBOMVocabularySerializer
  • All Implemented Interfaces:
    ilog.rules.vocabulary.model.io.IlrVocabularySerializer


    public class IlrBOMVocabularySerializer
    extends java.lang.Object
    implements ilog.rules.vocabulary.model.io.IlrVocabularySerializer
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String getName() 
      void readVocabulary(IlrVocabulary vocabulary, java.io.Reader reader, java.lang.Object context)
      Reads the vocabulary from the provided reader.
      void writeVocabulary(IlrVocabulary vocabulary, java.io.Writer writer)
      Writes the vocabulary into the provided writer.
      • Methods inherited from class java.lang.Object

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

      • PROPERTIES_VOC_FILE_EXTENSION

        public static final java.lang.String PROPERTIES_VOC_FILE_EXTENSION
        See Also:
        Constant Field Values
    • Constructor Detail

      • IlrBOMVocabularySerializer

        public IlrBOMVocabularySerializer()
    • Method Detail

      • getName

        public java.lang.String getName()
      • writeVocabulary

        public void writeVocabulary(IlrVocabulary vocabulary,
                           java.io.Writer writer)
                             throws java.io.IOException
        Writes the vocabulary into the provided writer.
        Throws:
        java.io.IOException
        Parameters:
        vocabulary - The vocabulary to write.
        writer - The writer.
      • readVocabulary

        public void readVocabulary(IlrVocabulary vocabulary,
                          java.io.Reader reader,
                          java.lang.Object context)
                            throws java.io.IOException,
                                   IlrSerializerError
        Reads the vocabulary from the provided reader. The context parameter should be the IlrObjectModel used to resolve types.
        Throws:
        java.io.IOException
        IlrSerializerError
        Parameters:
        vocabulary - The vocabulary to fill.
        reader - The reader.
        context - The IlrObjectModel used to resolve types.

© Copyright IBM Corp. 1987, 2017