Package org.ldaptive.transcode
Class StringValueTranscoder
- java.lang.Object
-
- org.ldaptive.transcode.AbstractStringValueTranscoder<String>
-
- org.ldaptive.transcode.StringValueTranscoder
-
- All Implemented Interfaces:
ValueTranscoder<String>
public class StringValueTranscoder extends AbstractStringValueTranscoder<String>
Decodes and encodes a string for use in an ldap attribute value.
-
-
Constructor Summary
Constructors Constructor Description StringValueTranscoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdecodeStringValue(String value)Decodes the supplied ldap attribute value into a custom type.StringencodeStringValue(String value)Encodes the supplied value into an ldap attribute value.Class<String>getType()Returns the type produced by this value transcoder.-
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 String decodeStringValue(String value)
Description copied from interface:ValueTranscoderDecodes the supplied ldap attribute value into a custom type.- Parameters:
value- to decode- Returns:
- decoded value
-
encodeStringValue
public String encodeStringValue(String value)
Description copied from interface:ValueTranscoderEncodes the supplied value into an ldap attribute value.- Parameters:
value- to encode- Returns:
- encoded value
-
getType
public Class<String> getType()
Description copied from interface:ValueTranscoderReturns the type produced by this value transcoder.- Returns:
- type produced by this value transcoder
-
-