Class SharedTagContent.Content<T>

java.lang.Object
com.webfirmframework.wffweb.tag.html.SharedTagContent.Content<T>
Type Parameters:
T -
All Implemented Interfaces:
Serializable
Enclosing class:
SharedTagContent<T>

public static final class SharedTagContent.Content<T> extends Object implements Serializable
This is a serializable record class for handling content in SharedTagContent object.
See Also:
  • Constructor Details

    • Content

      public Content(T content, boolean contentTypeHtml)
      Parameters:
      content - the content to be embedded in the consumer tags.
      contentTypeHtml - true to treat the content as HTML when embedding in the consumer tags otherwise false. Default value is false.
    • Content

      public Content(T content)
      Note: contentTypeHtml will be set as false
      Parameters:
      content - the content to be embedded in the consumer tags as plain text.
      Since:
      3.1.0
  • Method Details

    • getContent

      @Deprecated public T getContent()
      Deprecated.
      As it is record class no need to use getter method instead use content().This method will be removed in future release.
      Returns:
      the content
    • isContentTypeHtml

      @Deprecated public boolean isContentTypeHtml()
      Deprecated.
      As it is record class no need to use getter method instead use contentTypeHtml(). This method will be removed in future release.
      Returns:
      true or false
    • content

      public T content()
      Returns:
      the content
      Since:
      3.0.15
    • contentTypeHtml

      public boolean contentTypeHtml()
      Denotes whether the content type to be treated as HTML when embedding in the consumer tags.
      Returns:
      true or false
      Since:
      3.0.15
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object