org.ldaptive.beans.reflect
Class ListReflectionTranscoder

java.lang.Object
  extended by org.ldaptive.beans.reflect.AbstractCollectionReflectionTranscoder
      extended by org.ldaptive.beans.reflect.ListReflectionTranscoder
All Implemented Interfaces:
ReflectionTranscoder

public class ListReflectionTranscoder
extends AbstractCollectionReflectionTranscoder

Reflection transcoder for an object that implements List.

Version:
$Revision: 2917 $ $Date: 2014-03-21 16:06:36 -0400 (Fri, 21 Mar 2014) $
Author:
Middleware Services

Constructor Summary
ListReflectionTranscoder(Class<?> c, ArrayReflectionTranscoder transcoder)
          Creates a new list reflection transcoder.
ListReflectionTranscoder(Class<?> c, SingleValueReflectionTranscoder<?> transcoder)
          Creates a new list reflection transcoder.
 
Method Summary
protected
<T> Collection<T>
createCollection(Class<T> clazz)
          Returns a collection implementation of the correct type for this transcoder.
 
Methods inherited from class org.ldaptive.beans.reflect.AbstractCollectionReflectionTranscoder
decodeBinaryValues, decodeStringValues, encodeBinaryValues, encodeStringValues, getType, supports, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListReflectionTranscoder

public ListReflectionTranscoder(Class<?> c,
                                SingleValueReflectionTranscoder<?> transcoder)
Creates a new list reflection transcoder.

Parameters:
c - class that is a list
transcoder - to operate on elements of the list

ListReflectionTranscoder

public ListReflectionTranscoder(Class<?> c,
                                ArrayReflectionTranscoder transcoder)
Creates a new list reflection transcoder.

Parameters:
c - class that is a list
transcoder - to operate on elements of the list
Method Detail

createCollection

protected <T> Collection<T> createCollection(Class<T> clazz)
Returns a collection implementation of the correct type for this transcoder.

Specified by:
createCollection in class AbstractCollectionReflectionTranscoder
Type Parameters:
T - type of collection
Parameters:
clazz - type of collection
Returns:
collection implementation


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.