public static String debugDumpValue(int indent, Object value, PrismContext prismContext, QName elementName, String defaultLanguage) { StringBuilder sb = new StringBuilder(); DebugUtil.indentDebugDump(sb, indent); debugDumpValue(sb, indent, value, prismContext, elementName, defaultLanguage); return sb.toString(); }
public static String prettyPrint(PrismReferenceValue prv) { return prettyPrint(prv, true); }
public static String prettyPrint(ItemDeltaType deltaType) { if (deltaType == null) { return "null"; } StringBuilder sb = new StringBuilder("ItemDeltaType("); shortPrettyPrint(sb, deltaType); sb.append(")"); return sb.toString(); }
@Override public String debugDump(int indent) { StringBuilder sb = new StringBuilder(); DebugUtil.debugDumpLabelLn(sb, "process specification", indent); PrismPrettyPrinter.debugDumpValue(sb, indent+1, basicSpec, prismContext, ApprovalPolicyActionType.F_PROCESS_SPECIFICATION, PrismContext.LANG_YAML); sb.append("\n"); DebugUtil.debugDumpLabelLn(sb, "actions with rules", indent); for (Pair<ApprovalPolicyActionType, EvaluatedPolicyRule> actionWithRule : actionsWithRules) { DebugUtil.debugDumpLabelLn(sb, "action", indent+1); PrismPrettyPrinter.debugDumpValue(sb, indent+2, actionWithRule.getKey(), prismContext, PolicyActionsType.F_APPROVAL, PrismContext.LANG_YAML); sb.append("\n"); if (actionWithRule.getValue() != null) { sb.append("\n").append(actionWithRule.getValue().debugDump(indent + 2)); } } return sb.toString(); } }
public static String prettyPrint(ObjectDeltaType deltaType) { if (deltaType == null) { return "null"; } StringBuilder sb = new StringBuilder("ObjectDeltaType("); sb.append(deltaType.getOid()).append(" "); sb.append(deltaType.getChangeType()); sb.append(": "); if (deltaType.getObjectToAdd() != null) { sb.append(deltaType.getObjectToAdd()); } else { sb.append("["); Iterator<ItemDeltaType> iterator = deltaType.getItemDelta().iterator(); while (iterator.hasNext()) { ItemDeltaType itemDelta = iterator.next(); shortPrettyPrint(sb, itemDelta); if (iterator.hasNext()) { sb.append(", "); } } sb.append("]"); } sb.append(")"); return sb.toString(); }
DebugUtil.indentDebugDump(sb, indent); PrismPrettyPrinter.debugDumpValue(sb, indent, value, prismContext, null, null);
public static String debugDump(ObjectDeltaType deltaType, int indent) { StringBuilder sb = DebugUtil.createTitleStringBuilder(ObjectDeltaType.class, indent); if (deltaType == null) { sb.append("null"); return sb.toString(); } sb.append(deltaType.getOid()).append(" "); sb.append(deltaType.getChangeType()); if (deltaType.getObjectToAdd() != null) { sb.append("\n"); sb.append(deltaType.getObjectToAdd().asPrismObject().debugDump(indent + 1)); } else { Iterator<ItemDeltaType> iterator = deltaType.getItemDelta().iterator(); while (iterator.hasNext()) { sb.append("\n"); ItemDeltaType itemDelta = iterator.next(); DebugUtil.indentDebugDump(sb, indent + 1); shortPrettyPrint(sb, itemDelta); } } return sb.toString(); }
@Override public String debugDump(int indent) { StringBuilder sb = new StringBuilder(); DebugUtil.debugDumpLabelLn(sb, "EvaluatedPolicyRule " + (getName() != null ? getName() + " " : "") + "(triggers: " + triggers.size() + ")", indent); DebugUtil.debugDumpWithLabelLn(sb, "name", getName(), indent + 1); DebugUtil.debugDumpLabelLn(sb, "policyRuleType", indent + 1); DebugUtil.indentDebugDump(sb, indent + 2); PrismPrettyPrinter.debugDumpValue(sb, indent + 2, policyRuleType, prismContextForDebugDump, PolicyRuleType.COMPLEX_TYPE, PrismContext.LANG_XML); sb.append('\n'); DebugUtil.debugDumpWithLabelLn(sb, "assignmentPath", assignmentPath, indent + 1); DebugUtil.debugDumpWithLabelLn(sb, "triggers", triggers, indent + 1); DebugUtil.debugDumpWithLabelLn(sb, "directOwner", ObjectTypeUtil.toShortString(directOwner), indent + 1); DebugUtil.debugDumpWithLabel(sb, "rootObjects", assignmentPath != null ? String.valueOf(assignmentPath.getFirstOrderChain()) : null, indent + 1); return sb.toString(); }
} else { if (DebugUtil.isDetailedDebugDump()) { PrismPrettyPrinter.debugDumpValue(sb, indent + 1, realValue, prismContext, getElementName(), null); } else { sb.append("SS{"+realValue+"}"); T realValue = value.getValue(); if (DebugUtil.isDetailedDebugDump()) { PrismPrettyPrinter.debugDumpValue(sb, indent + 1, realValue, prismContext, getElementName(), null); } else { PrettyPrinter.shortDump(sb, realValue);