|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.iternum.swlink.beanutils.FormatConverter
This class is a beanutils converter that is used to convert objects of a specific type to a String using configurable formatters that extent the java.text.Format interface.
| Constructor Summary | |
FormatConverter()
Creates an empty format converter. |
|
| Method Summary | |
java.lang.Object |
convert(java.lang.Class pTargetClass,
java.lang.Object pSource)
This class converts an incoming String for various incoming objects. |
void |
setFormat(java.lang.Class pClass,
Format pFormat)
Add a Format for a class,
replacing an existing format for the same class. |
void |
setFormat(java.lang.Class pClass,
java.text.Format pFormat)
Convenience method to add a java.text.Format
for a class, replacing an existing format for the same class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FormatConverter()
| Method Detail |
public java.lang.Object convert(java.lang.Class pTargetClass,
java.lang.Object pSource)
convert in interface org.apache.commons.beanutils.ConverterpTargetClass - The type to return.
Only java.lang.String is allowed.pSource - The object to be formatted
public final void setFormat(java.lang.Class pClass,
Format pFormat)
Format for a class,
replacing an existing format for the same class.
pClass - The class to apply the format forpFormat - The format to set
public final void setFormat(java.lang.Class pClass,
java.text.Format pFormat)
java.text.Format
for a class, replacing an existing format for the same class.
pClass - The class to apply the format forpFormat - The java.text.Format to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||