public class PrettyPrinter extends Object
Constructor and Description |
---|
PrettyPrinter() |
Modifier and Type | Method and Description |
---|---|
static String |
debugDump(Object value,
int indent) |
static List<Class<?>> |
getPrettyPrinters() |
static String |
prettyPrint(byte[] value) |
static String |
prettyPrint(Collection<?> collection) |
static String |
prettyPrint(Collection<?> collection,
int maxItems) |
static String |
prettyPrint(Date date) |
static String |
prettyPrint(Element element) |
static String |
prettyPrint(Element element,
boolean displayTag) |
static String |
prettyPrint(List<Element> list)
Assumes that all elements in the lists have the same QName
|
static String |
prettyPrint(Node node) |
static String |
prettyPrint(Object value) |
static String |
prettyPrint(Object[] value) |
static String |
prettyPrint(QName qname) |
static String |
qnameToString(QName name) |
static void |
registerPrettyPrinter(Class<?> printerClass) |
static void |
setDefaultNamespacePrefix(String prefix) |
static void |
shortDump(StringBuilder sb,
Object value) |
public static void setDefaultNamespacePrefix(String prefix)
public static String prettyPrint(Collection<?> collection)
public static String prettyPrint(Collection<?> collection, int maxItems)
public static String prettyPrint(List<Element> list)
list
- public static String prettyPrint(byte[] value)
public static void shortDump(StringBuilder sb, Object value)
public static void registerPrettyPrinter(Class<?> printerClass)
Copyright © 2020 Evolveum. All rights reserved.