public class ExtendedRepresenter
extends org.snakeyaml.engine.v2.representer.StandardRepresenter
Section objects, serializing custom
objects, all of which while keeping comments and without any additional time consumption.org.snakeyaml.engine.v2.representer.StandardRepresenter.RepresentArray, org.snakeyaml.engine.v2.representer.StandardRepresenter.RepresentBoolean, org.snakeyaml.engine.v2.representer.StandardRepresenter.RepresentByteArray, org.snakeyaml.engine.v2.representer.StandardRepresenter.RepresentEnum, org.snakeyaml.engine.v2.representer.StandardRepresenter.RepresentIterator, org.snakeyaml.engine.v2.representer.StandardRepresenter.RepresentList, org.snakeyaml.engine.v2.representer.StandardRepresenter.RepresentMap, org.snakeyaml.engine.v2.representer.StandardRepresenter.RepresentNull, org.snakeyaml.engine.v2.representer.StandardRepresenter.RepresentNumber, org.snakeyaml.engine.v2.representer.StandardRepresenter.RepresentOptional, org.snakeyaml.engine.v2.representer.StandardRepresenter.RepresentPrimitiveArray, org.snakeyaml.engine.v2.representer.StandardRepresenter.RepresentSet, org.snakeyaml.engine.v2.representer.StandardRepresenter.RepresentString, org.snakeyaml.engine.v2.representer.StandardRepresenter.RepresentUuid| Constructor and Description |
|---|
ExtendedRepresenter(GeneralSettings generalSettings,
org.snakeyaml.engine.v2.api.DumpSettings dumpSettings)
Creates an instance of the representer.
|
| Modifier and Type | Method and Description |
|---|---|
org.snakeyaml.engine.v2.nodes.Node |
applyKeyComments(Block<?> block,
org.snakeyaml.engine.v2.nodes.Node node)
Applies the given block's (if not
null) key comments to the given node and returns the given node
itself. |
org.snakeyaml.engine.v2.nodes.Node |
applyValueComments(Block<?> block,
org.snakeyaml.engine.v2.nodes.Node node)
Applies the given block's (if not
null) value comments to the given node and returns the given node
itself. |
protected org.snakeyaml.engine.v2.nodes.NodeTuple |
representMappingEntry(Map.Entry<?,?> entry) |
addClassTag, getTagpublic ExtendedRepresenter(@NotNull
GeneralSettings generalSettings,
@NotNull
org.snakeyaml.engine.v2.api.DumpSettings dumpSettings)
generalSettings - general settings of the root's file, whose contents are going to be representeddumpSettings - dumper settings@NotNull
public org.snakeyaml.engine.v2.nodes.Node applyKeyComments(@Nullable
Block<?> block,
@NotNull
org.snakeyaml.engine.v2.nodes.Node node)
null) key comments to the given node and returns the given node
itself.block - the block whose key comments to applynode - node to apply the comments to@NotNull
public org.snakeyaml.engine.v2.nodes.Node applyValueComments(@Nullable
Block<?> block,
@NotNull
org.snakeyaml.engine.v2.nodes.Node node)
null) value comments to the given node and returns the given node
itself.block - the block whose value comments to applynode - node to apply the comments toprotected org.snakeyaml.engine.v2.nodes.NodeTuple representMappingEntry(Map.Entry<?,?> entry)
representMappingEntry in class org.snakeyaml.engine.v2.representer.BaseRepresenterCopyright © 2022. All rights reserved.