Class MinXHTML

java.lang.Object
com.io7m.minisite.core.internal.MinXHTML

public final class MinXHTML
extends java.lang.Object
Functions to generate XHTML elements.
  • Field Summary

    Fields
    Modifier and Type Field Description
    static java.lang.String XHTML
    The XHTML namespace.
  • Method Summary

    Modifier and Type Method Description
    static org.w3c.dom.Element h2​(org.w3c.dom.Document document, java.lang.String text)
    Generate an h2 element.
    static org.w3c.dom.Element link​(org.w3c.dom.Document document, java.lang.String target, java.lang.String text)
    Generate a link element.
    static org.w3c.dom.Element listItem​(org.w3c.dom.Document document, org.w3c.dom.Element e)
    Generate a list item element.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • XHTML

      public static final java.lang.String XHTML
      The XHTML namespace.
      See Also:
      Constant Field Values
  • Method Details

    • h2

      public static org.w3c.dom.Element h2​(org.w3c.dom.Document document, java.lang.String text)
      Generate an h2 element.
      Parameters:
      document - The document owner
      text - The element text
      Returns:
      The element
    • listItem

      public static org.w3c.dom.Element listItem​(org.w3c.dom.Document document, org.w3c.dom.Element e)
      Generate a list item element.
      Parameters:
      document - The document owner
      e - The element
      Returns:
      The element
    • link

      public static org.w3c.dom.Element link​(org.w3c.dom.Document document, java.lang.String target, java.lang.String text)
      Generate a link element.
      Parameters:
      document - The document owner
      target - The link target
      text - The link text
      Returns:
      The element