com.evolveum.midpoint.common
Class DebugUtil

java.lang.Object
  extended by com.evolveum.midpoint.common.DebugUtil
All Implemented Interfaces:
ObjectFormatter

public class DebugUtil
extends java.lang.Object
implements ObjectFormatter

Author:
semancik

Constructor Summary
DebugUtil()
           
 
Method Summary
static java.lang.String debugDump(java.util.Collection<? extends DebugDumpable> dumpables)
           
static java.lang.String debugDump(java.util.Collection<? extends DebugDumpable> dumpables, int indent)
           
 java.lang.String format(java.lang.Object o)
           
static void indentDebugDump(java.lang.StringBuilder sb, int indent)
           
static java.lang.String prettyPrint(AccountShadowType object, boolean showContent)
           
static java.lang.String prettyPrint(java.util.Collection<?> collection)
           
static java.lang.String prettyPrint(org.w3c.dom.Element element)
           
static java.lang.String prettyPrint(org.w3c.dom.Element element, boolean displayTag)
           
static java.lang.String prettyPrint(javax.xml.bind.JAXBElement<?> element)
           
static java.lang.String prettyPrint(java.util.List<org.w3c.dom.Element> list)
          Assumes that all elements in the lists have the same QName
static java.lang.String prettyPrint(org.w3c.dom.Node node)
           
static java.lang.String prettyPrint(java.lang.Object value)
           
static java.lang.String prettyPrint(ObjectChangeAdditionType change)
           
static java.lang.String prettyPrint(ObjectChangeDeletionType change)
           
static java.lang.String prettyPrint(ObjectChangeModificationType change)
           
static java.lang.String prettyPrint(ObjectChangeType change)
           
static java.lang.String prettyPrint(ObjectListType list)
           
static java.lang.String prettyPrint(ObjectModificationType objectChange)
           
static java.lang.String prettyPrint(ObjectType object)
           
static java.lang.String prettyPrint(ObjectType object, boolean showContent)
           
static java.lang.String prettyPrint(OperationResultType resultType)
           
static java.lang.String prettyPrint(PagingType paging)
           
static java.lang.String prettyPrint(PropertyAvailableValuesListType propertyAvailableValues)
           
static java.lang.String prettyPrint(PropertyModificationType change)
           
static java.lang.String prettyPrint(PropertyReferenceListType reflist)
           
static java.lang.String prettyPrint(PropertyReferenceType ref)
           
static java.lang.String prettyPrint(QueryType query)
           
static java.lang.String prettyPrint(ResourceObjectShadowChangeDescriptionType change)
           
static java.lang.String prettyPrint(ResourceObjectShadowListType shadowListType)
           
static java.lang.String prettyPrint(UnknownJavaObjectType xml)
           
static java.lang.String resourceFromShadow(ResourceObjectShadowType shadow)
           
static java.lang.String toReadableString(ResourceObjectShadowType shadow)
           
static java.lang.String toReadableString(UserType user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugUtil

public DebugUtil()
Method Detail

debugDump

public static java.lang.String debugDump(java.util.Collection<? extends DebugDumpable> dumpables)

debugDump

public static java.lang.String debugDump(java.util.Collection<? extends DebugDumpable> dumpables,
                                         int indent)

indentDebugDump

public static void indentDebugDump(java.lang.StringBuilder sb,
                                   int indent)

prettyPrint

public static java.lang.String prettyPrint(java.util.Collection<?> collection)

prettyPrint

public static java.lang.String prettyPrint(PropertyReferenceListType reflist)

prettyPrint

public static java.lang.String prettyPrint(PropertyReferenceType ref)

prettyPrint

public static java.lang.String prettyPrint(ObjectType object)

prettyPrint

public static java.lang.String prettyPrint(ObjectType object,
                                           boolean showContent)

prettyPrint

public static java.lang.String prettyPrint(OperationResultType resultType)

prettyPrint

public static java.lang.String prettyPrint(AccountShadowType object,
                                           boolean showContent)

prettyPrint

public static java.lang.String prettyPrint(ObjectModificationType objectChange)

prettyPrint

public static java.lang.String prettyPrint(PropertyModificationType change)

prettyPrint

public static java.lang.String prettyPrint(java.util.List<org.w3c.dom.Element> list)
Assumes that all elements in the lists have the same QName

Parameters:
list -
Returns:

prettyPrint

public static java.lang.String prettyPrint(org.w3c.dom.Node node)

prettyPrint

public static java.lang.String prettyPrint(org.w3c.dom.Element element)

prettyPrint

public static java.lang.String prettyPrint(org.w3c.dom.Element element,
                                           boolean displayTag)

prettyPrint

public static java.lang.String prettyPrint(ObjectListType list)

prettyPrint

public static java.lang.String prettyPrint(PropertyAvailableValuesListType propertyAvailableValues)

prettyPrint

public static java.lang.String prettyPrint(ResourceObjectShadowListType shadowListType)

prettyPrint

public static java.lang.String prettyPrint(QueryType query)

prettyPrint

public static java.lang.String prettyPrint(PagingType paging)

prettyPrint

public static java.lang.String prettyPrint(ResourceObjectShadowChangeDescriptionType change)

prettyPrint

public static java.lang.String prettyPrint(ObjectChangeAdditionType change)

prettyPrint

public static java.lang.String prettyPrint(ObjectChangeModificationType change)

prettyPrint

public static java.lang.String prettyPrint(ObjectChangeDeletionType change)

prettyPrint

public static java.lang.String prettyPrint(ObjectChangeType change)

resourceFromShadow

public static java.lang.String resourceFromShadow(ResourceObjectShadowType shadow)

toReadableString

public static java.lang.String toReadableString(ResourceObjectShadowType shadow)

toReadableString

public static java.lang.String toReadableString(UserType user)

prettyPrint

public static java.lang.String prettyPrint(javax.xml.bind.JAXBElement<?> element)

prettyPrint

public static java.lang.String prettyPrint(UnknownJavaObjectType xml)

prettyPrint

public static java.lang.String prettyPrint(java.lang.Object value)

format

public java.lang.String format(java.lang.Object o)
Specified by:
format in interface ObjectFormatter


Copyright © 2011 evolveum. All Rights Reserved.