Class StandardRepresenter
java.lang.Object
org.snakeyaml.engine.v2.representer.BaseRepresenter
org.snakeyaml.engine.v2.representer.StandardRepresenter
Represent standard Java classes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
class
Create Node for Object[]class
Create Node for Booleanclass
Create Node for byte[]class
Create eNode for Enumsclass
Create Node for Iteratorclass
Create Node for Listclass
Create Node for Map instanceprotected class
Create null Nodeclass
Create Node for Byte, Short, Integer, Long, BigIntegerclass
Create Node for Optional instance (the value of null)class
Represents primitive arrays, such as short[] and float[], by converting them into equivalentList
using the appropriate autoboxing type.class
Create Node for Set instancesclass
Create Node for Stringclass
Create Node for UUID -
Field Summary
FieldsModifier and TypeFieldDescriptionConnect classes to their tagsstatic final Pattern
all chars that represent a new lineprotected DumpSettings
keep the optionsFields inherited from class org.snakeyaml.engine.v2.representer.BaseRepresenter
defaultFlowStyle, defaultScalarStyle, nullRepresenter, objectToRepresent, parentClassRepresenters, representedObjects, representers
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.snakeyaml.engine.v2.representer.BaseRepresenter
findRepresenterFor, represent, representData, representMapping, representMappingEntry, representScalar, representScalar, representSequence
-
Field Details
-
MULTILINE_PATTERN
all chars that represent a new line -
classTags
Connect classes to their tags -
settings
keep the options
-
-
Constructor Details
-
StandardRepresenter
Create- Parameters:
settings
- - configuration options
-
-
Method Details
-
getTag
Define the way to get the Tag for any class- Parameters:
clazz
- - the class to serialisedefaultTag
- - the tag to use if there is no explicit configuration- Returns:
- the Tag for output
-
addClassTag
Deprecated.should be replaced with the Beans projectDefine a tag for theClass
to serialize. Should be replaced later with the beans project.- Parameters:
clazz
-Class
which tag is changedtag
- new tag to be used for every instance of the specifiedClass
- Returns:
- the previous tag associated with the
Class
-