/** * Closes element, appending "</", element name and ">". * * <p>Ex: "</div>". * * @param name The name of the element to close * @return a reference to this builder. */ public MarkupBuilder closeElement(String name) { buffer.append(MarkupUtils.closeElement(name)); return this; }
/** * End open element appending ">". * * <p>Ex: ">" * * @return a reference to this builder. */ public MarkupBuilder endOpenElement() { buffer.append(MarkupUtils.endOpenElement()); return this; }
/** * Start open element, appending "<" plus element name. * * <p>Ex: "<div" * * @param name The name of the element to start * @return a reference to this builder. */ public MarkupBuilder startOpenElement(String name) { buffer.append(MarkupUtils.startOpenElement(name)); return this; }
/** * Append a comment. * * <p>Ex: <!-- comment --> * * @param comment The comment to append. * @return a reference to this builder. */ public MarkupBuilder appendComment(String comment) { buffer.append(MarkupUtils.appendComment(comment)); return this; }
public MarkupBuilder appendNullableAttribute(String name, String value) { buffer.append(MarkupUtils.appendNullableAttribute(name, value)); return this; }
/** * Appends text to this builder. * * @param text The text to append. * @return a reference to this builder. */ public MarkupBuilder appendText(String text) { buffer.append(MarkupUtils.appendText(text)); return this; }