com.evolveum.midpoint.schema.util
Class DebugUtil

java.lang.Object
  extended by com.evolveum.midpoint.schema.util.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(AccountShadowType object, int indent)
           
static java.lang.String debugDump(java.util.Collection<? extends DebugDumpable> dumpables)
           
static java.lang.String debugDump(java.util.Collection<? extends DebugDumpable> dumpables, int indent)
           
static java.lang.String debugDump(ObjectType objectType, int indent)
           
static
<K,V extends DebugDumpable>
void
debugDumpMapMultiLine(java.lang.StringBuilder sb, java.util.Map<K,V> map, int indent)
           
static
<K,V> void
debugDumpMapSingleLine(java.lang.StringBuilder sb, java.util.Map<K,V> map, int indent)
           
static java.lang.String debugDumpXsdAnyProperties(java.util.Collection<?> xsdAnyCollection, int indent)
           
 java.lang.String format(java.lang.Object o)
           
static void indentDebugDump(java.lang.StringBuilder sb, int indent)
           
static java.lang.String prettyPrint(AccountConstructionType act)
           
static java.lang.String prettyPrint(AccountShadowType object)
           
static java.lang.String prettyPrint(AccountShadowType object, boolean showContent)
           
static java.lang.String prettyPrint(AssignmentType assignmentType)
           
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(ObjectReferenceType ref)
           
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(ProtectedStringType protectedStringType)
           
static java.lang.String prettyPrint(javax.xml.namespace.QName qname)
           
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 prettyPrint(ValueConstructionType vc)
           
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)

debugDumpXsdAnyProperties

public static java.lang.String debugDumpXsdAnyProperties(java.util.Collection<?> xsdAnyCollection,
                                                         int indent)

indentDebugDump

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

debugDumpMapMultiLine

public static <K,V extends DebugDumpable> void debugDumpMapMultiLine(java.lang.StringBuilder sb,
                                                                     java.util.Map<K,V> map,
                                                                     int indent)

debugDumpMapSingleLine

public static <K,V> void debugDumpMapSingleLine(java.lang.StringBuilder sb,
                                                java.util.Map<K,V> map,
                                                int indent)

debugDump

public static java.lang.String debugDump(ObjectType objectType,
                                         int indent)

prettyPrint

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

prettyPrint

public static java.lang.String prettyPrint(javax.xml.namespace.QName qname)

prettyPrint

public static java.lang.String prettyPrint(AssignmentType assignmentType)

prettyPrint

public static java.lang.String prettyPrint(AccountConstructionType act)

prettyPrint

public static java.lang.String prettyPrint(ValueConstructionType vc)

prettyPrint

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

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(ProtectedStringType protectedStringType)

prettyPrint

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

prettyPrint

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

prettyPrint

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

debugDump

public static java.lang.String debugDump(AccountShadowType object,
                                         int indent)

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 © 2012 evolveum. All Rights Reserved.