org.jboss.util
Interface PrettyString


public interface PrettyString

A simple interface for objects that can return pretty (ie. prefixed) string representations of themselves.


Nested Class Summary
static interface PrettyString.Appendable (src)
          Interface for appending the objects pretty string onto a buffer.
 
Method Summary
 java.lang.String toPrettyString(java.lang.String prefix)
          Returns a pretty representation of the object.
 

Method Detail

toPrettyString

public java.lang.String toPrettyString(java.lang.String prefix)
Returns a pretty representation of the object.

Parameters:
prefix - The string which all lines of the output must be prefixed with.
Returns:
A pretty representation of the object.