|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.dataformat.bindy.FormatFactory
public final class FormatFactory
Factory to return Format classes for a given type.
| Method Summary | |
|---|---|
static Format<?> |
getFormat(Class<?> clazz,
String locale,
DataField data)
Retrieves the format to use for the given type |
static Format<?> |
getFormat(Class<?> clazz,
String locale,
KeyValuePairField data)
Retrieves the format to use for the given type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Format<?> getFormat(Class<?> clazz,
String locale,
DataField data)
throws Exception
clazz - represents the type of the format (String, Integer, Byte)locale - optional locale for NumberFormat and DateFormat parsing.
IllegalArgumentException - if not suitable formatter is found
Exception
public static Format<?> getFormat(Class<?> clazz,
String locale,
KeyValuePairField data)
throws Exception
clazz - represents the type of the format (String, Integer, Byte)locale - optional locale for NumberFormat and DateFormat parsing.
IllegalArgumentException - if not suitable formatter is found
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||