public class PrettyPrinter extends Object
For beans, the entire hierarchy of associations for each object is printed in a tree-like format. This is primarily used for testing.
Modifier and Type | Method and Description |
---|---|
static String |
print(Collection<String> packages,
Collection<Object> beans)
Print out a collection of beans in a relatively pleasing format.
|
static String |
print(Collection<String> packages,
Object object)
Pretty-print a single bean.
|
static String |
print(Collection<String> packages,
Object[] objects)
Print out a collection of objects in a relatively pleasing format.
|
public static String print(Collection<String> packages, Collection<Object> beans)
packages
- collection of Strings for inclusion of classes for printing. E.g. "ubic.gemma" would print all
classes in the ubic.gemma package (including subpackages). If empty, everything gets printed.beans
- Collection of beans.public static String print(Collection<String> packages, Object object)
packages
- collection of Strings for inclusion of classes for printing. E.g. "ubic.gemma" would print all
classes in the ubic.gemma package (including subpackages). If empty, everything gets printed.object
- public static String print(Collection<String> packages, Object[] objects)
packages
- collection of Strings for inclusion of classes for printing. E.g. "ubic.gemma" would print all
classes in the ubic.gemma package (including subpackages). If empty, everything gets printed.beans
- Collection of beans.Copyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.