org.ldaptive.io
Class LongValueTranscoder

java.lang.Object
  extended by org.ldaptive.io.AbstractStringValueTranscoder<T>
      extended by org.ldaptive.io.AbstractPrimitiveValueTranscoder<Long>
          extended by org.ldaptive.io.LongValueTranscoder
All Implemented Interfaces:
ValueTranscoder<Long>

public class LongValueTranscoder
extends AbstractPrimitiveValueTranscoder<Long>

Decodes and encodes a long for use in an ldap attribute value.

Version:
$Revision: 2940 $ $Date: 2014-03-31 11:10:46 -0400 (Mon, 31 Mar 2014) $
Author:
Middleware Services

Constructor Summary
LongValueTranscoder()
          Default constructor.
LongValueTranscoder(boolean b)
          Creates a new long value transcoder.
 
Method Summary
 Long decodeStringValue(String value)
          Decodes the supplied ldap attribute value into a custom type.
 Class<Long> getType()
          Returns the type produced by this value transcoder.
 
Methods inherited from class org.ldaptive.io.AbstractPrimitiveValueTranscoder
encodeStringValue, isPrimitive, setPrimitive
 
Methods inherited from class org.ldaptive.io.AbstractStringValueTranscoder
decodeBinaryValue, encodeBinaryValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongValueTranscoder

public LongValueTranscoder()
Default constructor.


LongValueTranscoder

public LongValueTranscoder(boolean b)
Creates a new long value transcoder.

Parameters:
b - whether this transcoder is operating on a primitive
Method Detail

decodeStringValue

public Long decodeStringValue(String value)
Decodes the supplied ldap attribute value into a custom type.

Parameters:
value - to decode
Returns:
decoded value

getType

public Class<Long> getType()
Returns the type produced by this value transcoder.

Returns:
type produced by this value transcoder


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.