public static void debugDump(StringBuilder sb, ObjectReferenceType ref, int indent) { indentDebugDump(sb, indent); // TODO: Maybe more detailed dump later sb.append(prettyPrint(ref)); }
@Override public String debugDump(int indent) { StringBuilder sb = new StringBuilder(); SchemaDebugUtil.indentDebugDump(sb, indent); sb.append("Script execution "); sb.append(toStringInternal()); return sb.toString(); }
public static String debugDumpXsdAnyProperties(Collection<?> xsdAnyCollection, int indent) { StringBuilder sb = new StringBuilder(); indentDebugDump(sb, indent); sb.append(getCollectionOpeningSymbol(xsdAnyCollection)); for (Object element : xsdAnyCollection) { sb.append("\n"); indentDebugDump(sb, indent+1); sb.append(prettyPrintElementAsProperty(element)); } sb.append("\n"); indentDebugDump(sb, indent); sb.append(getCollectionClosingSymbol(xsdAnyCollection)); return sb.toString(); }
public static void debugDump(StringBuilder sb, Collection<ObjectReferenceType> refs, int indent) { Iterator<ObjectReferenceType> iterator = refs.iterator(); while (iterator.hasNext()) { ObjectReferenceType ref = iterator.next(); if (ref == null) { indentDebugDump(sb, indent + 1); sb.append("null"); } else { debugDump(sb, ref, indent + 1); } if (iterator.hasNext()) { sb.append("\n"); } } }
public static <K, V> void debugDumpMapSingleLine(StringBuilder sb, Map<K, V> map, int indent) { Iterator<Entry<K, V>> i = map.entrySet().iterator(); while (i.hasNext()) { Entry<K,V> entry = i.next(); indentDebugDump(sb,indent); sb.append(prettyPrint(entry.getKey())); sb.append(" => "); V value = entry.getValue(); if (value == null) { sb.append("null"); } else { sb.append(value); } if (i.hasNext()) { sb.append("\n"); } } }
public static String debugDump(Collection<? extends DebugDumpable> dumpables, int indent) { StringBuilder sb = new StringBuilder(); indentDebugDump(sb, indent); sb.append(getCollectionOpeningSymbol(dumpables)); if (!dumpables.isEmpty()) { sb.append("\n"); for (DebugDumpable dd : dumpables) { if (dd == null) { indentDebugDump(sb, indent + 1); sb.append("null"); } else { sb.append(dd.debugDump(indent + 1)); } sb.append("\n"); } indentDebugDump(sb, indent); } sb.append(getCollectionClosingSymbol(dumpables)); return sb.toString(); }
public static <K, V extends DebugDumpable> void debugDumpMapMultiLine(StringBuilder sb, Map<K, V> map, int indent) { Iterator<Entry<K, V>> i = map.entrySet().iterator(); while (i.hasNext()) { Entry<K,V> entry = i.next(); indentDebugDump(sb,indent); sb.append(prettyPrint(entry.getKey())); sb.append(" => "); V value = entry.getValue(); if (value == null) { sb.append("null"); } else { sb.append("\n"); sb.append(value.debugDump(indent+1)); } if (i.hasNext()) { sb.append("\n"); } } }
@Override public String debugDump(int indent) { StringBuilder sb = new StringBuilder(); SchemaDebugUtil.indentDebugDump(sb, indent); sb.append("ResourceEventDescription("); sb.append(sourceChannel); sb.append(")\n"); SchemaDebugUtil.indentDebugDump(sb, indent+1); SchemaDebugUtil.indentDebugDump(sb, indent+1); SchemaDebugUtil.indentDebugDump(sb, indent+1);
public String formatVariables() { StringBuilder sb = new StringBuilder(); Iterator<Entry<QName, Object>> i = variables.entrySet().iterator(); while (i.hasNext()) { Entry<QName, Object> entry = i.next(); SchemaDebugUtil.indentDebugDump(sb, 1); sb.append(SchemaDebugUtil.prettyPrint(entry.getKey())).append(": "); Object value = entry.getValue(); if (value instanceof DebugDumpable) { sb.append("\n"); sb.append(((DebugDumpable)value).debugDump(2)); } else if (value instanceof Element) { sb.append("\n"); sb.append(DOMUtil.serializeDOMToString(((Element)value))); } else { sb.append(SchemaDebugUtil.prettyPrint(value)); } if (i.hasNext()) { sb.append("\n"); } } return sb.toString(); }
@Override public String debugDump(int indent) { StringBuilder sb = new StringBuilder(); SchemaDebugUtil.indentDebugDump(sb, indent); sb.append("ResourceObjectShadowChangeDescription("); sb.append(sourceChannel); sb.append(")\n"); SchemaDebugUtil.indentDebugDump(sb, indent+1); sb.append("resource:"); if (resource == null) { SchemaDebugUtil.indentDebugDump(sb, indent+1); SchemaDebugUtil.indentDebugDump(sb, indent+1); SchemaDebugUtil.indentDebugDump(sb, indent+1); SchemaDebugUtil.indentDebugDump(sb, indent+1); sb.append("unrelatedChange: ").append(unrelatedChange); SchemaDebugUtil.indentDebugDump(sb, indent+1); sb.append("simulate: ").append(simulate);
@Override public String debugDump(int indent) { StringBuilder sb = new StringBuilder(); SchemaDebugUtil.indentDebugDump(sb, indent); sb.append("ResourceOperationDescription("); sb.append(sourceChannel); sb.append(")\n"); SchemaDebugUtil.indentDebugDump(sb, indent+1); sb.append("resource:"); if (resource == null) { SchemaDebugUtil.indentDebugDump(sb, indent+1); sb.append("objectDelta:"); if (objectDelta == null) { SchemaDebugUtil.indentDebugDump(sb, indent+1); sb.append("currentShadow:"); if (currentShadow == null) { SchemaDebugUtil.indentDebugDump(sb, indent+1); sb.append("result:"); if (result == null) {
public String debugDump(int indent, boolean showTriples) { StringBuilder sb = new StringBuilder(); SchemaDebugUtil.indentDebugDump(sb, indent); sb.append("PROJECTION "); sb.append(getObjectTypeClass() == null ? "null" : getObjectTypeClass().getSimpleName()); SchemaDebugUtil.indentDebugDump(sb, indent + 1); sb.append("OID: ").append(getOid()); sb.append(", wave ").append(wave);