java.beans.PropertyEditorAbstractCollectionConverter, AbstractConverter, AbstractMapConverter, ArrayConverter, ArrayListEditor, BigDecimalEditor, BigIntegerEditor, BooleanEditor, ByteEditor, CharacterEditor, ClassEditor, CommonsLoggingConverter, DateEditor, DoubleEditor, EnumConverter, FileEditor, FloatEditor, GenericCollectionConverter, GenericMapConverter, HashMapEditor, HashtableEditor, IdentityHashMapEditor, Inet4AddressEditor, Inet6AddressEditor, InetAddressEditor, IntegerEditor, JndiConverter, LinkedHashMapEditor, LinkedHashSetEditor, LinkedListEditor, ListEditor, Log4jConverter, LoggerConverter, LongEditor, MapEditor, ObjectNameEditor, PatternConverter, PropertiesEditor, SetEditor, ShortEditor, SortedMapEditor, SortedSetEditor, StringEditor, TreeMapEditor, TreeSetEditor, URIEditor, URLEditor, VectorEditor, WeakHashMapEditorpublic interface Converter
extends java.beans.PropertyEditor
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Class |
getType() |
Gets the the type of object supported by this converter.
|
java.lang.Object |
toObject(java.lang.String text) |
Converts the supplied text in to an instance of the editor type.
|
java.lang.String |
toString(java.lang.Object value) |
Converts the supplied object to text.
|
java.lang.Class getType()
java.lang.String toString(java.lang.Object value)
throws PropertyEditorException
value - an instance of the editor typePropertyEditorException - if an error occurs while converting the value to a String (this is very rare)java.lang.Object toObject(java.lang.String text)
throws PropertyEditorException
text - the text to convertPropertyEditorException - if an error occurs while converting the text to an objectCopyright © 2005–2018. All rights reserved.