Class CustomRepresenter
java.lang.Object
org.yaml.snakeyaml.representer.BaseRepresenter
org.yaml.snakeyaml.representer.Representer
be.dezijwegel.betteryaml.representer.CustomRepresenter
public class CustomRepresenter
extends org.yaml.snakeyaml.representer.Representer
-
Nested Class Summary
Nested classes/interfaces inherited from class org.yaml.snakeyaml.representer.Representer
org.yaml.snakeyaml.representer.Representer.RepresentJavaBean -
Field Summary
Fields Modifier and Type Field Description protected Map<Class<? extends Object>,org.yaml.snakeyaml.nodes.Tag>classTagsprotected org.yaml.snakeyaml.DumperOptions.NonPrintableStylenonPrintableStyleprotected TimeZonetimeZoneFields inherited from class org.yaml.snakeyaml.representer.Representer
typeDefinitionsFields inherited from class org.yaml.snakeyaml.representer.BaseRepresenter
defaultFlowStyle, defaultScalarStyle, multiRepresenters, nullRepresenter, objectToRepresent, representedObjects, representers -
Constructor Summary
Constructors Constructor Description CustomRepresenter()Inspired by: https://stackoverflow.com/questions/60501519/missing-double-quotes-for-the-required-field-using-snake-yaml -
Method Summary
Modifier and Type Method Description org.yaml.snakeyaml.nodes.TagaddClassTag(Class<? extends Object> arg0, org.yaml.snakeyaml.nodes.Tag arg1)protected org.yaml.snakeyaml.nodes.TaggetTag(Class<?> arg0, org.yaml.snakeyaml.nodes.Tag arg1)TimeZonegetTimeZone()voidsetTimeZone(TimeZone arg0)Methods inherited from class org.yaml.snakeyaml.representer.Representer
addTypeDescription, checkGlobalTag, getProperties, representJavaBean, representJavaBeanProperty, setPropertyUtilsMethods inherited from class org.yaml.snakeyaml.representer.BaseRepresenter
getDefaultFlowStyle, getDefaultScalarStyle, getPropertyUtils, isExplicitPropertyUtils, represent, representData, representMapping, representScalar, representScalar, representSequence, setDefaultFlowStyle, setDefaultScalarStyle
-
Field Details
-
classTags
-
timeZone
-
nonPrintableStyle
protected org.yaml.snakeyaml.DumperOptions.NonPrintableStyle nonPrintableStyle
-
-
Constructor Details
-
CustomRepresenter
public CustomRepresenter()Inspired by: https://stackoverflow.com/questions/60501519/missing-double-quotes-for-the-required-field-using-snake-yaml
-
-
Method Details
-
getTag
-
addClassTag
-
getTimeZone
-
setTimeZone
-