com.ibm.ia.common

Enum DataFormat

  • java.lang.Object
    • java.lang.Enum<DataFormat>
      • com.ibm.ia.common.DataFormat
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<DataFormat>


    public enum DataFormat
    extends java.lang.Enum<DataFormat>
    Data Format used in event and entity serialization to XML / de-serialization from XML

    for example:

     InputStream eventStream = getClass().getResourceAsStream("/test/resources/bagscan_event.xml"); 
     Event event = gateway.getEventFactory().parseEvent(DataFormat.TYPED_XML, eventStream, null);
     
    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      GENERIC_XML
      can be used for both events and entities; uses generic CIS event/entity schema
      TYPED_XML
      used for events only; uses event schema defined in solution XSD
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static DataFormat valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static DataFormat[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • TYPED_XML

        public static final DataFormat TYPED_XML
        used for events only; uses event schema defined in solution XSD
      • GENERIC_XML

        public static final DataFormat GENERIC_XML
        can be used for both events and entities; uses generic CIS event/entity schema
    • Method Detail

      • values

        public static DataFormat[] values()
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DataFormat valueOf(java.lang.String name)
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name

© Copyright IBM 2016