Also: SpringCore
public interface

ToStringStyler

org.springframework.core.style.ToStringStyler
Known Indirect Subclasses

Class Overview

A strategy interface for pretty-printing toString() methods. Encapsulates the print algorithms; some other object such as a builder should provide the workflow.

Summary

Public Methods
abstract void styleEnd(StringBuilder buffer, Object obj)
Style a toString()'ed object after it's fields are styled.
abstract void styleField(StringBuilder buffer, String fieldName, Object value)
Style a field value as a string.
abstract void styleFieldSeparator(StringBuilder buffer)
Style the field separator.
abstract void styleStart(StringBuilder buffer, Object obj)
Style a toString()'ed object before its fields are styled.
abstract void styleValue(StringBuilder buffer, Object value)
Style the given value.

Public Methods

public abstract void styleEnd (StringBuilder buffer, Object obj)

Also: SpringCore

Style a toString()'ed object after it's fields are styled.

Parameters
buffer the buffer to print to
obj the object to style

public abstract void styleField (StringBuilder buffer, String fieldName, Object value)

Also: SpringCore

Style a field value as a string.

Parameters
buffer the buffer to print to
fieldName the he name of the field
value the field value

public abstract void styleFieldSeparator (StringBuilder buffer)

Also: SpringCore

Style the field separator.

Parameters
buffer buffer to print to

public abstract void styleStart (StringBuilder buffer, Object obj)

Also: SpringCore

Style a toString()'ed object before its fields are styled.

Parameters
buffer the buffer to print to
obj the object to style

public abstract void styleValue (StringBuilder buffer, Object value)

Also: SpringCore

Style the given value.

Parameters
buffer the buffer to print to
value the field value