public interface Converter
extends java.beans.PropertyEditor
| Modifier and Type | Method and 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 object