Class ObjectValueTranscoder

  • All Implemented Interfaces:
    ValueTranscoder<java.lang.Object>

    public class ObjectValueTranscoder
    extends java.lang.Object
    implements ValueTranscoder<java.lang.Object>
    Decodes and encodes an object for use in an ldap attribute value.
    Author:
    Middleware Services
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object decodeBinaryValue​(byte[] value)
      Decodes the supplied ldap attribute value into a custom type.
      java.lang.Object decodeStringValue​(java.lang.String value)
      Decodes the supplied ldap attribute value into a custom type.
      byte[] encodeBinaryValue​(java.lang.Object value)
      Encodes the supplied value into an ldap attribute value.
      java.lang.String encodeStringValue​(java.lang.Object value)
      Encodes the supplied value into an ldap attribute value.
      java.lang.Class<java.lang.Object> getType()
      Returns the type produced by this value transcoder.
      • Methods inherited from class java.lang.Object

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

      • ObjectValueTranscoder

        public ObjectValueTranscoder()
    • Method Detail

      • decodeStringValue

        public java.lang.Object decodeStringValue​(java.lang.String value)
        Description copied from interface: ValueTranscoder
        Decodes the supplied ldap attribute value into a custom type.
        Specified by:
        decodeStringValue in interface ValueTranscoder<java.lang.Object>
        Parameters:
        value - to decode
        Returns:
        decoded value
      • decodeBinaryValue

        public java.lang.Object decodeBinaryValue​(byte[] value)
        Description copied from interface: ValueTranscoder
        Decodes the supplied ldap attribute value into a custom type.
        Specified by:
        decodeBinaryValue in interface ValueTranscoder<java.lang.Object>
        Parameters:
        value - to decode
        Returns:
        decoded value
      • encodeStringValue

        public java.lang.String encodeStringValue​(java.lang.Object value)
        Description copied from interface: ValueTranscoder
        Encodes the supplied value into an ldap attribute value.
        Specified by:
        encodeStringValue in interface ValueTranscoder<java.lang.Object>
        Parameters:
        value - to encode
        Returns:
        encoded value
      • encodeBinaryValue

        public byte[] encodeBinaryValue​(java.lang.Object value)
        Description copied from interface: ValueTranscoder
        Encodes the supplied value into an ldap attribute value.
        Specified by:
        encodeBinaryValue in interface ValueTranscoder<java.lang.Object>
        Parameters:
        value - to encode
        Returns:
        encoded value
      • getType

        public java.lang.Class<java.lang.Object> getType()
        Description copied from interface: ValueTranscoder
        Returns the type produced by this value transcoder.
        Specified by:
        getType in interface ValueTranscoder<java.lang.Object>
        Returns:
        type produced by this value transcoder