public abstract class DumpableObject extends java.lang.Object implements Dumpable
Dumpable
objects. It has default implementations
for all methods of Dumpable
. Subclasses are supposed to override toString(ToString)
and toDumpString(DumpString)
in order to fill the values of their instance variables.Constructor and Description |
---|
DumpableObject() |
Modifier and Type | Method and Description |
---|---|
protected int |
configureDumpHeadlineLength() |
protected int |
configureDumpMaxElementsPrinted() |
protected ToString |
copyDumpStringValues(ToString s) |
protected DumpString |
copyToStringValues(DumpString s) |
protected java.lang.String |
createDumpHeader() |
java.lang.String |
toDumpString()
Note that this method returns a String with platform specific line breaks.
|
DumpString |
toDumpString(DumpString s)
This method allows subclasses to add values to the existing DumpString of the superclass.
|
java.lang.String |
toString()
Returns a single line String that shows the values of the most important
state variables of this object.
|
ToString |
toString(ToString s)
This method allows subclasses to add values to the existing ToString of the superclass.
|
public java.lang.String toDumpString()
toDumpString
in interface Dumpable
public DumpString toDumpString(DumpString s)
Dumpable
toDumpString
in interface Dumpable
public java.lang.String toString()
Dumpable
public ToString toString(ToString s)
Dumpable
protected DumpString copyToStringValues(DumpString s)
protected java.lang.String createDumpHeader()
protected int configureDumpHeadlineLength()
protected int configureDumpMaxElementsPrinted()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.