class SafeRepresenter extends BaseRepresenter
Modifier and Type | Class and Description |
---|---|
private static class |
SafeRepresenter.IteratorWrapper |
protected class |
SafeRepresenter.RepresentArray |
protected class |
SafeRepresenter.RepresentBoolean |
protected class |
SafeRepresenter.RepresentByteArray |
protected class |
SafeRepresenter.RepresentDate |
protected class |
SafeRepresenter.RepresentEnum |
protected class |
SafeRepresenter.RepresentIterator |
protected class |
SafeRepresenter.RepresentList |
protected class |
SafeRepresenter.RepresentMap |
protected class |
SafeRepresenter.RepresentNull |
protected class |
SafeRepresenter.RepresentNumber |
protected class |
SafeRepresenter.RepresentPrimitiveArray
Represents primitive arrays, such as short[] and float[], by converting them into equivalent
List
|
protected class |
SafeRepresenter.RepresentSet |
protected class |
SafeRepresenter.RepresentString |
protected class |
SafeRepresenter.RepresentUuid |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Class<? extends java.lang.Object>,Tag> |
classTags |
private static java.util.regex.Pattern |
MULTILINE_PATTERN |
protected DumperOptions.NonPrintableStyle |
nonPrintableStyle |
protected java.util.TimeZone |
timeZone |
defaultFlowStyle, defaultScalarStyle, multiRepresenters, nullRepresenter, objectToRepresent, representedObjects, representers
Constructor and Description |
---|
SafeRepresenter() |
SafeRepresenter(DumperOptions options) |
Modifier and Type | Method and Description |
---|---|
Tag |
addClassTag(java.lang.Class<? extends java.lang.Object> clazz,
Tag tag)
Define a tag for the
Class to serialize. |
protected Tag |
getTag(java.lang.Class<?> clazz,
Tag defaultTag) |
java.util.TimeZone |
getTimeZone() |
void |
setTimeZone(java.util.TimeZone timeZone) |
getDefaultFlowStyle, getDefaultScalarStyle, getPropertyUtils, isExplicitPropertyUtils, represent, representData, representMapping, representScalar, representScalar, representSequence, setDefaultFlowStyle, setDefaultScalarStyle, setPropertyUtils
protected java.util.Map<java.lang.Class<? extends java.lang.Object>,Tag> classTags
protected java.util.TimeZone timeZone
protected DumperOptions.NonPrintableStyle nonPrintableStyle
private static final java.util.regex.Pattern MULTILINE_PATTERN
public SafeRepresenter()
public SafeRepresenter(DumperOptions options)
public Tag addClassTag(java.lang.Class<? extends java.lang.Object> clazz, Tag tag)
Class
to serialize.clazz
- Class
which tag is changedtag
- new tag to be used for every instance of the specified Class
Class
public java.util.TimeZone getTimeZone()
public void setTimeZone(java.util.TimeZone timeZone)