Package it.unimi.dsi.parser
Class WellFormedXmlFactory
java.lang.Object
it.unimi.dsi.parser.WellFormedXmlFactory
- All Implemented Interfaces:
ParsingFactory
public class WellFormedXmlFactory extends Object implements ParsingFactory
A factory for well-formed XML documents.
This factory assumes that every new name of an element type or of an
attribute is new valid name. For entities, instead, resolution is
deferred to HTMLFactory.
- Since:
- 1.0.2
- Author:
- Sebastiano Vigna
-
Constructor Summary
Constructors Constructor Description WellFormedXmlFactory() -
Method Summary
Modifier and Type Method Description AttributegetAttribute(MutableString name)Returns theAttributeassociated to a name.ElementgetElement(MutableString name)Returns theElementassociated to a name.EntitygetEntity(MutableString name)Returns theEntityassociated to a name.
-
Constructor Details
-
WellFormedXmlFactory
public WellFormedXmlFactory()
-
-
Method Details
-
getElement
Description copied from interface:ParsingFactoryReturns theElementassociated to a name.- Specified by:
getElementin interfaceParsingFactory- Parameters:
name- the name of an element type.- Returns:
- the corresponding interned
Elementobject.
-
getAttribute
Description copied from interface:ParsingFactoryReturns theAttributeassociated to a name.- Specified by:
getAttributein interfaceParsingFactory- Parameters:
name- the name of an attribute.- Returns:
- the corresponding interned
Attributeobject.
-
getEntity
Description copied from interface:ParsingFactoryReturns theEntityassociated to a name.- Specified by:
getEntityin interfaceParsingFactory- Parameters:
name- the name of an entity.- Returns:
- the corresponding interned
Entityobject.
-