org.apache.mina.integration.beans
Class EnumEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.apache.mina.integration.beans.AbstractPropertyEditor
org.apache.mina.integration.beans.EnumEditor
- All Implemented Interfaces:
- PropertyEditor
public class EnumEditor
- extends AbstractPropertyEditor
A PropertyEditor
which converts a String
into
an Enum
and vice versa.
- Author:
- Apache MINA Project
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 |
EnumEditor
public EnumEditor(Class enumType)
toText
protected String toText(Object value)
- Specified by:
toText
in class AbstractPropertyEditor
toValue
protected Object toValue(String text)
throws IllegalArgumentException
- Specified by:
toValue
in class AbstractPropertyEditor
- Throws:
IllegalArgumentException
Copyright © 2004-2012 Apache MINA Project. All Rights Reserved.