|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.beans.reflect.AbstractCollectionReflectionTranscoder
public abstract class AbstractCollectionReflectionTranscoder
Reflection transcoder for an object that implements a Collection.
| Constructor Summary | |
|---|---|
AbstractCollectionReflectionTranscoder(Class<?> c,
ArrayReflectionTranscoder transcoder)
Creates a new abstract collection reflection transcoder. |
|
AbstractCollectionReflectionTranscoder(Class<?> c,
SingleValueReflectionTranscoder<?> transcoder)
Creates a new abstract collection reflection transcoder. |
|
| Method Summary | ||
|---|---|---|
protected abstract
|
createCollection(Class<T> clazz)
Returns a collection implementation of the correct type for this transcoder. |
|
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 AbstractCollectionReflectionTranscoder(Class<?> c,
SingleValueReflectionTranscoder<?> transcoder)
c - class that is a collectiontranscoder - to operate on elements of the collection
public AbstractCollectionReflectionTranscoder(Class<?> c,
ArrayReflectionTranscoder transcoder)
c - class that is a collectiontranscoder - to operate on elements of the collection| 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
protected abstract <T> Collection<T> createCollection(Class<T> clazz)
T - type of collectionclazz - type of collection
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 | |||||||||