Package org.ldaptive.transcode
Class BooleanValueTranscoder
- java.lang.Object
-
- org.ldaptive.transcode.AbstractStringValueTranscoder<T>
-
- org.ldaptive.transcode.AbstractPrimitiveValueTranscoder<Boolean>
-
- org.ldaptive.transcode.BooleanValueTranscoder
-
- All Implemented Interfaces:
ValueTranscoder<Boolean>
public class BooleanValueTranscoder extends AbstractPrimitiveValueTranscoder<Boolean>
Decodes and encodes a boolean for use in an ldap attribute value.
-
-
Constructor Summary
Constructors Constructor Description BooleanValueTranscoder()
Default constructor.BooleanValueTranscoder(boolean b)
Creates a new boolean value transcoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
decodeStringValue(String value)
Decodes the supplied ldap attribute value into a custom type.Class<Boolean>
getType()
Returns the type produced by this value transcoder.-
Methods inherited from class org.ldaptive.transcode.AbstractPrimitiveValueTranscoder
encodeStringValue, isPrimitive, setPrimitive
-
Methods inherited from class org.ldaptive.transcode.AbstractStringValueTranscoder
decodeBinaryValue, encodeBinaryValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ldaptive.transcode.ValueTranscoder
decoder, encoder
-
-
-
-
Method Detail
-
decodeStringValue
public Boolean 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
-
getType
public Class<Boolean> getType()
Description copied from interface:ValueTranscoder
Returns the type produced by this value transcoder.- Returns:
- type produced by this value transcoder
-
-