Interface ElementFactory

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.

Methods

createElement 

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.

ParameterDescription
tagThe name of the element.
typeOne of the predefined Element types that can be returned from Element.getType.

See Also Element

parsed 

void parsed(Element elem);

Notifies that the element is fully parsed.

ParameterDescription
elemThe element parsed.

See Also Element

parsedAttribute 

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.