public abstract class BaseRepresenter extends Object
Modifier and Type | Field and Description |
---|---|
protected DumperOptions.FlowStyle |
defaultFlowStyle |
protected DumperOptions.ScalarStyle |
defaultScalarStyle |
protected Map<Class<?>,Represent> |
multiRepresenters |
protected Represent |
nullRepresenter
in Java 'null' is not a type.
|
protected Object |
objectToRepresent |
protected Map<Object,Node> |
representedObjects |
protected Map<Class<?>,Represent> |
representers |
Constructor and Description |
---|
BaseRepresenter() |
Modifier and Type | Method and Description |
---|---|
DumperOptions.FlowStyle |
getDefaultFlowStyle() |
DumperOptions.ScalarStyle |
getDefaultScalarStyle() |
PropertyUtils |
getPropertyUtils() |
boolean |
isExplicitPropertyUtils() |
Node |
represent(Object data) |
protected Node |
representData(Object data) |
protected Node |
representMapping(Tag tag,
Map<?,?> mapping,
DumperOptions.FlowStyle flowStyle) |
protected Node |
representScalar(Tag tag,
String value) |
protected Node |
representScalar(Tag tag,
String value,
DumperOptions.ScalarStyle style) |
protected Node |
representSequence(Tag tag,
Iterable<?> sequence,
DumperOptions.FlowStyle flowStyle) |
void |
setDefaultFlowStyle(DumperOptions.FlowStyle defaultFlowStyle) |
void |
setDefaultScalarStyle(DumperOptions.ScalarStyle defaultStyle) |
void |
setPropertyUtils(PropertyUtils propertyUtils) |
protected Represent nullRepresenter
protected DumperOptions.ScalarStyle defaultScalarStyle
protected DumperOptions.FlowStyle defaultFlowStyle
protected Object objectToRepresent
protected Node representScalar(Tag tag, String value, DumperOptions.ScalarStyle style)
protected Node representSequence(Tag tag, Iterable<?> sequence, DumperOptions.FlowStyle flowStyle)
protected Node representMapping(Tag tag, Map<?,?> mapping, DumperOptions.FlowStyle flowStyle)
public void setDefaultScalarStyle(DumperOptions.ScalarStyle defaultStyle)
public DumperOptions.ScalarStyle getDefaultScalarStyle()
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–2019. All rights reserved.