java.lang.Object
dev.metaschema.core.configuration.AbstractConfigurationFeature<V>
dev.metaschema.databind.io.DeserializationFeature<V>
- Type Parameters:
V- the value type of the configuration feature
- All Implemented Interfaces:
dev.metaschema.core.configuration.IConfigurationFeature<V>
public final class DeserializationFeature<V>
extends dev.metaschema.core.configuration.AbstractConfigurationFeature<V>
Configuration features that control the deserialization behavior of
Metaschema-bound object readers.
Each feature has a default value that can be overridden when configuring a deserializer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DeserializationFeature<Boolean>If enabled, process the next JSON node as a field, whose name must match theIAssemblyDefinition.getRootJsonName().static final DeserializationFeature<Boolean>If enabled, perform constraint validation on the deserialized bound objects.static final DeserializationFeature<Boolean>If enabled, validate that required fields are present during deserialization.static final DeserializationFeature<Boolean>If enabled, allow inline XML entities to be automatically replaced.static final intThe default number of bytes used for format detection lookahead.static final DeserializationFeature<Integer>Determines how many bytes can be looked at to identify the format of a document.static final DeserializationFeature<Integer>Determines the max YAML codepoints that can be read.static final intThe default maximum number of codepoints that can be read from a YAML document. -
Method Summary
Methods inherited from class dev.metaschema.core.configuration.AbstractConfigurationFeature
getDefault, getName, getValueClass, toString
-
Field Details
-
YAML_CODEPOINT_LIMIT_DEFAULT
The default maximum number of codepoints that can be read from a YAML document.- See Also:
-
FORMAT_DETECTION_LOOKAHEAD
The default number of bytes used for format detection lookahead.- See Also:
-
DESERIALIZE_VALIDATE_CONSTRAINTS
If enabled, perform constraint validation on the deserialized bound objects. -
DESERIALIZE_XML_ALLOW_ENTITY_RESOLUTION
@NonNull public static final DeserializationFeature<Boolean> DESERIALIZE_XML_ALLOW_ENTITY_RESOLUTIONIf enabled, allow inline XML entities to be automatically replaced. -
DESERIALIZE_JSON_ROOT_PROPERTY
If enabled, process the next JSON node as a field, whose name must match theIAssemblyDefinition.getRootJsonName(). If not enabled, the next JSON node is expected to be an object containing the data of theIAssemblyDefinition. -
YAML_CODEPOINT_LIMIT
Determines the max YAML codepoints that can be read. -
FORMAT_DETECTION_LOOKAHEAD_LIMIT
Determines how many bytes can be looked at to identify the format of a document. -
DESERIALIZE_VALIDATE_REQUIRED_FIELDS
If enabled, validate that required fields are present during deserialization. When a required field is missing and has no default value, an error will be thrown with a descriptive message.Choice groups are handled correctly: if an instance belongs to a choice and at least one sibling in that choice was provided, the instance is not considered missing.
When using schema validation via CLI commands, this feature is automatically disabled since the schema already validates required fields.
-