|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PojoFormatter
A formatter to aid in creating a String
representation of a POJO. A new instance will be
created for each time that PojomatorImpl.doToString(Object)
is called.
PojomatorImpl.doToString(Object)
Method Summary | |
---|---|
java.lang.String |
getPropertyPrefix(PropertyElement property)
Get the String prefix for a given PropertyElement . |
java.lang.String |
getPropertySuffix(PropertyElement property)
Get the String suffix for a given PropertyElement . |
java.lang.String |
getToStringPrefix(java.lang.Class<?> pojoClass)
Get the String which should appear at the beginning of the result of
toString() . |
java.lang.String |
getToStringSuffix(java.lang.Class<?> pojoClass)
Get the String which should appear at the end of the result of
toString() . |
Method Detail |
---|
java.lang.String getToStringPrefix(java.lang.Class<?> pojoClass)
String
which should appear at the beginning of the result of
toString()
.
pojoClass
- the class for which toString()
is being called
toString()
Object.toString()
java.lang.String getToStringSuffix(java.lang.Class<?> pojoClass)
String
which should appear at the end of the result of
toString()
.
pojoClass
- the class for which toString()
is being called
toString()
Object.toString()
java.lang.String getPropertyPrefix(PropertyElement property)
String
prefix for a given PropertyElement
. This method will be called
once for each property used in the result of toString()
, in the order in which
those properties will appear in that result, and before the call to
PropertyFormatter.format(Object)
for the property's value.
property
- the property for which to generate a prefix
java.lang.String getPropertySuffix(PropertyElement property)
String
suffix for a given PropertyElement
. This method will be called
once after each call to PropertyFormatter.format(Object)
for the property's value.
property
- the property for which to generate a suffix
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |