public class HTMLFactory extends Object implements ParsingFactory
Warning: for maximum flexibility, the methods of this factory
do not perform case normalisation. If you are parsing HTML, you are invited
to downcase your names before accessing
This class is a singleton, and its only instance is accessible using the public field
To this purpose, this class exports packagewise some static factory methods that create
Attributes and register them locally. The static initialisation code in
Attribute creates elements such as
Element.A using the abovementioned
An alternative implementation could use reflection, but I don't see great advantages.
|Modifier and Type||Method and Description|
public static final HTMLFactory INSTANCE
public Element getElement(MutableString name)
Elementassociated to a name.
public Attribute getAttribute(MutableString name)
Attributeassociated to a name.
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.