/** * Creates a multi line JSON like string for the execution context * * @param executionContext The ExecutionContext * @return The String representation */ public static String toString(ExecutionContext executionContext) { Stack<Object> stack = new Stack<Object>(); stack.push(executionContext); StringBuilder builder = new StringBuilder(); builder.append("BeanContext : "); builder.append(toString(executionContext.getBeanContext().getBeanMap(), stack, new ArrayList<String>())); builder.append(NL); builder.append(NL); builder.append("Attributes : "); builder.append(toString(executionContext.getAttributes(), stack, EXECUTION_CONTEXT_FILTER_LIST)); return builder.toString(); }
/** * Creates a multi line JSON like string for the execution context * * @param executionContext The ExecutionContext * @return The String representation */ public static String toString(ExecutionContext executionContext) { Stack<Object> stack = new Stack<Object>(); stack.push(executionContext); StringBuilder builder = new StringBuilder(); builder.append("BeanContext : "); builder.append(toString(executionContext.getBeanContext().getBeanMap(), stack, new ArrayList<String>())); builder.append(NL); builder.append(NL); builder.append("Attributes : "); builder.append(toString(executionContext.getAttributes(), stack, EXECUTION_CONTEXT_FILTER_LIST)); return builder.toString(); }
/** * Creates a multi line JSON like string for the execution context * * @param executionContext The ExecutionContext * @return The String representation */ public static String toString(ExecutionContext executionContext) { Stack<Object> stack = new Stack<Object>(); stack.push(executionContext); StringBuilder builder = new StringBuilder(); builder.append("BeanContext : "); builder.append(toString(executionContext.getBeanContext().getBeanMap(), stack, new ArrayList<String>())); builder.append(NL); builder.append(NL); builder.append("Attributes : "); builder.append(toString(executionContext.getAttributes(), stack, EXECUTION_CONTEXT_FILTER_LIST)); return builder.toString(); }
/** * Creates a multi line JSON like string for the execution context * * @param executionContext The ExecutionContext * @return The String representation */ public static String toString(ExecutionContext executionContext) { Stack<Object> stack = new Stack<Object>(); stack.push(executionContext); StringBuilder builder = new StringBuilder(); builder.append("BeanContext : "); builder.append(toString(executionContext.getBeanContext().getBeanMap(), stack, new ArrayList<String>())); builder.append(NL); builder.append(NL); builder.append("Attributes : "); builder.append(toString(executionContext.getAttributes(), stack, EXECUTION_CONTEXT_FILTER_LIST)); return builder.toString(); }