Class AbstractValueTypeDeserializer<T>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected T deserialize​(java.lang.String jsonValue, Unmarshaller unmarshaller, java.lang.reflect.Type rtType)
      Convert string value to object.
      T deserialize​(javax.json.stream.JsonParser parser, javax.json.bind.serializer.DeserializationContext ctx, java.lang.reflect.Type rtType)
      Extracts single string value for conversion.
      Customization getCustomization()
      Returns customization of object.
      protected java.lang.Class<T> getPropertyType()
      Type of a property or creator parameter which is deserialized.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractValueTypeDeserializer

        public AbstractValueTypeDeserializer​(java.lang.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,
                             java.lang.reflect.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​(java.lang.String jsonValue,
                                Unmarshaller unmarshaller,
                                java.lang.reflect.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 java.lang.Class<T> getPropertyType()
        Type of a property or creator parameter which is deserialized.
        Returns:
        property type.