Interface ReflectionTranscoder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object decodeBinaryValues​(java.util.Collection<byte[]> values)
      Decodes the supplied values into an object.
      java.lang.Object decodeStringValues​(java.util.Collection<java.lang.String> values)
      Decodes the supplied values into an object.
      java.util.Collection<byte[]> encodeBinaryValues​(java.lang.Object value)
      Encodes the supplied value into one or more byte arrays for use in an attribute.
      java.util.Collection<java.lang.String> encodeStringValues​(java.lang.Object value)
      Encodes the supplied value into one or more strings for use in an attribute.
      java.lang.Class<?> getType()
      Returns the type produced by this transcoder.
      boolean supports​(java.lang.Class<?> type)
      Returns whether this transcoder can convert object of the supplied type.
    • Method Detail

      • decodeStringValues

        java.lang.Object decodeStringValues​(java.util.Collection<java.lang.String> values)
        Decodes the supplied values into an object.
        Parameters:
        values - to decode
        Returns:
        object initialized with the values
      • decodeBinaryValues

        java.lang.Object decodeBinaryValues​(java.util.Collection<byte[]> values)
        Decodes the supplied values into an object.
        Parameters:
        values - to decode
        Returns:
        object initialized with the values
      • encodeStringValues

        java.util.Collection<java.lang.String> encodeStringValues​(java.lang.Object value)
        Encodes the supplied value into one or more strings for use in an attribute.
        Parameters:
        value - containing data to encode as strings
        Returns:
        string attribute values
      • encodeBinaryValues

        java.util.Collection<byte[]> encodeBinaryValues​(java.lang.Object value)
        Encodes the supplied value into one or more byte arrays for use in an attribute.
        Parameters:
        value - containing data to encode as byte arrays
        Returns:
        binary attribute values
      • getType

        java.lang.Class<?> getType()
        Returns the type produced by this transcoder.
        Returns:
        type produced by this transcoder
      • supports

        boolean supports​(java.lang.Class<?> type)
        Returns whether this transcoder can convert object of the supplied type.
        Parameters:
        type - of object
        Returns:
        whether the supplied type can be converted