java.lang.Object | |
↳ | org.springframework.core.style.DefaultToStringStyler |
Spring's default toString()
styler.
This class is used by ToStringCreator
to style toString()
output in a consistent manner according to Spring conventions.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new DefaultToStringStyler.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Style a
toString() 'ed object after it's fields are styled. | |||||||||||
Style a field value as a string.
| |||||||||||
Style the field separator.
| |||||||||||
Style a
toString() 'ed object before its fields are styled. | |||||||||||
Style the given value.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the ValueStyler used by this ToStringStyler.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.core.style.ToStringStyler
|
Create a new DefaultToStringStyler.
valueStyler | the ValueStyler to use |
---|
Style a toString()
'ed object after it's fields are styled.
buffer | the buffer to print to |
---|---|
o | the object to style |
Style a field value as a string.
buffer | the buffer to print to |
---|---|
fieldName | the he name of the field |
value | the field value |
Style the field separator.
buffer | buffer to print to |
---|
Style a toString()
'ed object before its fields are styled.
buffer | the buffer to print to |
---|---|
obj | the object to style |
Style the given value.
buffer | the buffer to print to |
---|---|
value | the field value |
Return the ValueStyler used by this ToStringStyler.