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 classclassCreate Node for Object[]classCreate Node for BooleanclassCreate Node for byte[]classCreate eNode for EnumsclassCreate Node for IteratorclassCreate Node for ListclassCreate Node for Map instanceprotected classCreate null NodeclassCreate Node for Byte, Short, Integer, Long, BigIntegerclassCreate Node for Optional instance (the value of null)classRepresents primitive arrays, such as short[] and float[], by converting them into equivalentListusing the appropriate autoboxing type.classCreate Node for Set instancesclassCreate Node for StringclassCreate Node for UUID -
Field Summary
FieldsModifier and TypeFieldDescriptionConnect classes to their tagsstatic final Patternall chars that represent a new lineprotected DumpSettingskeep the optionsFields inherited from class BaseRepresenter
defaultFlowStyle, defaultScalarStyle, nullRepresenter, objectToRepresent, parentClassRepresenters, representedObjects, representers -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class BaseRepresenter
findRepresenterFor, represent, representData, representMapping, representMappingEntry, representScalar, representScalar, representSequence
-
Field Details
-
MULTILINE_PATTERN
all chars that represent a new line -
classTags
-
settings
keep the options
-
-
Constructor Details
-
StandardRepresenter
Create- Parameters:
settings- - configuration options
-
-
Method Details
-
getTag
-
addClassTag
Deprecated.should be replaced with the Beans projectDefine a tag for theClassto serialize. Should be replaced later with the beans project.- Parameters:
clazz-Classwhich tag is changedtag- new tag to be used for every instance of the specifiedClass- Returns:
- the previous tag associated with the
Class
-