public class BasicTypeConverter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.util.Map<java.lang.Class<?>,IStringObjectConverter> |
basicconverters
The map of basic converters.
|
static IStringObjectConverter |
BOOLEAN_CONVERTER
String -> Boolean converter.
|
static IStringObjectConverter |
BYTE_CONVERTER
String -> Byte converter.
|
static IStringObjectConverter |
CHARACTER_CONVERTER
String -> Character converter.
|
static IStringObjectConverter |
DATE_CONVERTER
String -> Date converter.
|
static IStringObjectConverter |
DOUBLE_CONVERTER
String -> Double converter.
|
protected static java.util.Map<java.lang.Class<?>,IStringObjectConverter> |
extconverters
The extended map of converters.
|
static IStringObjectConverter |
FLOAT_CONVERTER
String -> Float converter.
|
static IStringObjectConverter |
INTEGER_CONVERTER
String -> Integer converter.
|
static IStringObjectConverter |
LONG_CONVERTER
String -> Long converter.
|
static IStringObjectConverter |
SHORT_CONVERTER
String -> Short converter.
|
static IStringObjectConverter |
STRING_CONVERTER
String -> String converter.
|
static IStringObjectConverter |
URI_CONVERTER
String -> URI converter.
|
static IStringObjectConverter |
URL_CONVERTER
String -> URL converter.
|
Constructor and Description |
---|
BasicTypeConverter() |
Modifier and Type | Method and Description |
---|---|
static IObjectStringConverter |
getBasicObjectConverter(java.lang.Class<?> clazz)
Get a X -> String converter for a source clazz.
|
static IStringObjectConverter |
getBasicStringConverter(java.lang.Class<?> clazz)
Get a String -> X converter for a target clazz.
|
static IObjectStringConverter |
getExtendedObjectConverter(java.lang.Class<?> clazz)
Get a X -> String converter for a source clazz.
|
static IStringObjectConverter |
getExtendedStringConverter(java.lang.Class<?> clazz)
Get a String -> X converter for a target clazz.
|
static boolean |
isBuiltInType(java.lang.Class<?> clazz)
Test if a clazz is a built-in type.
|
static boolean |
isExtendedBuiltInType(java.lang.Class<?> clazz)
Test if a clazz is a built-in type.
|
public static final IStringObjectConverter STRING_CONVERTER
public static final IStringObjectConverter INTEGER_CONVERTER
public static final IStringObjectConverter LONG_CONVERTER
public static final IStringObjectConverter FLOAT_CONVERTER
public static final IStringObjectConverter DOUBLE_CONVERTER
public static final IStringObjectConverter BOOLEAN_CONVERTER
public static final IStringObjectConverter SHORT_CONVERTER
public static final IStringObjectConverter BYTE_CONVERTER
public static final IStringObjectConverter CHARACTER_CONVERTER
public static final IStringObjectConverter DATE_CONVERTER
public static final IStringObjectConverter URL_CONVERTER
public static final IStringObjectConverter URI_CONVERTER
protected static final java.util.Map<java.lang.Class<?>,IStringObjectConverter> basicconverters
protected static final java.util.Map<java.lang.Class<?>,IStringObjectConverter> extconverters
public static boolean isBuiltInType(java.lang.Class<?> clazz)
clazz
- The clazz.public static boolean isExtendedBuiltInType(java.lang.Class<?> clazz)
clazz
- The clazz.public static IStringObjectConverter getBasicStringConverter(java.lang.Class<?> clazz)
clazz
- The clazz.public static IObjectStringConverter getBasicObjectConverter(java.lang.Class<?> clazz)
clazz
- The clazz.public static IStringObjectConverter getExtendedStringConverter(java.lang.Class<?> clazz)
clazz
- The clazz.public static IObjectStringConverter getExtendedObjectConverter(java.lang.Class<?> clazz)
clazz
- The clazz.