Class TestJson.TestJson4All
java.lang.Object
de.iip_ecosphere.platform.support.json.Json
test.de.iip_ecosphere.platform.support.json.TestJson
test.de.iip_ecosphere.platform.support.json.TestJson.TestJson4All
- Enclosing class:
TestJson
Self-configuring Json implementation based on provided types.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested classes/interfaces inherited from class test.de.iip_ecosphere.platform.support.json.TestJson
TestJson.CustomPropertyInclusionModifier, TestJson.CustomPropertyNamingStrategy, TestJson.EnumDeserializer<T>, TestJson.JacksonEnumMapping<T>, TestJson.JsonNullableBeanPropertyWriter, TestJson.MappingPropertyNamingStrategy, TestJson.OktoAnnotationIntrospector, TestJson.OptionalFieldsDeserializationProblemHandlerNested classes/interfaces inherited from class de.iip_ecosphere.platform.support.json.Json
de.iip_ecosphere.platform.support.json.Json.EnumMapping<T> -
Field Summary
FieldsFields inherited from class test.de.iip_ecosphere.platform.support.json.TestJson
IIP_TYPE_RESOLVER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate <T> Class<T> Configures this instance forcls.private ObjectConfigures this instance for the class ofobj.<T> TconvertValue(Object value, Class<T> cls) <T> de.iip_ecosphere.platform.support.json.Json.EnumMapping<T> createEnumMapping(Class<T> type, Map<String, T> mapping) <R> R<R> List<R> listFromJson(Object json, Class<R> cls) <K,V> Map <K, V> mapFromJson(Object json, Class<K> keyCls, Class<K> valueCls) <T> T<T> Tbyte[]writeValueAsBytes(Object value) writeValueAsString(Object value) Methods inherited from class test.de.iip_ecosphere.platform.support.json.TestJson
configureExceptFieldsFilter, configureFor, configureFor, configureLazy, configureLazy, createArrayBuilderImpl, createGeneratorImpl, createInstanceImpl, createIterator, createIterator, createObjectBuilderImpl, createObjectImpl, declareEnums, declareEnums, defineFields, defineFields, defineOptionals, defineOptionals, exceptFields, exceptFields, failOnUnknownProperties, filterAllExceptFields, handleIipDataClasses, handleIipDataClasses, parseImpl, parseImplMethods inherited from class de.iip_ecosphere.platform.support.json.Json
createArrayBuilder, createEnumMapping, createEnumValueMap, createEnumValueMapping, createGenerator, createInstance, createInstance, createInstance, createInstance4All, createObject, createObject, createObject, createObjectBuilder, fromJsonDflt, listFromJsonDflt, mapFromJsonDflt, parse, parse, readValueDflt, readValueDflt, setPrototype, toJsonDflt, toJsonQuiet, writeValueAsBytesDflt, writeValueAsStringDflt
-
Field Details
-
configured
-
-
Constructor Details
-
TestJson4All
private TestJson4All()
-
-
Method Details
-
cfg
Configures this instance forcls.- Type Parameters:
T- the actual type- Parameters:
cls- the class to configure for- Returns:
- cls
-
cfg
Configures this instance for the class ofobj.- Parameters:
obj- the object to configure for, ignored if null- Returns:
- obj
-
toJson
- Overrides:
toJsonin classTestJson- Throws:
IOException
-
fromJson
- Overrides:
fromJsonin classTestJson- Throws:
IOException
-
listFromJson
- Overrides:
listFromJsonin classTestJson
-
mapFromJson
- Overrides:
mapFromJsonin classTestJson
-
readValue
- Overrides:
readValuein classTestJson- Throws:
IOException
-
readValue
- Overrides:
readValuein classTestJson- Throws:
IOException
-
convertValue
- Overrides:
convertValuein classTestJson- Throws:
IllegalArgumentException
-
createEnumMapping
public <T> de.iip_ecosphere.platform.support.json.Json.EnumMapping<T> createEnumMapping(Class<T> type, Map<String, T> mapping) - Overrides:
createEnumMappingin classTestJson
-
writeValueAsBytes
- Overrides:
writeValueAsBytesin classTestJson- Throws:
IOException
-
writeValueAsString
- Overrides:
writeValueAsStringin classTestJson- Throws:
IOException
-