public static class ModelProperties.TypeRefPropertyDefn<T> extends ModelProperties.BasePropertyDefn<T>
| Modifier and Type | Field and Description |
|---|---|
String |
typeName |
com.fasterxml.jackson.core.type.TypeReference<T> |
valueType |
name| Constructor and Description |
|---|
TypeRefPropertyDefn(String name,
String typeName,
com.fasterxml.jackson.core.type.TypeReference<T> valueType) |
| Modifier and Type | Method and Description |
|---|---|
T |
decode(Object value,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
Decodes a JSON-encoded value into a corresponding Java value.
|
String |
typeName()
The name of the type of this property to be displayed in error messages.
|
void |
validate(Object value,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
Convert the value from the deserialized JSON format to the type
required by this field data type.
|
merge, name, toStringpublic final String typeName
public final com.fasterxml.jackson.core.type.TypeReference<T> valueType
public String typeName()
ModelProperties.PropertyDefnpublic T decode(Object value, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
ModelProperties.PropertyDefnpublic void validate(Object value, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.