|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.util.convert.ConverterLocator
public class ConverterLocator
Implementation of IConverterLocator
interface, which locates converters for a given type.
It serves as a registry for IConverter
instances stored by type, and is the default
locator for Wicket.
IConverterLocator
,
Serialized FormConstructor Summary | |
---|---|
ConverterLocator()
Constructor |
Method Summary | |
---|---|
IConverter |
get(Class<?> c)
Gets the type converter that is registered for class c. |
IConverter |
getConverter(Class<?> type)
Converts the given value to class c. |
IConverter |
remove(Class<?> c)
Removes the type converter currently registered for class c. |
IConverter |
set(Class c,
IConverter converter)
Registers a converter for use with class c. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConverterLocator()
Method Detail |
---|
public final IConverter get(Class<?> c)
c
- The class to get the type converter for
public final IConverter getConverter(Class<?> type)
getConverter
in interface IConverterLocator
type
- Class to get the converter for.
IConverter.convertToObject(String, java.util.Locale)
public final IConverter remove(Class<?> c)
c
- The class for which the converter registration should be removed
public final IConverter set(Class c, IConverter converter)
converter
- The converter to addc
- The class for which the converter should be used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |