Interface HtmlTagBuilder


public interface HtmlTagBuilder
Since:
3.9.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns builder for appending content of this tag, never returns null.
    Returns builder for setting attributes of this tag, never returns null.
    void
    This method will be only for performance improvements in the future, but now it should be called after the client is finished adding content, because it ensures interoperability with some old code.
  • Method Details

    • finished

      void finished()
      This method will be only for performance improvements in the future, but now it should be called after the client is finished adding content, because it ensures interoperability with some old code.
      Throws:
      IllegalStateException - if already was called before
    • attributes

      @NotNull HtmlAttributesBuilder attributes()
      Returns builder for setting attributes of this tag, never returns null.
      Throws:
      IllegalStateException - after finished() was called.
    • append

      @NotNull HtmlContentBuilder append()
      Returns builder for appending content of this tag, never returns null. Can be called multiple times on the same instance and it will return always the same instance of the content builder
      Throws:
      IllegalStateException - after finished() was called.