com.iternum.swlink.beanutils
Class TextFormat

java.lang.Object
  extended bycom.iternum.swlink.beanutils.TextFormat
All Implemented Interfaces:
Format

public class TextFormat
extends java.lang.Object
implements Format

This format is a wrapper around the format provided by the java.text.Format classes. It provides the ability to easily reuse these classes in Swlink and in BeanUtils.

Author:
bankkar

Constructor Summary
TextFormat(java.text.Format pFormat)
           
 
Method Summary
 java.lang.String format(java.lang.Object pSource)
          Formats an object as per the functionality of the wrapped java.text.Format instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextFormat

public TextFormat(java.text.Format pFormat)
Parameters:
pFormat - The java.text.Format to use in this Format
Method Detail

format

public java.lang.String format(java.lang.Object pSource)
Formats an object as per the functionality of the wrapped java.text.Format instance.

Specified by:
format in interface Format
Parameters:
pSource - The object to format
Returns:
A formatted String representing the object.