|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.beans.reflect.ArrayReflectionTranscoder
public class ArrayReflectionTranscoder
Reflection transcoder which expects to operate on collections containing an array of values.
| Constructor Summary | |
|---|---|
ArrayReflectionTranscoder(SingleValueReflectionTranscoder<?> transcoder)
Creates a new array reflection transcoder. |
|
| Method Summary | |
|---|---|
Object |
decodeBinaryValues(Collection<byte[]> values)
Decodes the supplied values into an object. |
Object |
decodeStringValues(Collection<String> values)
Decodes the supplied values into an object. |
Collection<byte[]> |
encodeBinaryValues(Object values)
Encodes the supplied value into one or more byte arrays for use in an attribute. |
Collection<String> |
encodeStringValues(Object values)
Encodes the supplied value into one or more strings for use in an attribute. |
Class<?> |
getType()
Returns the type produced by this transcoder. |
boolean |
supports(Class<?> t)
Returns whether this transcoder can convert object of the supplied type. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayReflectionTranscoder(SingleValueReflectionTranscoder<?> transcoder)
transcoder - to operate on individual array elements| Method Detail |
|---|
public Object decodeStringValues(Collection<String> values)
decodeStringValues in interface ReflectionTranscodervalues - to decode
public Object decodeBinaryValues(Collection<byte[]> values)
decodeBinaryValues in interface ReflectionTranscodervalues - to decode
public Collection<String> encodeStringValues(Object values)
encodeStringValues in interface ReflectionTranscodervalues - containing data to encode as strings
public Collection<byte[]> encodeBinaryValues(Object values)
encodeBinaryValues in interface ReflectionTranscodervalues - containing data to encode as byte arrays
public Class<?> getType()
getType in interface ReflectionTranscoderpublic boolean supports(Class<?> t)
supports in interface ReflectionTranscodert - of object
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||