Package org.ldaptive.transcode
Class BooleanValueTranscoder
java.lang.Object
org.ldaptive.transcode.AbstractStringValueTranscoder<Boolean>
org.ldaptive.transcode.AbstractPrimitiveValueTranscoder<Boolean>
org.ldaptive.transcode.BooleanValueTranscoder
- All Implemented Interfaces:
ValueTranscoder<Boolean>
Decodes and encodes a boolean for use in an ldap attribute value.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.BooleanValueTranscoder
(boolean b) Creates a new boolean value transcoder. -
Method Summary
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
-
Constructor Details
-
BooleanValueTranscoder
public BooleanValueTranscoder()Default constructor. -
BooleanValueTranscoder
public BooleanValueTranscoder(boolean b) Creates a new boolean value transcoder.- Parameters:
b
- whether this transcoder is operating on a primitive
-
-
Method Details
-
decodeStringValue
Description copied from interface:ValueTranscoder
Decodes the supplied ldap attribute value into a custom type.- Parameters:
value
- to decode- Returns:
- decoded value
-
getType
Description copied from interface:ValueTranscoder
Returns the type produced by this value transcoder.- Returns:
- type produced by this value transcoder
-