com.evolveum.midpoint.util
Class PrettyPrinter

java.lang.Object
  extended by com.evolveum.midpoint.util.PrettyPrinter

public class PrettyPrinter
extends Object

Author:
semancik

Constructor Summary
PrettyPrinter()
           
 
Method Summary
static String prettyPrint(Collection<?> collection)
           
static String prettyPrint(Collection<?> collection, int maxItems)
           
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 void registerPrettyPrinter(Class<?> printerClass)
           
static void setDefaultNamespacePrefix(String prefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrettyPrinter

public PrettyPrinter()
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(QName qname)

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(Node node)

prettyPrint

public static String prettyPrint(Element element)

prettyPrint

public static String prettyPrint(Element element,
                                 boolean displayTag)

prettyPrint

public static String prettyPrint(Object[] value)

prettyPrint

public static String prettyPrint(Object value)

registerPrettyPrinter

public static void registerPrettyPrinter(Class<?> printerClass)


Copyright © 2013 evolveum. All Rights Reserved.