- All Known Implementing Classes:
- ColorConverter, FileConverter, TreePathConverter
- public interface Converter
This interface provides a method for converting a String into some
destination class type. This interface was designed as an extensible
method of converting Strings into arbitrary target classes when parsing
scripted arguments to methods. When a script is run and a method is
resolved, the String arguments are converted to the classes required for
the method invocation. Built-in conversions are provided for component
references and all the basic types, including arrays. You might, for
instance, write a Converter that takes some ID code and converts it to some
data internal to your application.
convert
public java.lang.Object convert(java.lang.String string)
throws java.lang.IllegalArgumentException