Class AbstractValueTypeDeserializer<T>

    • Constructor Detail

      • AbstractValueTypeDeserializer

        public AbstractValueTypeDeserializer​(Class<T> clazz,
                                             Customization customization)
        Creates a new instance.
        Parameters:
        clazz - Class to work with.
        customization - Model customization.
    • Method Detail

      • deserialize

        public T deserialize​(javax.json.stream.JsonParser parser,
                             javax.json.bind.serializer.DeserializationContext ctx,
                             Type rtType)
        Extracts single string value for conversion.
        Specified by:
        deserialize in interface javax.json.bind.serializer.JsonbDeserializer<T>
        Parameters:
        parser - Parser to get value from.
        ctx - Unmarshaller.
        rtType - return type.
        Returns:
        Deserialized object.
      • deserialize

        protected T deserialize​(String jsonValue,
                                Unmarshaller unmarshaller,
                                Type rtType)
        Convert string value to object.
        Parameters:
        jsonValue - Json value.
        unmarshaller - Unmarshaller instance.
        rtType - Runtime type.
        Returns:
        Deserialized object.
      • getCustomization

        public Customization getCustomization()
        Returns customization of object.
        Returns:
        object customization
      • getPropertyType

        protected Class<T> getPropertyType()
        Type of a property or creator parameter which is deserialized.
        Returns:
        property type.