Class SerializationFeature<V>

java.lang.Object
dev.metaschema.core.configuration.AbstractConfigurationFeature<V>
dev.metaschema.databind.io.SerializationFeature<V>
Type Parameters:
V - the value type of the configuration feature
All Implemented Interfaces:
IConfigurationFeature<V>

public final class SerializationFeature<V> extends AbstractConfigurationFeature<V>
Configuration features that control the serialization behavior of Metaschema-bound object writers.

Each feature has a default value that can be overridden when configuring a serializer.

  • Field Details

    • SERIALIZE_ROOT

      @NonNull public static final SerializationFeature<Boolean> SERIALIZE_ROOT
      If enabled, generate document level constructs in the underlying data format. In XML this would include XML declarations. In JSON or YAML, this would include an outer object and field with the name associated with the root node.