public interface Converter extends PropertyEditor
Modifier and Type | Method and Description |
---|---|
Class |
getType()
Gets the the type of object supported by this converter.
|
Object |
toObject(String text)
Converts the supplied text in to an instance of the editor type.
|
String |
toString(Object value)
Converts the supplied object to text.
|
addPropertyChangeListener, getAsText, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setValue, supportsCustomEditor
Class getType()
String toString(Object value) throws ConversionException
value
- an instance of the editor typeConversionException
- if an error occurs while converting the value to a String (this is very rare)Object toObject(String text) throws ConversionException
text
- the text to convertToObjectConversionException
- if an error occurs while converting the text to an objectCopyright © 2008-2012 Sonatype. All Rights Reserved.