/** * Configuration * @param tab tab string */ public void setTab(String tab) { if (isConfigLocked()) { getLog().error("setTab() failure: configuration is locked"); } else { this.tab = tab; } }
public Tag get(String tag) { return tag(tag); }
/** * Render tag body * @param indent indentation string * @param s string builder */ protected void render_body(String indent, StringBuilder s) { String kidIndent = indent + tool.getTab(); for (Object o : children) { if (o instanceof Tag) { ((Tag)o).render(kidIndent, s); } else { s.append(kidIndent); s.append(o); } } }
public Tag wrap(String tag) { // make new tag Tag prnt = tool.tag(tag); // give root of new tag our parent prnt.root().parent(parent()); // make new tag our parent parent(prnt); return this; }