lumis.util.converter
Class ConvertUtil
java.lang.Object
lumis.util.converter.ConvertUtil
public class ConvertUtil
- extends Object
This class offers utility conversion methods.
- Since:
- 4.0.4
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DELEGATE_TO_REGISTERED_CONVERTER
public static final IConverter DELEGATE_TO_REGISTERED_CONVERTER
- A converter that delegates calls to it to a registered converter.
- Since:
- 4.0.4
- See Also:
DelegateToRegisteredConverter
ConvertUtil
public ConvertUtil()
register
public static void register(Class type,
Class<? extends IConverter> converterClass)
deregister
public static void deregister(Class type)
createConverter
public static IConverter createConverter(Class type)
throws UnsupportedConversionTypeException
- Create the appropriated converter for the given type.
- Parameters:
type
- the type that needs to be converted.
- Returns:
- an instance of the appropriated converter for the given type.
- Throws:
UnsupportedConversionTypeException
- if the conversion is not supported.- Since:
- 6.0.0
convert
public static <T> T convert(Class<T> type,
Object value,
Locale locale,
String pattern)
convert
public static <T,R extends Collection<T>> Collection<T> convert(Class<T> valueType,
Iterable input,
R output,
Locale locale,
String pattern)
Lumisportal 6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.