Package com.evolveum.midpoint.util
Class PrettyPrinter
- java.lang.Object
-
- com.evolveum.midpoint.util.PrettyPrinter
-
public class PrettyPrinter extends Object
- Author:
- semancik
-
-
Constructor Summary
Constructors Constructor Description PrettyPrinter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
debugDump(Object value, int indent)
static List<Class<?>>
getPrettyPrinters()
static String
prettyPrint(byte[] value)
static String
prettyPrint(Object value)
static String
prettyPrint(Object[] value)
static String
prettyPrint(Collection<?> collection)
static String
prettyPrint(Collection<?> collection, int maxItems)
static String
prettyPrint(Date date)
static String
prettyPrint(List<Element> list)
Assumes that all elements in the lists have the same QNamestatic String
prettyPrint(QName qname)
static String
prettyPrint(Element element)
static String
prettyPrint(Element element, boolean displayTag)
static String
prettyPrint(Node node)
static String
qnameToString(QName name)
static void
registerPrettyPrinter(Class<?> printerClass)
static void
setDefaultNamespacePrefix(String prefix)
static void
shortDump(StringBuilder sb, Object value)
-
-
-
Method Detail
-
setDefaultNamespacePrefix
public static void setDefaultNamespacePrefix(String prefix)
-
prettyPrint
public static String prettyPrint(Collection<?> collection)
-
prettyPrint
public static String prettyPrint(Collection<?> collection, int maxItems)
-
prettyPrint
public static String prettyPrint(List<Element> list)
Assumes that all elements in the lists have the same QName- Parameters:
list
-- Returns:
-
prettyPrint
public static String prettyPrint(byte[] value)
-
shortDump
public static void shortDump(StringBuilder sb, Object value)
-
registerPrettyPrinter
public static void registerPrettyPrinter(Class<?> printerClass)
-
-