public class StandardRepresenter extends BaseRepresenter
| Modifier and Type | Class and Description |
|---|---|
protected class |
StandardRepresenter.RepresentArray
Create Node for Object[]
|
protected class |
StandardRepresenter.RepresentBoolean
Create Node for Boolean
|
protected class |
StandardRepresenter.RepresentByteArray
Create Node for byte[]
|
protected class |
StandardRepresenter.RepresentEnum
Create eNode for Enums
|
protected class |
StandardRepresenter.RepresentIterator
Create Node for Iterator
|
protected class |
StandardRepresenter.RepresentList
Create Node for List
|
protected class |
StandardRepresenter.RepresentMap
Create Node for Map instance
|
protected class |
StandardRepresenter.RepresentNull
Create null Node
|
protected class |
StandardRepresenter.RepresentNumber
Create Node for Byte, Short, Integer, Long, BigInteger
|
protected class |
StandardRepresenter.RepresentOptional
Create Node for Optional instance (the value of null)
|
protected class |
StandardRepresenter.RepresentPrimitiveArray
Represents primitive arrays, such as short[] and float[], by converting them into equivalent
List using the appropriate autoboxing type. |
protected class |
StandardRepresenter.RepresentSet
Create Node for Set instances
|
protected class |
StandardRepresenter.RepresentString
Create Node for String
|
protected class |
StandardRepresenter.RepresentUuid
Create Node for UUID
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class<? extends Object>,org.snakeyaml.engine.v2.nodes.Tag> |
classTags
Connect classes to their tags
|
static Pattern |
MULTILINE_PATTERN
all chars that represent a new line
|
protected DumpSettings |
settings
keep the options
|
defaultFlowStyle, defaultScalarStyle, nullRepresenter, objectToRepresent, parentClassRepresenters, representedObjects, representers| Constructor and Description |
|---|
StandardRepresenter(DumpSettings settings)
Create
|
| Modifier and Type | Method and Description |
|---|---|
org.snakeyaml.engine.v2.nodes.Tag |
addClassTag(Class<? extends Object> clazz,
org.snakeyaml.engine.v2.nodes.Tag tag)
Define a tag for the
Class to serialize. |
protected org.snakeyaml.engine.v2.nodes.Tag |
getTag(Class<?> clazz,
org.snakeyaml.engine.v2.nodes.Tag defaultTag)
Define the way to get the Tag for any class
|
findRepresenterFor, represent, representData, representMapping, representMappingEntry, representScalar, representScalar, representSequenceprotected Map<Class<? extends Object>,org.snakeyaml.engine.v2.nodes.Tag> classTags
protected DumpSettings settings
public static final Pattern MULTILINE_PATTERN
public StandardRepresenter(DumpSettings settings)
settings - - configuration optionsprotected org.snakeyaml.engine.v2.nodes.Tag getTag(Class<?> clazz, org.snakeyaml.engine.v2.nodes.Tag defaultTag)
clazz - - the class to serialisedefaultTag - - the tag to use if there is no explicit configurationpublic org.snakeyaml.engine.v2.nodes.Tag addClassTag(Class<? extends Object> clazz, org.snakeyaml.engine.v2.nodes.Tag tag)
Class to serialize. TODO should it be removed ?clazz - Class which tag is changedtag - new tag to be used for every instance of the specified ClassClassCopyright © 2018–2022. All rights reserved.