public abstract class BaseRepresenter extends Object
Modifier and Type | Field and Description |
---|---|
protected DumperOptions.FlowStyle |
defaultFlowStyle |
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() |
PropertyUtils |
getPropertyUtils() |
boolean |
isExplicitPropertyUtils() |
Node |
represent(Object data) |
protected Node |
representData(Object data) |
protected Node |
representMapping(Tag tag,
Map<? extends Object,Object> mapping,
Boolean flowStyle) |
protected Node |
representScalar(Tag tag,
String value) |
protected Node |
representScalar(Tag tag,
String value,
Character style) |
protected Node |
representSequence(Tag tag,
Iterable<? extends Object> sequence,
Boolean flowStyle) |
void |
setDefaultFlowStyle(DumperOptions.FlowStyle defaultFlowStyle) |
void |
setDefaultScalarStyle(DumperOptions.ScalarStyle defaultStyle) |
void |
setPropertyUtils(PropertyUtils propertyUtils) |
protected Represent nullRepresenter
protected DumperOptions.FlowStyle defaultFlowStyle
protected Object objectToRepresent
protected Node representSequence(Tag tag, Iterable<? extends Object> sequence, Boolean flowStyle)
protected Node representMapping(Tag tag, Map<? extends Object,Object> mapping, 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-2012. All Rights Reserved.