Package com.oorian.html
Class HtmlDocument
java.lang.Object
com.oorian.html.HtmlDocument
Abstract base class for generating complete HTML documents.
HtmlDocument provides the structural foundation for building HTML pages by managing
the document skeleton (DOCTYPE, html, head, body) and delegating content creation to
subclasses via the createHead(Head) and createBody(Body) template methods.
- Since:
- 2007
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new HtmlDocument with empty page attributes and child elements. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidcreateBody(Body body) Creates and populates the body section of the HTML document.protected abstract voidcreateHead(Head head) Creates and populates the head section of the HTML document.final StringtoString()protected final void
-
Constructor Details
-
HtmlDocument
public HtmlDocument()Creates a new HtmlDocument with empty page attributes and child elements.
-
-
Method Details
-
toString
-
toString
-
createHead
Creates and populates the head section of the HTML document.- Parameters:
head- The Head element to populate with meta tags, styles, scripts, and other head content.
-
createBody
Creates and populates the body section of the HTML document.- Parameters:
body- The Body element to populate with page content.
-