| 
 | SWIXML 1.6 (#161) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.swixml.ConverterLibrary
public class ConverterLibrary
The ConverterLibrary contains all available Coverters, converting Strings.
General purpose data type converters are able to convert Strings into objects that are usually as parameters when setters are called on javax.swing objects.
Available Converter include converters able to produce
Example String inputs could look like this:
Converter| Method Summary | |
|---|---|
|  Converter | getConverter(Class template)Returns a Converterinstance, able to produce objects of the givenclass | 
|  Map | getConverters() | 
| static ConverterLibrary | getInstance() | 
|  boolean | hasConverter(Class template)Indicates if a the ConverterLibary has a Converter producing instances of the given Class. | 
|  void | register(Class template,
         Converter converter)Registers a Converter with the ConverterLibrary | 
|  void | register(Converter converter)Registers a Converter with the ConverterLibrary | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static ConverterLibrary getInstance()
ConverterLibrary the single instacne of the ConverterLibrary.public Map getConverters()
Map - all registered converters.
         Use a class to get to the converters
public void register(Converter converter)
converter - Converter Instance of Converter able to convert Strings into objects of the given type
public void register(Class template,
                     Converter converter)
template - Class type of the objects the Converter createsconverter - Converter Instance of Converter able to convert Strings into objects of the given typepublic boolean hasConverter(Class template)
template - Class
boolean true, if the ConverterLibrary has a Converter to produce an instances of the gioven class.public Converter getConverter(Class template)
Converter instance, able to produce objects of the given class
template - Class Class of the object the Converter needs to produce.
Converter - instance of the given Converter class.| 
 | SWIXML 1.6 (#161) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||