Class ElementFactoryImpl

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.

Constructors

ElementFactoryImpl

public ElementFactoryImpl();

Constructs the factory object.

Methods

createElement 

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.

ParameterDescription
typeThe element type.
tagThe element name.

parsed 

public void parsed(Element elem);

This method is called when the element is fully parsed.

Return Value

No return value.

ParameterDescription
elemThe element parsed.

See Also Element

parsedAttribute 

public void parsedAttribute(Element e, Name name, Object value);

this method is called when a new attribute is parsed for the given element.