org.apache.mina.integration.beans
Class CollectionEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.apache.mina.integration.beans.AbstractPropertyEditor
          extended by org.apache.mina.integration.beans.CollectionEditor
All Implemented Interfaces:
java.beans.PropertyEditor
Direct Known Subclasses:
ListEditor, SetEditor

public class CollectionEditor
extends AbstractPropertyEditor

A PropertyEditor which converts a String into a Collection and vice versa.

Author:
Apache MINA Project

Constructor Summary
CollectionEditor(java.lang.Class<?> elementType)
           
 
Method Summary
protected  java.lang.Object defaultElement()
           
protected  java.util.Collection<java.lang.Object> newCollection()
           
protected  java.lang.String toText(java.lang.Object value)
           
protected  java.lang.Object toValue(java.lang.String text)
           
 
Methods inherited from class org.apache.mina.integration.beans.AbstractPropertyEditor
defaultText, defaultValue, getAsText, getValue, setAsText, setTrimText, setValue
 
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
 

Constructor Detail

CollectionEditor

public CollectionEditor(java.lang.Class<?> elementType)
Method Detail

toText

protected final java.lang.String toText(java.lang.Object value)
Specified by:
toText in class AbstractPropertyEditor

toValue

protected final java.lang.Object toValue(java.lang.String text)
                                  throws java.lang.IllegalArgumentException
Specified by:
toValue in class AbstractPropertyEditor
Throws:
java.lang.IllegalArgumentException

newCollection

protected java.util.Collection<java.lang.Object> newCollection()

defaultElement

protected java.lang.Object defaultElement()


Copyright © 2004-2011 Apache MINA Project. All Rights Reserved.