Package org.yaml.snakeyaml.representer
Class BaseRepresenter
java.lang.Object
org.yaml.snakeyaml.representer.BaseRepresenter
- Direct Known Subclasses:
SafeRepresenter
Represent basic YAML structures: scalar, sequence, mapping
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DumperOptions.FlowStyle
protected DumperOptions.ScalarStyle
private boolean
protected Represent
in Java 'null' is not a type.protected Object
private PropertyUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal PropertyUtils
final boolean
protected final Node
representData
(Object data) protected Node
representMapping
(Tag tag, Map<?, ?> mapping, DumperOptions.FlowStyle flowStyle) protected Node
representScalar
(Tag tag, String value) protected Node
representScalar
(Tag tag, String value, DumperOptions.ScalarStyle style) protected Node
representSequence
(Tag tag, Iterable<?> sequence, DumperOptions.FlowStyle flowStyle) void
setDefaultFlowStyle
(DumperOptions.FlowStyle defaultFlowStyle) void
setDefaultScalarStyle
(DumperOptions.ScalarStyle defaultStyle) void
setPropertyUtils
(PropertyUtils propertyUtils)
-
Field Details
-
representers
-
nullRepresenter
in Java 'null' is not a type. So we have to keep the null representer separately otherwise it will coincide with the default representer which is stored with the key null. -
multiRepresenters
-
defaultScalarStyle
-
defaultFlowStyle
-
representedObjects
-
objectToRepresent
-
propertyUtils
-
explicitPropertyUtils
private boolean explicitPropertyUtils
-
-
Constructor Details
-
BaseRepresenter
public BaseRepresenter()
-
-
Method Details
-
represent
-
representData
-
representScalar
-
representScalar
-
representSequence
-
representMapping
-
setDefaultScalarStyle
-
getDefaultScalarStyle
-
setDefaultFlowStyle
-
getDefaultFlowStyle
-
setPropertyUtils
-
getPropertyUtils
-
isExplicitPropertyUtils
public final boolean isExplicitPropertyUtils()
-