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 classprotected classprotected classprotected classprotected classprotected classprotected classprotected classprotected classprotected classprotected classprotected classRepresents primitive arrays, such as short[] and float[], by converting them into equivalent Listand List using the appropriate autoboxing type. protected classprotected classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Patternprotected DumperOptions.NonPrintableStyleprotected TimeZoneFields 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 theClassto serialize.protected TagvoidsetTimeZone(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 theClassto serialize.- 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
-
getTimeZone
-
setTimeZone
-