public final class UnknownElementFactory extends Object implements ElementFactory
Modifier and Type | Field and Description |
---|---|
static UnknownElementFactory |
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
HtmlElement |
createElement(SgmlPage page,
String tagName,
Attributes attributes)
Creates an element according to this factory's specification.
|
HtmlElement |
createElementNS(SgmlPage page,
String namespaceURI,
String qualifiedName,
Attributes attributes)
Creates an element according to this factory's specification.
|
public static final UnknownElementFactory INSTANCE
public HtmlElement createElement(SgmlPage page, String tagName, Attributes attributes)
createElement
in interface ElementFactory
page
- the enclosing page for the new elementtagName
- the tag name (most factories will be responsible for a specific tag, but this
parameter is passed in for factories that don't follow this rule)attributes
- the attributes encountered during XML/HTML parsing (possibly null
if no attributes specifiedpublic HtmlElement createElementNS(SgmlPage page, String namespaceURI, String qualifiedName, Attributes attributes)
createElementNS
in interface ElementFactory
page
- the enclosing page for the new elementnamespaceURI
- the URI that identifies an XML namespacequalifiedName
- the qualified name of the element type to instantiateattributes
- the attributes encountered during XML/HTML parsing (possibly null
if no attributes specifiedCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.