Пример #1
0
  /**
   * Closes element, appending "</", element name and ">".
   *
   * <p>Ex: &quot;&lt;/div&gt&quot;.
   *
   * @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;
  }
Пример #2
0
  /**
   * End open element appending &quot;&gt;&quot;.
   *
   * <p>Ex: &quot;&gt;&quot;
   *
   * @return a reference to this builder.
   */
  public MarkupBuilder endOpenElement() {

    buffer.append(MarkupUtils.endOpenElement());

    return this;
  }
Пример #3
0
  /**
   * Start open element, appending &quot;&lt;&quot; plus element name.
   *
   * <p>Ex: &quot;&lt;div&quot;
   *
   * @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;
  }
Пример #4
0
  /**
   * Append a comment.
   *
   * <p>Ex: &lt;!-- comment --&gt;
   *
   * @param comment The comment to append.
   * @return a reference to this builder.
   */
  public MarkupBuilder appendComment(String comment) {

    buffer.append(MarkupUtils.appendComment(comment));

    return this;
  }
Пример #5
0
  public MarkupBuilder appendNullableAttribute(String name, String value) {

    buffer.append(MarkupUtils.appendNullableAttribute(name, value));

    return this;
  }
Пример #6
0
  /**
   * 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;
  }