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 XMLfor 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 schemaTYPED_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.
-
-
-
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 namejava.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
-
-