| java.lang.Object org.swixml.converters.PrimitiveConverter
TEMPLATE | final public static Class TEMPLATE(Code) | | converter's return type
|
addConstantProvider | public static void addConstantProvider(Class clazz)(Code) | | Adds a new class or interface to the dictionary of primitive providers.
Parameters: clazz - Class providing primitive constants / public (final) fields |
conv | public static Object conv(Class type, Attribute attr, Localizer localizer) throws NoSuchFieldException, IllegalAccessException(Code) | | Converts String into java primitive type
Parameters: type - Class target type Parameters: attr - Attribute value field needs to provide convertable String Parameters: localizer - Localizer Object primitive wrapped into wrapper object throws: NoSuchFieldException - in case no class a field matching field name had been regsitered with this converter throws: IllegalAccessException - if a matching field can not be accessed |
convert | public Object convert(Class type, Attribute attr, Localizer localizer) throws Exception(Code) | | Converts String into java primitive type
Parameters: type - Class target type Parameters: attr - Attribute value field needs to provide convertable String Object primitive wrapped into wrapper object throws: Exception - |
convertsTo | public Class convertsTo()(Code) | | A Converters conversTo method informs about the Class type the converter
is returning when its convert method is called
Class - the Class the converter is returning when its convert method is called |
|
|