Package org.yaml.snakeyaml.representer
Class BaseRepresenter
java.lang.Object
org.yaml.snakeyaml.representer.BaseRepresenter
- Direct Known Subclasses:
Representer
Represent basic YAML structures: scalar, sequence, mapping
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DumperOptions.FlowStyleprotected DumperOptions.ScalarStyleprotected Representin Java 'null' is not a type.protected Object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal PropertyUtilsfinal booleanprotected final NoderepresentData(Object data) protected NoderepresentMapping(Tag tag, Map<?, ?> mapping, DumperOptions.FlowStyle flowStyle) protected NoderepresentScalar(Tag tag, String value) protected NoderepresentScalar(Tag tag, String value, DumperOptions.ScalarStyle style) protected NoderepresentSequence(Tag tag, Iterable<?> sequence, DumperOptions.FlowStyle flowStyle) voidsetDefaultFlowStyle(DumperOptions.FlowStyle defaultFlowStyle) voidsetDefaultScalarStyle(DumperOptions.ScalarStyle defaultStyle) voidsetPropertyUtils(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
-
-
Constructor Details
-
BaseRepresenter
public BaseRepresenter()
-
-
Method Details
-
represent
-
representData
-
representScalar
-
representScalar
-
representSequence
-
representMapping
-
setDefaultScalarStyle
-
getDefaultScalarStyle
-
setDefaultFlowStyle
-
getDefaultFlowStyle
-
setPropertyUtils
-
getPropertyUtils
-
isExplicitPropertyUtils
public final boolean isExplicitPropertyUtils()
-