public abstract class BaseRepresenter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
BaseRepresenter() |
Modifier and Type | Method and Description |
---|---|
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) |
protected final java.util.Map<java.lang.Class<?>,Represent> representers
protected Represent nullRepresenter
protected final java.util.Map<java.lang.Class<?>,Represent> multiRepresenters
protected java.lang.Character defaultScalarStyle
protected DumperOptions.FlowStyle defaultFlowStyle
protected final java.util.Map<java.lang.Object,Node> representedObjects
protected java.lang.Object objectToRepresent
public Node represent(java.lang.Object data)
protected final Node representData(java.lang.Object data)
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)
protected Node representMapping(Tag tag, java.util.Map<? extends java.lang.Object,java.lang.Object> mapping, java.lang.Boolean flowStyle)
public void setDefaultScalarStyle(DumperOptions.ScalarStyle defaultStyle)
public void setDefaultFlowStyle(DumperOptions.FlowStyle defaultFlowStyle)
public DumperOptions.FlowStyle getDefaultFlowStyle()
public void setPropertyUtils(PropertyUtils propertyUtils)
public final PropertyUtils getPropertyUtils()
public final boolean isExplicitPropertyUtils()
Copyright © 2008-2013. All Rights Reserved.