@ManagedObject(value="Dumpable Object") public interface Dumpable
| Modifier and Type | Method and Description |
|---|---|
default String |
dump() |
void |
dump(Appendable out,
String indent)
Dump this object (and children) into an Appendable using the provided indent after any new lines.
|
static String |
dump(Dumpable dumpable)
Utility method to implement
dump() by calling dump(Appendable, String) |
static void |
dumpContainer(Appendable out,
String indent,
Container object,
boolean last) |
static void |
dumpIterable(Appendable out,
String indent,
Iterable<?> iterable,
boolean last) |
static void |
dumpMapEntries(Appendable out,
String indent,
Map<?,?> map,
boolean last) |
static void |
dumpObject(Appendable out,
Object o)
Dump just an Object (but not it's contained items) to an Appendable.
|
static void |
dumpObjects(Appendable out,
String indent,
Object object,
Object... extraChildren)
Dump an Object, it's contained items and additional items to an
Appendable. |
default String |
dumpSelf()
The description of this/self found in the dump.
|
static Dumpable |
named(String name,
Object object) |
static final String KEY
@ManagedOperation(value="Dump the nested Object state as a String", impact="INFO") default String dump()
void dump(Appendable out, String indent) throws IOException
out - The appendable to dump toindent - The indent to apply after any new lines.IOException - if unable to write to Appendablestatic String dump(Dumpable dumpable)
dump() by calling dump(Appendable, String)dumpable - The dumpable to dumpdefault String dumpSelf()
static void dumpObject(Appendable out, Object o) throws IOException
out - The Appendable to dump too - The object to dump.IOException - May be thrown by the Appendablestatic void dumpObjects(Appendable out, String indent, Object object, Object... extraChildren) throws IOException
Appendable.
If the object in an Iterable or an Array, then its contained items
are also dumped.out - the Appendable to dump toindent - The indent to apply after any new linesobject - The object to dump. If the object is an instance
of Container, Stream, Iterable, Array or Map,
then children of the object a recursively dumped.extraChildren - Items to be dumped as children of the object, in addition to any discovered children of objectIOException - May be thrown by the Appendablestatic void dumpContainer(Appendable out, String indent, Container object, boolean last) throws IOException
IOExceptionstatic void dumpIterable(Appendable out, String indent, Iterable<?> iterable, boolean last) throws IOException
IOExceptionstatic void dumpMapEntries(Appendable out, String indent, Map<?,?> map, boolean last) throws IOException
IOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved