\n");
+ pw.print("\t\t");
+ if (childs.isEmpty()) {
+ pw.print("No childeren.");
+ }
+ for (TreeNode n:childs) {
+ pw.print("\t\t\t ");
+ pw.print(n.namespace.getId());
+ pw.print(":");
+ pw.print(n.elementClass.getTag());
+ pw.print("\n");
+ }
+ pw.print(" | \n");
+ pw.print("\t
\n");
+ printTableEnd(pw);
+
+
printTableStart(pw,"Element Properties");
+ printTableRowSummary(pw,"id",""+ec.getId());
+ printTableRowSummary(pw,"tag",""+ec.getTag());
printTableRowSummary(pw,"objectClass",""+ec.getObjectClass());
printTableRowSummary(pw,"elementClass",""+ec.getElementClass());
printTableRowSummary(pw,"autoAttributes",""+ec.getAutoAttributes());
+ printTableRowSummary(pw,"skipPhases",printList(ec.getSkipPhases()));
printTableRowSummary(pw,"schemaContentBase",""+ec.getSchemaContentBase());
printTableRowSummary(pw,"schemaContentComplex",""+ec.getSchemaContentComplex());
printTableRowSummary(pw,"schemaContentMixed",""+ec.getSchemaContentMixed());
+ //printTableRowSummary(pw,"description",""+ec.getDescription());
printTableEnd(pw);
-
- printTableStart(pw,"Element Attributes");
- for (ElementClassAttribute attr:ec.getElementClassAttributes()) {
- printTableRowSummary(pw,attr.getName(),attr.getDescription());
- }
- printTableEnd(pw);
-
+ printElementAttributes(pw,ec.getElementClassAttributes());
if (ec.getObjectClass()!=null) {
printClassProperties(pw, ec.getObjectClass());
}
@@ -300,7 +548,8 @@ public class EldDocHtmlWriter {
printConfigurators(pw,iface.getElementConfigurators(),pathLocal);
printBindingHandlers(pw,iface.getElementBindingHandlers(),pathLocal);
- //iface.getElementClassAttributes()
+
+ printElementAttributes(pw,iface.getElementClassAttributes());
printBeanProperties(pw, iface);
printBottom(pw,pathPrefix);
@@ -366,11 +615,13 @@ public class EldDocHtmlWriter {
printHeader(pw,"BindingHandler ("+bind.getId()+")",pathPrefix);
printPageTitle(pw,"BindingHandler",bind.getId(),bind.getDescription());
+ /*
printTableStart(pw,"Child Classes");
for (Class> clazz:bind.getBindChildClasses()) {
printTableRowSummary(pw,"class",""+clazz.getName());
}
printTableEnd(pw);
+ */
printBeanProperties(pw, bind);
printBottom(pw,pathPrefix);
} finally {
@@ -458,12 +709,62 @@ public class EldDocHtmlWriter {
e.printStackTrace();
}
- printTableRowSummary(pw,n,""+value);
+ printTableRowSummary(pw,n,printValue(value));
}
}
printTableEnd(pw);
}
+ private String printValue(Object value) {
+ if (value==null) {
+ return "null";
+ }
+ if (value instanceof String) {
+ return (String)value;
+ }
+ if (value instanceof Class) {
+ return "class "+((Class>)value).getName();
+ }
+ if (value instanceof List) {
+ StringBuffer buf = new StringBuffer(100);
+ buf.append("[L: ");
+ List> l = (List>)value;
+ if (l.isEmpty()) {
+ buf.append("Empty");
+ }
+ for (Object o:l) {
+ buf.append(""+o);
+ buf.append(" ");
+ }
+ buf.append("]");
+ return buf.toString();
+ }
+ if (value instanceof Object[]) {
+ StringBuffer buf = new StringBuffer(100);
+ buf.append("[A: ");
+ Object[] l = (Object[])value;
+ if (l.length==0) {
+ buf.append("Empty");
+ }
+ for (Object o:l) {
+ buf.append(""+o);
+ buf.append(" ");
+ }
+ buf.append("]");
+ return buf.toString();
+ }
+
+ return value.toString();
+ }
+
+ private void printElementAttributes(PrintWriter pw,Collection