public enum DataFormat extends java.lang.Enum<DataFormat>
for example:
InputStream eventStream = getClass().getResourceAsStream("/test/resources/bagscan_event.xml");
Event event = gateway.getEventFactory().parseEvent(DataFormat.TYPED_XML, eventStream, null);
| Enum Constant and Description |
|---|
GENERIC_XML
Used to represent entities and events in the generic XML schema that used by the REST API.
|
JSON
Used to represent entities and events in JSON format.
|
TYPED_XML
Used to represent events according to the XML schema defined by the solution model.
|
| 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.
|
public static final DataFormat TYPED_XML
public static final DataFormat GENERIC_XML
public static final DataFormat JSON
public static DataFormat[] values()
public static DataFormat valueOf(java.lang.String name)
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullname - the name of the enum constant to be returned.© Copyright IBM 2017