Class BaseRepresenter

  • Direct Known Subclasses:
    Representer

    public abstract class BaseRepresenter
    extends java.lang.Object
    Represent basic YAML structures: scalar, sequence, mapping
    • 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
      • 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<?> sequence,
                                         java.lang.Boolean flowStyle)
      • representMapping

        protected Node representMapping​(Tag tag,
                                        java.util.Map<?,​?> mapping,
                                        java.lang.Boolean flowStyle)
      • setPropertyUtils

        public void setPropertyUtils​(PropertyUtils propertyUtils)
      • getPropertyUtils

        public final PropertyUtils getPropertyUtils()
      • isExplicitPropertyUtils

        public final boolean isExplicitPropertyUtils()