|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gargoylesoftware.htmlunit.html.UnknownElementFactory
public final class UnknownElementFactory
a factory for elements encountered in parsing the input which are not represented by dedicated element classes
| Field Summary | |
|---|---|
static UnknownElementFactory |
instance
the singleton instance |
| Method Summary | |
|---|---|
HtmlElement |
createElement(HtmlPage page,
String tagName,
Attributes attributes)
create an element according to this factory's specification. |
HtmlElement |
createElementNS(HtmlPage page,
String namespaceURI,
String qualifiedName,
Attributes attributes)
create an element according to this factory's specification. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final UnknownElementFactory instance
| Method Detail |
|---|
public HtmlElement createElement(HtmlPage page,
String tagName,
Attributes attributes)
createElement in interface IElementFactorypage - the enclosing page for the new element. Note that the element is not yet added
into the DOM tree.tagName - 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 ruleattributes - the attributes encountered during XML/HTML parsing. Possibly null
if no attributes specified
public HtmlElement createElementNS(HtmlPage page,
String namespaceURI,
String qualifiedName,
Attributes attributes)
createElementNS in interface IElementFactorypage - the enclosing page for the new element. Note that the element is not yet added
into the DOM tree.namespaceURI - the URI that identifies an XML namespace.qualifiedName - The qualified name of the element type to instantiateattributes - the attributes encountered during XML/HTML parsing. Possibly null
if no attributes specified
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||