Package org.yaml.snakeyaml.representer
Class SafeRepresenter
java.lang.Object
org.yaml.snakeyaml.representer.BaseRepresenter
org.yaml.snakeyaml.representer.SafeRepresenter
- Direct Known Subclasses:
Representer
Represent standard Java classes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
protected class
protected class
protected class
protected class
protected class
protected class
protected class
protected class
protected class
protected class
protected class
Represents primitive arrays, such as short[] and float[], by converting them into equivalent Listand List using the appropriate autoboxing type. protected class
protected class
protected class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Pattern
protected DumperOptions.NonPrintableStyle
protected TimeZone
Fields inherited from class org.yaml.snakeyaml.representer.BaseRepresenter
defaultFlowStyle, defaultScalarStyle, multiRepresenters, nullRepresenter, objectToRepresent, representedObjects, representers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddClassTag
(Class<? extends Object> clazz, Tag tag) Define a tag for theClass
to serialize.protected Tag
void
setTimeZone
(TimeZone timeZone) Methods inherited from class org.yaml.snakeyaml.representer.BaseRepresenter
getDefaultFlowStyle, getDefaultScalarStyle, getPropertyUtils, isExplicitPropertyUtils, represent, representData, representMapping, representScalar, representScalar, representSequence, setDefaultFlowStyle, setDefaultScalarStyle, setPropertyUtils
-
Field Details
-
classTags
-
timeZone
-
nonPrintableStyle
-
MULTILINE_PATTERN
-
-
Constructor Details
-
SafeRepresenter
Deprecated.use options insteadCreate -
SafeRepresenter
-
-
Method Details
-
getTag
-
addClassTag
Define a tag for theClass
to serialize.- 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
-
getTimeZone
-
setTimeZone
-