lumis.util.converter
Class ConvertUtil

Package class diagram package ConvertUtil
java.lang.Object
  extended by lumis.util.converter.ConvertUtil

public class ConvertUtil
extends Object

This class offers utility conversion methods.

Since:
4.0.4

Field Summary
static IConverter DELEGATE_TO_REGISTERED_CONVERTER
          A converter that delegates calls to it to a registered converter.
 
Constructor Summary
ConvertUtil()
           
 
Method Summary
static
<T,R extends Collection<T>>
Collection<T>
convert(Class<T> valueType, Iterable input, R output, Locale locale, String pattern)
           
static
<T> T
convert(Class<T> type, Object value, Locale locale, String pattern)
           
static IConverter createConverter(Class type)
           
static void deregister(Class type)
           
static void register(Class type, Class<? extends IConverter> converterClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ConvertUtil

public ConvertUtil()
Method Detail

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
Throws:
UnsupportedConversionTypeException

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  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.