public class ElementFactoryImpl implements ElementFactory { // Constructors public ElementFactoryImpl(); // Methods public Element createElement(Element parent, int type, Name tag, String text); public void parsed(Element elem); public void parsedAttribute(Element e, Name name, Object value); }
This class represents the default implementation for the element factory. This is what the XML parser uses if no other factory is specified.
public ElementFactoryImpl();Constructs the factory object.
public Element createElement(Element parent, int type, Name tag, String text);Retrieves a new element for the specified tag and type.
Return Value
Returns the newly created element.
Parameter Description type The element type. tag The element name.
public void parsed(Element elem);This method is called when the element is fully parsed.
Return Value
No return value.
Parameter Description elem The element parsed. See Also Element
public void parsedAttribute(Element e, Name name, Object value);this method is called when a new attribute is parsed for the given element.