public class JsonbConfigProperties extends Object
| Constructor | Description |
|---|---|
JsonbConfigProperties(javax.json.bind.JsonbConfig jsonbConfig) |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getBinaryDataStrategy() |
Checks for binary data strategy to use.
|
JsonbDateFormatter |
getConfigDateFormatter() |
Gets instantiated shared config date formatter.
|
boolean |
getConfigFailOnUnknownProperties() |
Gets unknown properties flag from
JsonbConfig. |
boolean |
getConfigNullable() |
Gets nullable from
JsonbConfig. |
Locale |
getLocale(String locale) |
Converts string locale to
Locale. |
javax.json.bind.config.PropertyNamingStrategy |
getPropertyNamingStrategy() |
Gets property naming strategy.
|
PropertyOrdering |
getPropertyOrdering() |
Gets property ordering component.
|
javax.json.bind.config.PropertyVisibilityStrategy |
getPropertyVisibilityStrategy() |
Gets property visibility strategy.
|
Map<Class<?>,Class<?>> |
getUserTypeMapping() |
User type mapping for map interface to implementation classes.
|
boolean |
isStrictIJson() |
If strict IJSON patterns should be used.
|
boolean |
isZeroTimeDefaulting() |
Makes parsing dates defaulting to zero hour, minute and second.
|
public JsonbConfigProperties(javax.json.bind.JsonbConfig jsonbConfig)
public boolean getConfigNullable()
JsonbConfig.
If true null values are serialized to json.public boolean getConfigFailOnUnknownProperties()
JsonbConfig.
If false, JsonbException is not thrown for deserialization, when json key
cannot be mapped to class property.JsonbException is risen on unknown property. Default is true even if
not set in json config.public String getBinaryDataStrategy()
public Locale getLocale(String locale)
Locale.locale - Locale to convert.Locale instance.public javax.json.bind.config.PropertyVisibilityStrategy getPropertyVisibilityStrategy()
public javax.json.bind.config.PropertyNamingStrategy getPropertyNamingStrategy()
public JsonbDateFormatter getConfigDateFormatter()
public PropertyOrdering getPropertyOrdering()
public boolean isStrictIJson()
public Map<Class<?>,Class<?>> getUserTypeMapping()
public boolean isZeroTimeDefaulting()
Makes parsing dates defaulting to zero hour, minute and second.
This will made available to parse patterns like yyyy.MM.dd to
Date, Calendar, Instant LocalDate
or even ZonedDateTime.
If time zone is not set in the pattern than UTC time zone is used.
So for example json value 2018.01.01 becomes 2018.01.01 00:00:00 UTC when parsed
to instant Instant.
Copyright © 2018 Oracle Corporation. All rights reserved.