public enum JsonEncodingMode extends Enum<JsonEncodingMode>
| Enum Constant and Description |
|---|
COMPACT
Defined in OPC UA 1.05.04, omits default values of Structure fields etc.
|
LEGACY_NON_REVERSIBLE
Legacy format that was used before 1.05.04.
|
LEGACY_REVERSIBLE
Legacy format that was used before 1.05.04.
|
VERBOSE
Defined in OPC UA 1.05.04, doesn't omit optional fields nor default values and in some cases
adds additional description fields to the output.
|
| Modifier and Type | Method and Description |
|---|---|
static JsonEncodingMode |
from(JsonDataSetMessageContentMask contentMask)
Returns mode based on the FieldEncoding1 and FieldEncoding2 bits as described in
https://reference.opcfoundation.org/Core/Part14/v105/docs/6.3.2.3.1.
|
boolean |
isLegacy() |
static JsonEncodingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsonEncodingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonEncodingMode LEGACY_REVERSIBLE
public static final JsonEncodingMode LEGACY_NON_REVERSIBLE
public static final JsonEncodingMode COMPACT
public static final JsonEncodingMode VERBOSE
public static JsonEncodingMode[] values()
for (JsonEncodingMode c : JsonEncodingMode.values()) System.out.println(c);
public static JsonEncodingMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static JsonEncodingMode from(JsonDataSetMessageContentMask contentMask)
public boolean isLegacy()
Copyright © 2026. All rights reserved.