org.ldaptive.io
Class DoubleValueTranscoder

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

public class DoubleValueTranscoder
extends AbstractPrimitiveValueTranscoder<Double>

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

Version:
$Revision: 2886 $ $Date: 2014-02-26 12:21:59 -0500 (Wed, 26 Feb 2014) $
Author:
Middleware Services

Constructor Summary
DoubleValueTranscoder()
          Default constructor.
DoubleValueTranscoder(boolean b)
          Creates a new double value transcoder.
 
Method Summary
 Double decodeStringValue(String value)
          Decodes the supplied ldap attribute value into a custom type.
 Class<Double> 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

DoubleValueTranscoder

public DoubleValueTranscoder()
Default constructor.


DoubleValueTranscoder

public DoubleValueTranscoder(boolean b)
Creates a new double value transcoder.

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

decodeStringValue

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

Parameters:
value - to decode
Returns:
decoded value

getType

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

Returns:
type produced by this value transcoder


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