public static class ModelProperties.SimplePropertyDefn<T> extends ModelProperties.BasePropertyDefn<T>
| Modifier and Type | Field and Description |
|---|---|
Class<T> |
valueClass |
name| Constructor and Description |
|---|
SimplePropertyDefn(String name,
Class<T> valueClass) |
| Modifier and Type | Method and Description |
|---|---|
T |
decode(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.
|
T |
decodeJson(String value,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper) |
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)
Validate that the given value is valid for this property.
|
merge, name, toStringpublic String typeName()
ModelProperties.PropertyDefnpublic T decode(Object value, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
public void validate(Object value, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.