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(); }
@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(); } }
DebugUtil.indentDebugDump(sb, indent); PrismPrettyPrinter.debugDumpValue(sb, indent, value, prismContext, null, null);
@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);