java.lang.Object
ch.tocco.nice2.optional.cms.impl.publish.output.freemarker.postprocessing.HeadElement

public class HeadElement extends Object
Represents the head element of an HTML document. This head element is immutable. All writing methods return a new instance.
  • Constructor Details

    • HeadElement

      public HeadElement()
    • HeadElement

      public HeadElement(String content)
    • HeadElement

      public HeadElement(String content, String startTag, String endTag)
  • Method Details

    • appendLine

      public HeadElement appendLine(String line)
      Get a new head element with the given line appended.
      Parameters:
      line - The line to append.
      Returns:
      a new head element with the line appended.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object