it.unimi.dsi.parser
Class WellFormedXmlFactory

java.lang.Object
  extended by it.unimi.dsi.parser.WellFormedXmlFactory
All Implemented Interfaces:
ParsingFactory

public class WellFormedXmlFactory
extends java.lang.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
WellFormedXmlFactory()
           
 
Method Summary
 Attribute getAttribute(MutableString name)
          Returns the Attribute associated to a name.
 Element getElement(MutableString name)
          Returns the Element associated to a name.
 Entity getEntity(MutableString name)
          Returns the Entity associated to a name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WellFormedXmlFactory

public WellFormedXmlFactory()
Method Detail

getElement

public Element getElement(MutableString name)
Description copied from interface: ParsingFactory
Returns the Element associated to a name.

Specified by:
getElement in interface ParsingFactory
Parameters:
name - the name of an element type.
Returns:
the corresponding interned Element object.

getAttribute

public Attribute getAttribute(MutableString name)
Description copied from interface: ParsingFactory
Returns the Attribute associated to a name.

Specified by:
getAttribute in interface ParsingFactory
Parameters:
name - the name of an attribute.
Returns:
the corresponding interned Attribute object.

getEntity

public Entity getEntity(MutableString name)
Description copied from interface: ParsingFactory
Returns the Entity associated to a name.

Specified by:
getEntity in interface ParsingFactory
Parameters:
name - the name of an entity.
Returns:
the corresponding interned Entity object.