org.springframework.richclient.convert.support
Class CollectionConverter

Show UML class diagram
java.lang.Object
  extended by org.springframework.binding.convert.support.AbstractConverter
      extended by org.springframework.richclient.convert.support.CollectionConverter
All Implemented Interfaces:
org.springframework.binding.convert.Converter

public class CollectionConverter
extends org.springframework.binding.convert.support.AbstractConverter
implements org.springframework.binding.convert.Converter

This converter converts collection values from Object, Object[], Collection, List to Collection.class, List.class, Object[].class types

Author:
Mathias Broekelmann

Nested Class Summary
protected static class CollectionConverter.ValuesVisitor
           
 
Constructor Summary
CollectionConverter()
           
 
Method Summary
protected  Object doConvert(Object sourceValue, Class targetClass, org.springframework.binding.convert.ConversionContext context)
           
 Class[] getSourceClasses()
           
 Class[] getTargetClasses()
           
 
Methods inherited from class org.springframework.binding.convert.support.AbstractConverter
convert, convert, convert, convert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.binding.convert.Converter
convert
 

Constructor Detail

CollectionConverter

public CollectionConverter()
Method Detail

doConvert

protected Object doConvert(Object sourceValue,
                           Class targetClass,
                           org.springframework.binding.convert.ConversionContext context)
                    throws Exception
Specified by:
doConvert in class org.springframework.binding.convert.support.AbstractConverter
Throws:
Exception

getSourceClasses

public Class[] getSourceClasses()
Specified by:
getSourceClasses in interface org.springframework.binding.convert.Converter

getTargetClasses

public Class[] getTargetClasses()
Specified by:
getTargetClasses in interface org.springframework.binding.convert.Converter


Copyright © 2004-2009 The Spring Framework. All Rights Reserved.