public static void printTree(Object [] root, Writer out) { if (null == root) { indentPrintln(out, "null"); return; } Object obj; for (int i = 0; i < root.length; i++) { obj = root[i]; if (null == obj) { indentPrintln(out, "null"); } else { if (obj.getClass().isArray()) { curDepth++; printTree((Object [])obj, out); curDepth--; } else { indentPrintln(out, obj.toString()); } } } }
public static void printTree(Object [] root, Writer out) { if (null == root) { indentPrintln(out, "null"); return; } Object obj; for (int i = 0; i < root.length; i++) { obj = root[i]; if (null == obj) { indentPrintln(out, "null"); } else { if (obj.getClass().isArray()) { curDepth++; printTree((Object [])obj, out); curDepth--; } else { indentPrintln(out, obj.toString()); } } } }
public static void printList(List list, Logger out) { for (Object cur : list) { if (cur instanceof List) { curDepth++; printList((List)cur, out); curDepth--; } else { indentPrintln(out, cur); } } }
public static void printList(List list, Logger out) { for (Object cur : list) { if (cur instanceof List) { curDepth++; printList((List)cur, out); curDepth--; } else { indentPrintln(out, cur); } } }
public static void printTree(Object [] root, Writer out) { if (null == root) { indentPrintln(out, "null"); return; } Object obj; for (int i = 0; i < root.length; i++) { obj = root[i]; if (null == obj) { indentPrintln(out, "null"); } else { if (obj.getClass().isArray()) { curDepth++; printTree((Object [])obj, out); curDepth--; } else { indentPrintln(out, obj.toString()); } } } }
public static void printList(List list, Logger out) { for (Object cur : list) { if (cur instanceof List) { curDepth++; printList((List)cur, out); curDepth--; } else { indentPrintln(out, cur); } } }
public static void printList(List list, Logger out) { for (Object cur : list) { if (cur instanceof List) { curDepth++; printList((List)cur, out); curDepth--; } else { indentPrintln(out, cur); } } }
public static void printTree(Object [] root, Writer out) { if (null == root) { indentPrintln(out, "null"); return; } Object obj; for (int i = 0; i < root.length; i++) { obj = root[i]; if (null == obj) { indentPrintln(out, "null"); } else { if (obj.getClass().isArray()) { curDepth++; printTree((Object [])obj, out); curDepth--; } else { indentPrintln(out, obj.toString()); } } } }
public static void printTree(Object [] root, Writer out) { if (null == root) { indentPrintln(out, "null"); return; } /* PENDING indentPrintln(out, "===>Type:" + root.getComponentType()); */ // drill down to the bottom of the first element in the array boolean foundBottom = false; Object [] myState = root; while (!foundBottom) { Object state = myState[0]; foundBottom = !state.getClass().isArray(); if (!foundBottom) { myState = (Object []) state; } } indentPrintln(out, "type:" + myState[8]); curDepth++; root = (Object []) root[1]; for (int i = 0; i < root.length; i++) { printTree((Object []) root[i], out); } curDepth--; } //
public static void printTree(Object [] root, Logger out) { if (null == root) { indentPrintln(out, "null"); return; } Object obj; for (int i = 0; i < root.length; i++) { obj = root[i]; if (null == obj) { indentPrintln(out, "null"); } else { if (obj.getClass().isArray()) { curDepth++; printTree((Object [])obj, out); curDepth--; } else if (obj instanceof List) { printList((List) obj, out); } else { indentPrintln(out, obj); } } } }
public static void printTree(Object [] root, Logger out) { if (null == root) { indentPrintln(out, "null"); return; } Object obj; for (int i = 0; i < root.length; i++) { obj = root[i]; if (null == obj) { indentPrintln(out, "null"); } else { if (obj.getClass().isArray()) { curDepth++; printTree((Object [])obj, out); curDepth--; } else if (obj instanceof List) { printList((List) obj, out); } else { indentPrintln(out, obj); } } } }
public static void printTree(Object [] root, Logger out) { if (null == root) { indentPrintln(out, "null"); return; } Object obj; for (int i = 0; i < root.length; i++) { obj = root[i]; if (null == obj) { indentPrintln(out, "null"); } else { if (obj.getClass().isArray()) { curDepth++; printTree((Object [])obj, out); curDepth--; } else if (obj instanceof List) { printList((List) obj, out); } else { indentPrintln(out, obj); } } } }
public static void printTree(Object [] root, Logger out) { if (null == root) { indentPrintln(out, "null"); return; } Object obj; for (int i = 0; i < root.length; i++) { obj = root[i]; if (null == obj) { indentPrintln(out, "null"); } else { if (obj.getClass().isArray()) { curDepth++; printTree((Object [])obj, out); curDepth--; } else if (obj instanceof List) { printList((List) obj, out); } else { indentPrintln(out, obj); } } } }
public static void simplePrintTree(UIComponent root, String duplicateId, Writer out) { if (null == root) { return; } if (duplicateId.equals(root.getId())) { indentPrintln(out, "+id: " + root.getId() + " <==============="); } else { indentPrintln(out, "+id: " + root.getId()); } indentPrintln(out, " type: " + root.toString()); curDepth++; // print all the facets of this component for (UIComponent uiComponent : root.getFacets().values()) { simplePrintTree(uiComponent, duplicateId, out); } // print all the children of this component for (UIComponent uiComponent : root.getChildren()) { simplePrintTree(uiComponent, duplicateId, out); } curDepth--; }
public static void simplePrintTree(UIComponent root, String duplicateId, Writer out) { if (null == root) { return; } if (duplicateId.equals(root.getClientId())) { indentPrintln(out, "+id: " + root.getId() + " <==============="); } else { indentPrintln(out, "+id: " + root.getId()); } indentPrintln(out, " type: " + root.toString()); curDepth++; // print all the facets of this component for (UIComponent uiComponent : root.getFacets().values()) { simplePrintTree(uiComponent, duplicateId, out); } // print all the children of this component for (UIComponent uiComponent : root.getChildren()) { simplePrintTree(uiComponent, duplicateId, out); } curDepth--; }
public static void simplePrintTree(UIComponent root, String duplicateId, Writer out) { if (null == root) { return; } if (duplicateId.equals(root.getClientId())) { indentPrintln(out, "+id: " + root.getId() + " <==============="); } else { indentPrintln(out, "+id: " + root.getId()); } indentPrintln(out, " type: " + root.toString()); curDepth++; // print all the facets of this component for (UIComponent uiComponent : root.getFacets().values()) { simplePrintTree(uiComponent, duplicateId, out); } // print all the children of this component for (UIComponent uiComponent : root.getChildren()) { simplePrintTree(uiComponent, duplicateId, out); } curDepth--; }
public static void simplePrintTree(UIComponent root, String duplicateId, Writer out) { if (null == root) { return; } if (duplicateId.equals(root.getClientId())) { indentPrintln(out, "+id: " + root.getId() + " <==============="); } else { indentPrintln(out, "+id: " + root.getId()); } indentPrintln(out, " type: " + root.toString()); curDepth++; // print all the facets of this component for (UIComponent uiComponent : root.getFacets().values()) { simplePrintTree(uiComponent, duplicateId, out); } // print all the children of this component for (UIComponent uiComponent : root.getChildren()) { simplePrintTree(uiComponent, duplicateId, out); } curDepth--; }
public static void simplePrintTree(UIComponent root, String duplicateId, Writer out) { if (null == root) { return; } if (duplicateId.equals(root.getClientId())) { indentPrintln(out, "+id: " + root.getId() + " <==============="); } else { indentPrintln(out, "+id: " + root.getId()); } indentPrintln(out, " type: " + root.toString()); curDepth++; // print all the facets of this component for (UIComponent uiComponent : root.getFacets().values()) { simplePrintTree(uiComponent, duplicateId, out); } // print all the children of this component for (UIComponent uiComponent : root.getChildren()) { simplePrintTree(uiComponent, duplicateId, out); } curDepth--; }
indentPrintln(out, "id:" + root.getId()); indentPrintln(out, "type:" + root.getClass().getName()); } catch (Exception e) { indentPrintln(out, " { SelectItem(s) not resolvable at this point in time }"); indentPrintln(out, " {"); while (items.hasNext()) { SelectItem curItem = items.next(); indentPrintln(out, "\t value = " + curItem.getValue() indentPrintln(out, " }"); indentPrintln(out, "expression/value = " + ve.getExpressionString() + " : " + value); } else { indentPrintln(out, "value = " + value); indentPrintln(out, "attr = " + attrName + " : [" + expr + " : " + val + " ]"); } else { indentPrintln(out, "attr = " + attrName + " : " + val);
indentPrintln(out, "id:" + root.getId()); indentPrintln(out, "type:" + root.getClass().getName()); } catch (Exception e) { indentPrintln(out, " { SelectItem(s) not resolvable at this point in time }"); indentPrintln(out, " {"); while (items.hasNext()) { SelectItem curItem = items.next(); indentPrintln(out, "\t value = " + curItem.getValue() indentPrintln(out, " }"); indentPrintln(out, "expression/value = " + ve.getExpressionString() + " : " + value); } else { indentPrintln(out, "value = " + value); indentPrintln(out, "attr = " + attrName + " : [" + expr + " : " + val + " ]"); } else { indentPrintln(out, "attr = " + attrName + " : " + val);