public interface ElementFactory { // Methods Element createElement(Element parent, int type, Name tag, String text); void parsed(Element elem); void parsedAttribute(Element e, Name name, Object value); }
This interface specifies a method to create elements for an XML element tree. This is used by the XML Document to create nodes in the tree as it parses the elements.
Element createElement(Element parent, int type, Name tag, String text);Creates an element with the specified tag for the specified type of element.
Return Value
Returns the created element.
Parameter Description tag The name of the element. type One of the predefined Element types that can be returned from Element.getType. See Also Element
void parsed(Element elem);Notifies that the element is fully parsed.
Parameter Description elem The element parsed. See Also Element
void parsedAttribute(Element e, Name name, Object value);Notification that an attribute just got parsed. Value may be a String, Name or Vector of Names.