com.benfante.utils.string
Class WrappingToStringWorker

java.lang.Object
  extended by com.benfante.utils.string.WrappingToStringWorker
All Implemented Interfaces:
ToStringWorker

public class WrappingToStringWorker
extends java.lang.Object
implements ToStringWorker

A ToStringWorker that produces output wrapping on the toString() method of the passed object.

Author:
Lucio Benfante lucio@benfante.com

Constructor Summary
WrappingToStringWorker()
          Creates a new instance of ObjectToStringWorker
 
Method Summary
 java.lang.String toString(java.lang.Object o)
          Returns the String rappresentation of the passed object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappingToStringWorker

public WrappingToStringWorker()
Creates a new instance of ObjectToStringWorker

Method Detail

toString

public java.lang.String toString(java.lang.Object o)
Returns the String rappresentation of the passed object.

Specified by:
toString in interface ToStringWorker
Parameters:
o - The object to be rappresented in String.
Returns:
The String rappresentation of the passed object.


Copyright © 2007. All Rights Reserved.