public abstract class JsonParserBase
extends java.lang.Object
JsonParser
that contains
various utilities, to reduce the size of a parser.Constructor and Description |
---|
JsonParserBase() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
convertType(java.lang.Object value,
java.lang.Class targetType)
Converts type of the given value.
|
protected MapToBean |
createMapToBean(java.lang.String classMetadataName)
Creates new instance of
MapToBean . |
protected void |
injectValueIntoObject(java.lang.Object target,
jodd.introspector.PropertyDescriptor pd,
java.lang.Object value)
Injects value into the targets property.
|
protected java.util.Collection<java.lang.Object> |
newArrayInstance(java.lang.Class targetType)
Creates new type for JSON array objects.
|
protected java.lang.Object |
newObjectInstance(java.lang.Class targetType)
Creates new object or a
HashMap if type is not specified. |
protected MapToBean createMapToBean(java.lang.String classMetadataName)
MapToBean
.protected java.util.Collection<java.lang.Object> newArrayInstance(java.lang.Class targetType)
protected java.lang.Object newObjectInstance(java.lang.Class targetType)
HashMap
if type is not specified.protected void injectValueIntoObject(java.lang.Object target, jodd.introspector.PropertyDescriptor pd, java.lang.Object value)
protected java.lang.Object convertType(java.lang.Object value, java.lang.Class targetType)
Copyright © 2003-2013 Jodd Team