org.sonatype.gshell.util.converter.collections
Class GenericCollectionConverter

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.sonatype.gshell.util.converter.ConverterSupport
          extended by org.sonatype.gshell.util.converter.collections.CollectionConverterSupport
              extended by org.sonatype.gshell.util.converter.collections.GenericCollectionConverter
All Implemented Interfaces:
PropertyEditor, Converter

public class GenericCollectionConverter
extends CollectionConverterSupport

Converter for generic Collection types.

Since:
2.0

Constructor Summary
GenericCollectionConverter(Class type, PropertyEditor editor)
           
 
Method Summary
protected  Object createCollection(List list)
           
 
Methods inherited from class org.sonatype.gshell.util.converter.collections.CollectionConverterSupport
convertToObject, convertToString
 
Methods inherited from class org.sonatype.gshell.util.converter.ConverterSupport
getAsText, getType, getValue, setAsText, setValue, toObject, toString
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.beans.PropertyEditor
addPropertyChangeListener, getCustomEditor, getJavaInitializationString, getTags, isPaintable, paintValue, removePropertyChangeListener, supportsCustomEditor
 

Constructor Detail

GenericCollectionConverter

public GenericCollectionConverter(Class type,
                                  PropertyEditor editor)
Method Detail

createCollection

protected Object createCollection(List list)
                           throws Exception
Specified by:
createCollection in class CollectionConverterSupport
Throws:
Exception


Copyright © 2008-2011 Sonatype. All Rights Reserved.