|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.dataformat.bindy.format.NumberPatternFormat<T>
public abstract class NumberPatternFormat<T>
| Constructor Summary | |
|---|---|
NumberPatternFormat()
|
|
NumberPatternFormat(String pattern,
Locale locale)
|
|
| Method Summary | |
|---|---|
String |
format(T object)
Formats the object into a String |
protected NumberFormat |
getNumberFormat()
Gets the number format if in use. |
String |
getPattern()
Method used to retrieve the pattern for the format |
abstract T |
parse(String string)
Parses a String into an object |
void |
setPattern(String pattern)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NumberPatternFormat()
public NumberPatternFormat(String pattern,
Locale locale)
| Method Detail |
|---|
public String format(T object)
throws Exception
Format
format in interface Format<T>object - the object
Exception - can be thrown
public abstract T parse(String string)
throws Exception
Format
parse in interface Format<T>string - the string
Exception - can be thrownprotected NumberFormat getNumberFormat()
public String getPattern()
PatternFormat
getPattern in interface PatternFormat<T>public void setPattern(String pattern)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||