com.gargoylesoftware.htmlunit.html
Class UnknownElementFactory

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.html.UnknownElementFactory
All Implemented Interfaces:
IElementFactory

public final class UnknownElementFactory
extends java.lang.Object
implements IElementFactory

a factory for elements encountered in parsing the input which are not represented by dedicated element classes

Version:
$Revision: 1.3 $
Author:
Christian Sell, Ahmed Ashour

Field Summary
static UnknownElementFactory instance
 the singleton instance
 
Method Summary
 HtmlElement createElement(HtmlPage page, java.lang.String tagName, org.xml.sax.Attributes attributes)
 create an element according to this factory's specification.
 HtmlElement createElementNS(HtmlPage page, java.lang.String namespaceURI, java.lang.String qualifiedName, org.xml.sax.Attributes attributes)
 create an element according to this factory's specification.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final UnknownElementFactory instance
the singleton instance

Method Detail

createElement

public HtmlElement createElement(HtmlPage page,
                                 java.lang.String tagName,
                                 org.xml.sax.Attributes attributes)
create an element according to this factory's specification.

Specified by:
createElement in interface IElementFactory
Parameters:
page - 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 rule
attributes - the attributes encountered during XML/HTML parsing. Possibly null if no attributes specified
Returns:
the newly created and initialized element

createElementNS

public HtmlElement createElementNS(HtmlPage page,
                                   java.lang.String namespaceURI,
                                   java.lang.String qualifiedName,
                                   org.xml.sax.Attributes attributes)
create an element according to this factory's specification.

Specified by:
createElementNS in interface IElementFactory
Parameters:
page - 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 instantiate
attributes - the attributes encountered during XML/HTML parsing. Possibly null if no attributes specified
Returns:
the newly created and initialized element


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.