|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.seaf.util.ToStringUtils
public class ToStringUtils
Builder of toString() return value for a JavaBean.
| Constructor Summary | |
|---|---|
ToStringUtils(Class<?> clazz,
String superToString)
Initialize the builder. |
|
| Method Summary | |
|---|---|
void |
addProperty(String name,
Object value)
Add a property to the builder. |
String |
toString()
Returns the value of the buffered toString output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ToStringUtils(Class<?> clazz,
String superToString)
clazz - The class of the beansuperToString - The result of toString() on the superclass
NullPointerException - When clazz is null| Method Detail |
|---|
public void addProperty(String name,
Object value)
name - Name of the propertyvalue - Value of the propertypublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||