Package com.io7m.minisite.core.internal
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.StringXHTMLThe XHTML namespace. -
Method Summary
Modifier and Type Method Description static org.w3c.dom.Elementh2(org.w3c.dom.Document document, java.lang.String text)Generate an h2 element.static org.w3c.dom.Elementlink(org.w3c.dom.Document document, java.lang.String target, java.lang.String text)Generate a link element.static org.w3c.dom.ElementlistItem(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 XHTMLThe 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 ownertext- 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 ownere- 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 ownertarget- The link targettext- The link text- Returns:
- The element
-