org.ldaptive.beans.reflect
Class SetReflectionTranscoder

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

public class SetReflectionTranscoder
extends AbstractCollectionReflectionTranscoder

Reflection transcoder for an object that implements Set.

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

Constructor Summary
SetReflectionTranscoder(Class<?> c, ArrayReflectionTranscoder transcoder)
          Creates a new set reflection transcoder.
SetReflectionTranscoder(Class<?> c, SingleValueReflectionTranscoder<?> transcoder)
          Creates a new set 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

SetReflectionTranscoder

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

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

SetReflectionTranscoder

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

Parameters:
c - class that is a set
transcoder - to operate on elements of the set
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-2016 Virginia Tech. All Rights Reserved.