Class UUIDValueTranscoder

All Implemented Interfaces:
ValueTranscoder<UUID>

public class UUIDValueTranscoder extends AbstractStringValueTranscoder<UUID>
Decodes and encodes a UUID for use in an ldap attribute value.
  • Constructor Details

    • UUIDValueTranscoder

      public UUIDValueTranscoder()
  • Method Details

    • decodeStringValue

      public UUID decodeStringValue(String value)
      Description copied from interface: ValueTranscoder
      Decodes the supplied ldap attribute value into a custom type.
      Parameters:
      value - to decode
      Returns:
      decoded value
    • encodeStringValue

      public String encodeStringValue(UUID value)
      Description copied from interface: ValueTranscoder
      Encodes the supplied value into an ldap attribute value.
      Parameters:
      value - to encode
      Returns:
      encoded value
    • getType

      public Class<UUID> getType()
      Description copied from interface: ValueTranscoder
      Returns the type produced by this value transcoder.
      Returns:
      type produced by this value transcoder