org.yaml.snakeyaml.representer

## Class BaseRepresenter

- java.lang.Object
- - org.yaml.snakeyaml.representer.BaseRepresenter

Direct Known Subclasses:
  Representer

    public abstract class BaseRepresenter
    extends java.lang.Object

Represent basic YAML structures: scalar, sequence, mapping

### Field Summary

Fields
`protected DumperOptions.FlowStyle` `defaultFlowStyle`
`protected java.lang.Character` `defaultScalarStyle`
`protected java.util.Map<java.lang.Class<?>,Represent>` `multiRepresenters`
`protected Represent` `nullRepresenter` in Java 'null' is not a type.
`protected java.lang.Object` `objectToRepresent`
`protected java.util.Map<java.lang.Object,Node>` `representedObjects`
`protected java.util.Map<java.lang.Class<?>,Represent>` `representers`

### Constructor Summary

Constructors
Constructor and Description
`BaseRepresenter()`

### Method Summary

Methods
`DumperOptions.FlowStyle` `getDefaultFlowStyle()`
`PropertyUtils` `getPropertyUtils()`
`boolean` `isExplicitPropertyUtils()`
`Node` `represent(java.lang.Object data)`
`protected Node` `representData(java.lang.Object data)`
`protected Node` `representMapping(Tag tag, java.util.Map<? extends java.lang.Object,java.lang.Object> mapping, java.lang.Boolean flowStyle)`
`protected Node` `representScalar(Tag tag, java.lang.String value)`
`protected Node` `representScalar(Tag tag, java.lang.String value, java.lang.Character style)`
`protected Node` `representSequence(Tag tag, java.lang.Iterable<? extends java.lang.Object> sequence, java.lang.Boolean flowStyle)`
`void` `setDefaultFlowStyle(DumperOptions.FlowStyle defaultFlowStyle)`
`void` `setDefaultScalarStyle(DumperOptions.ScalarStyle defaultStyle)`
`void` `setPropertyUtils(PropertyUtils propertyUtils)`

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

### Field Detail

#### representers

    protected final java.util.Map<java.lang.Class<?>,Represent> representers

#### nullRepresenter

    protected Represent 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

    protected final java.util.Map<java.lang.Class<?>,Represent> multiRepresenters

#### defaultScalarStyle

    protected java.lang.Character defaultScalarStyle

#### defaultFlowStyle

    protected DumperOptions.FlowStyle defaultFlowStyle

#### representedObjects

    protected final java.util.Map<java.lang.Object,Node> representedObjects

#### objectToRepresent

    protected java.lang.Object objectToRepresent

### Constructor Detail

#### BaseRepresenter

    public BaseRepresenter()

### Method Detail

#### represent

    public Node represent(java.lang.Object data)

#### representData

    protected final Node representData(java.lang.Object data)

#### representScalar

    protected Node representScalar(Tag tag,
                       java.lang.String value,
                       java.lang.Character style)

#### representScalar

    protected Node representScalar(Tag tag,
                       java.lang.String value)

#### representSequence

    protected Node representSequence(Tag tag,
                         java.lang.Iterable<? extends java.lang.Object> sequence,
                         java.lang.Boolean flowStyle)

#### representMapping

    protected Node representMapping(Tag tag,
                        java.util.Map<? extends java.lang.Object,java.lang.Object> mapping,
                        java.lang.Boolean flowStyle)

#### setDefaultScalarStyle

    public void setDefaultScalarStyle(DumperOptions.ScalarStyle defaultStyle)

#### setDefaultFlowStyle

    public void setDefaultFlowStyle(DumperOptions.FlowStyle defaultFlowStyle)

#### getDefaultFlowStyle

    public DumperOptions.FlowStyle getDefaultFlowStyle()

#### setPropertyUtils

    public void setPropertyUtils(PropertyUtils propertyUtils)

#### getPropertyUtils

    public final PropertyUtils getPropertyUtils()

#### isExplicitPropertyUtils

    public final boolean isExplicitPropertyUtils()