Class ModelProperties.TypeRefPropertyDefn<T>

    • Field Detail

      • typeName

        public final String typeName
      • valueType

        public final com.fasterxml.jackson.core.type.TypeReference<T> valueType
    • Constructor Detail

      • TypeRefPropertyDefn

        public TypeRefPropertyDefn​(String name,
                                   String typeName,
                                   com.fasterxml.jackson.core.type.TypeReference<T> valueType)
    • Method Detail

      • typeName

        public String typeName()
        Description copied from interface: ModelProperties.PropertyDefn
        The name of the type of this property to be displayed in error messages.
      • decode

        public T decode​(Object value,
                        com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
        Description copied from interface: ModelProperties.PropertyDefn
        Decodes a JSON-encoded value into a corresponding Java value.
      • validate

        public 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. Also used to decode values from SQL parameters. As a side effect, verifies that the value is of the correct type.