Class BaseRepresenter

java.lang.Object
org.yaml.snakeyaml.representer.BaseRepresenter
Direct Known Subclasses:
Representer

public abstract class BaseRepresenter extends Object
Represent basic YAML structures: scalar, sequence, mapping
  • Field Details

    • representers

      protected final Map<Class<?>,Represent> representers
      represent the class without its subclasses
    • 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 Map<Class<?>,Represent> multiRepresenters
      represent class and its children with common code
    • defaultScalarStyle

      protected DumperOptions.ScalarStyle defaultScalarStyle
      default scalar style is PLAIN
    • defaultFlowStyle

      protected DumperOptions.FlowStyle defaultFlowStyle
      flow style to use if not redefined.
    • representedObjects

      protected final Map<Object,Node> representedObjects
      Keep references of already represented instances
    • objectToRepresent

      protected Object objectToRepresent
      object to create the Node for
  • Constructor Details

    • BaseRepresenter

      public BaseRepresenter()
  • Method Details