Package | Description |
---|---|
com.cedarsoftware.util.io | |
com.cedarsoftware.util.io.factory |
Modifier and Type | Method and Description |
---|---|
JsonObject |
ReferenceTracker.get(JsonObject jObj) |
JsonObject |
ReferenceTracker.get(Long jObj) |
JsonObject |
ReferenceTracker.put(Long l,
JsonObject o) |
Modifier and Type | Method and Description |
---|---|
protected void |
ObjectResolver.assignField(Deque<JsonObject> stack,
JsonObject jsonObj,
Injector injector,
Object rhs)
Map Json Map object field to Java object field.
|
static void |
MetaUtils.buildHints(JsonReader reader,
JsonObject jObj,
Map<Class<?>,List<MetaUtils.ParameterHint>> hints,
Set<String> fieldsAlreadyInHints) |
protected <T> T |
Resolver.convertMapsToObjects(JsonObject root)
Walk a JsonObject (Map of String keys to values) and return the
Java object equivalent filled in as best as possible (everything
except unresolved reference fields or unresolved array/collection elements).
|
protected static void |
Resolver.convertMapToKeysItems(JsonObject map)
Convert an input JsonObject map (known to represent a Map.class or derivative) that has regular keys and values
to have its keys placed into @keys, and its values placed into @items.
|
protected Object |
Resolver.createInstance(Class clazz,
JsonObject jsonObj)
This method creates a Java Object instance based on the passed in parameters.
|
protected Object |
Resolver.createInstanceUsingClass(Class clazz,
JsonObject jsonObj)
Create an instance using the Class (clazz) provided and the values in the jsonObj.
|
protected Object |
Resolver.createInstanceUsingType(JsonObject jsonObj)
Create an instance of a Java class using the ".type" field on the jsonObj.
|
protected EnumSet<?> |
Resolver.extractEnumSet(Class c,
JsonObject jsonObj) |
JsonObject |
ReferenceTracker.get(JsonObject jObj) |
protected void |
ObjectResolver.handleMissingField(Deque<JsonObject> stack,
JsonObject jsonObj,
Object rhs,
String missingField)
Try to create a java object from the missing field.
|
Object |
JsonReader.jsonObjectsToJava(JsonObject root)
Deprecated.
|
default Object |
JsonReader.ClassFactory.newInstance(Class<?> c,
JsonObject jObj)
Implement this method to return a new instance of the passed in Class.
|
Object |
JsonReader.CollectionFactory.newInstance(Class<?> c,
JsonObject jObj) |
Object |
JsonReader.MapFactory.newInstance(Class<?> c,
JsonObject jObj) |
JsonObject |
ReferenceTracker.put(Long l,
JsonObject o) |
static void |
ObjectResolver.reconcileCollection(JsonObject jsonObj,
Collection col) |
<T> T |
JsonReader.reentrantConvertParsedMapsToJava(JsonObject root,
Class<T> hint)
This method converts a root Map, (which contains nested Maps
and so forth representing a Java Object graph), to a Java
object instance.
|
protected void |
ObjectResolver.traverseArray(Deque<JsonObject> stack,
JsonObject jsonObj)
Traverse the JsonObject associated to an array (of any type).
|
protected abstract void |
Resolver.traverseArray(Deque<JsonObject> stack,
JsonObject jsonObj) |
protected void |
MapResolver.traverseArray(Deque<JsonObject> stack,
JsonObject jsonObj) |
protected void |
ObjectResolver.traverseCollection(Deque<JsonObject> stack,
JsonObject jsonObj)
Process java.util.Collection and it's derivatives.
|
protected abstract void |
Resolver.traverseCollection(Deque<JsonObject> stack,
JsonObject jsonObj) |
protected void |
MapResolver.traverseCollection(Deque<JsonObject> stack,
JsonObject jsonObj)
Process java.util.Collection and it's derivatives.
|
void |
ObjectResolver.traverseFields(Deque<JsonObject> stack,
JsonObject jsonObj)
Walk the Java object fields and copy them from the JSON object to the Java object, performing
any necessary conversions on primitives, or deep traversals for field assignments to other objects,
arrays, Collections, or Maps.
|
abstract void |
Resolver.traverseFields(Deque<JsonObject> stack,
JsonObject jsonObj) |
void |
MapResolver.traverseFields(Deque<JsonObject> stack,
JsonObject jsonObj)
Walk the JsonObject fields and perform necessary substitutions so that all references matched up.
|
void |
ObjectResolver.traverseFields(Deque<JsonObject> stack,
JsonObject jsonObj,
Set<String> excludeFields)
Walk the Java object fields and copy them from the JSON object to the Java object, performing
any necessary conversions on primitives, or deep traversals for field assignments to other objects,
arrays, Collections, or Maps.
|
abstract void |
Resolver.traverseFields(Deque<JsonObject> stack,
JsonObject jsonObj,
Set<String> excludeFields) |
void |
MapResolver.traverseFields(Deque<JsonObject> stack,
JsonObject jsonObj,
Set<String> excludeFields) |
protected void |
Resolver.traverseMap(Deque<JsonObject> stack,
JsonObject jsonObj)
Process java.util.Map and it's derivatives.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ObjectResolver.assignField(Deque<JsonObject> stack,
JsonObject jsonObj,
Injector injector,
Object rhs)
Map Json Map object field to Java object field.
|
protected void |
ObjectResolver.handleMissingField(Deque<JsonObject> stack,
JsonObject jsonObj,
Object rhs,
String missingField)
Try to create a java object from the missing field.
|
default Object |
JsonReader.JsonClassReader.read(Object jOb,
Deque<JsonObject> stack) |
Object |
JsonReader.JsonClassReaderBase.read(Object jOb,
Deque<JsonObject> stack,
Map<String,Object> args)
Deprecated.
|
default Object |
JsonReader.JsonClassReader.read(Object jOb,
Deque<JsonObject> stack,
Map<String,Object> args)
Deprecated.
|
default Object |
JsonReader.JsonClassReader.read(Object jOb,
Deque<JsonObject> stack,
Map<String,Object> args,
JsonReader reader)
Deprecated.
|
Object |
Readers.URLReader.read(Object o,
Deque<JsonObject> stack,
ReadOptions options) |
Object |
Readers.LocaleReader.read(Object o,
Deque<JsonObject> stack,
ReadOptions options) |
Object |
Readers.CalendarReader.read(Object o,
Deque<JsonObject> stack,
ReadOptions options) |
Object |
Readers.StringReader.read(Object o,
Deque<JsonObject> stack,
ReadOptions options) |
Object |
Readers.ClassReader.read(Object o,
Deque<JsonObject> stack,
ReadOptions options) |
Object |
Readers.AtomicBooleanReader.read(Object o,
Deque<JsonObject> stack,
ReadOptions options) |
Object |
Readers.AtomicIntegerReader.read(Object o,
Deque<JsonObject> stack,
ReadOptions options) |
Object |
Readers.AtomicLongReader.read(Object o,
Deque<JsonObject> stack,
ReadOptions options) |
Object |
Readers.BigIntegerReader.read(Object o,
Deque<JsonObject> stack,
ReadOptions options) |
Object |
Readers.BigDecimalReader.read(Object o,
Deque<JsonObject> stack,
ReadOptions options) |
Object |
Readers.StringBuilderReader.read(Object o,
Deque<JsonObject> stack,
ReadOptions options) |
Object |
Readers.StringBufferReader.read(Object o,
Deque<JsonObject> stack,
ReadOptions options) |
Object |
Readers.UUIDReader.read(Object o,
Deque<JsonObject> stack,
ReadOptions options) |
Object |
Readers.RecordReader.read(Object o,
Deque<JsonObject> stack,
ReadOptions options) |
default Object |
JsonReader.JsonClassReader.read(Object jOb,
Deque<JsonObject> stack,
ReadOptions readOptions) |
protected Object |
ObjectResolver.readWithFactoryIfExists(Object o,
Class inferredType,
Deque<JsonObject> stack)
Convert the passed in object (o) to a proper Java object.
|
protected abstract Object |
Resolver.readWithFactoryIfExists(Object o,
Class compType,
Deque<JsonObject> stack) |
protected Object |
MapResolver.readWithFactoryIfExists(Object o,
Class compType,
Deque<JsonObject> stack) |
protected void |
ObjectResolver.traverseArray(Deque<JsonObject> stack,
JsonObject jsonObj)
Traverse the JsonObject associated to an array (of any type).
|
protected abstract void |
Resolver.traverseArray(Deque<JsonObject> stack,
JsonObject jsonObj) |
protected void |
MapResolver.traverseArray(Deque<JsonObject> stack,
JsonObject jsonObj) |
protected void |
ObjectResolver.traverseCollection(Deque<JsonObject> stack,
JsonObject jsonObj)
Process java.util.Collection and it's derivatives.
|
protected abstract void |
Resolver.traverseCollection(Deque<JsonObject> stack,
JsonObject jsonObj) |
protected void |
MapResolver.traverseCollection(Deque<JsonObject> stack,
JsonObject jsonObj)
Process java.util.Collection and it's derivatives.
|
void |
ObjectResolver.traverseFields(Deque<JsonObject> stack,
JsonObject jsonObj)
Walk the Java object fields and copy them from the JSON object to the Java object, performing
any necessary conversions on primitives, or deep traversals for field assignments to other objects,
arrays, Collections, or Maps.
|
abstract void |
Resolver.traverseFields(Deque<JsonObject> stack,
JsonObject jsonObj) |
void |
MapResolver.traverseFields(Deque<JsonObject> stack,
JsonObject jsonObj)
Walk the JsonObject fields and perform necessary substitutions so that all references matched up.
|
void |
ObjectResolver.traverseFields(Deque<JsonObject> stack,
JsonObject jsonObj,
Set<String> excludeFields)
Walk the Java object fields and copy them from the JSON object to the Java object, performing
any necessary conversions on primitives, or deep traversals for field assignments to other objects,
arrays, Collections, or Maps.
|
abstract void |
Resolver.traverseFields(Deque<JsonObject> stack,
JsonObject jsonObj,
Set<String> excludeFields) |
void |
MapResolver.traverseFields(Deque<JsonObject> stack,
JsonObject jsonObj,
Set<String> excludeFields) |
protected void |
Resolver.traverseMap(Deque<JsonObject> stack,
JsonObject jsonObj)
Process java.util.Map and it's derivatives.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
CalendarFactory.fromJsonObject(Class<?> c,
JsonObject object) |
protected Object |
DateFactory.fromJsonObject(Class<?> c,
JsonObject object) |
protected LocalDateTime |
LocalDateTimeFactory.fromJsonObject(JsonObject job) |
protected abstract T |
AbstractTemporalFactory.fromJsonObject(JsonObject job) |
protected OffsetTime |
OffsetTimeFactory.fromJsonObject(JsonObject job) |
protected OffsetDateTime |
OffsetDateTimeFactory.fromJsonObject(JsonObject job) |
protected ZonedDateTime |
ZonedDateTimeFactory.fromJsonObject(JsonObject job) |
protected YearMonth |
YearMonthFactory.fromJsonObject(JsonObject job) |
protected LocalTime |
LocalTimeFactory.fromJsonObject(JsonObject job) |
protected LocalDate |
LocalDateFactory.fromJsonObject(JsonObject job) |
protected Year |
YearFactory.fromJsonObject(JsonObject job) |
protected ZoneOffset |
ZoneOffsetFactory.fromJsonObject(JsonObject job) |
T |
AbstractTemporalFactory.newInstance(Class<?> c,
JsonObject jObj) |
Object |
CalendarFactory.newInstance(Class<?> c,
JsonObject jObj) |
Object |
EnumClassFactory.newInstance(Class<?> c,
JsonObject jObj) |
Object |
StackTraceElementFactory.newInstance(Class<?> c,
JsonObject jObj) |
Object |
DateFactory.newInstance(Class<?> c,
JsonObject jObj) |
ZoneOffset |
ZoneOffsetFactory.newInstance(Class<?> c,
JsonObject jObj) |
Object |
ThrowableFactory.newInstance(Class<?> c,
JsonObject jObj) |
Object |
SqlDateFactory.newInstance(Class<?> c,
JsonObject jObj) |
Object |
TimeZoneFactory.newInstance(Class c,
JsonObject jObj) |
Copyright © 2023. All rights reserved.