public interface IJsonFormatTypeCoercer extends ICoercionProvider
"format" to a Java type. For instance,
the "date-time" format maps to LocalDateTime
See DefaultCoercer to see how "date-time" and other formats are mapped to a set of Java types.
Register one or more of your IJsonFormatTypeCoercer implementations in a file named:
META-INF/services/manifold.ext.rt.api.ICoercionProvider
This file contains the fully qualified names of your implementations, one per line e.g.,
com.example.FooFormatTypeCoercer
com.example.BarFormatTypeCoercer
| Modifier and Type | Field and Description |
|---|---|
static manifold.util.concurrent.LocklessLazyVar<java.util.Set<ICoercionProvider>> |
_coercionProviders |
static manifold.util.concurrent.LocklessLazyVar<java.util.List<IJsonFormatTypeCoercer>> |
_instances |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<IJsonFormatTypeCoercer> |
get() |
java.util.Map<java.lang.String,java.lang.Class<?>> |
getFormats() |
coerce, toBindingValuestatic final manifold.util.concurrent.LocklessLazyVar<java.util.Set<ICoercionProvider>> _coercionProviders
static final manifold.util.concurrent.LocklessLazyVar<java.util.List<IJsonFormatTypeCoercer>> _instances
static java.util.List<IJsonFormatTypeCoercer> get()
java.util.Map<java.lang.String,java.lang.Class<?>> getFormats()
"date-time"->LocalDateTime.class to be
referenced in Json Schema "format" types.Copyright © 2024. All rights reserved.