public String details(boolean html) { StringBuilder sb = new StringBuilder(); sb.append( "Network contains " + GeneralUtils.getBold(this.getNumberSingleInputs(), html) + " inputs in total" + GeneralUtils.getEndLine(html) + GeneralUtils.getEndLine(html)); Enumeration keys = this.myElecInputs.keys(); String indent = " "; if (html) indent = " "; while (keys.hasMoreElements()) { String input = (String) keys.nextElement(); ArrayList<SingleElectricalInput> singleInputList = myElecInputs.get(input); sb.append( "Input: " + GeneralUtils.getBold(input, html) + " has " + GeneralUtils.getBold(singleInputList.size(), html) + " entries" + GeneralUtils.getEndLine(html)); for (int i = 0; (i < singleInputList.size()); i++) { sb.append( "Input " + i + ": " + singleInputList.get(i).details(html) + GeneralUtils.getEndLine(html)); if (singleInputList.get(i).getInstanceProps() != null) { sb.append( indent + "Input specific properties: " + singleInputList.get(i).getInstanceProps().details(html) + GeneralUtils.getEndLine(html)); } } sb.append(GeneralUtils.getEndLine(html)); } return sb.toString(); }