Open SiteSearch 4.1.1
Final

ORG.oclc.xml.om
Interface ElementFactory

All Known Implementing Classes:
Document, ElementFactoryImpl

public abstract interface ElementFactory

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.


Method Summary
 Element createElement(Element parent, int type, Name tag, String text)
          Creates an element with the specified tag for the specified type of element.
 void parsed(Element elem)
          Notifies that the element is fully parsed.
 void parsedAttribute(Element e, Name name, Object value)
          Notification that an attribute just got parsed.
 

Method Detail

createElement

public Element createElement(Element parent,
                             int type,
                             Name tag,
                             String text)
Creates an element with the specified tag for the specified type of element.
Parameters:
tag - The name of the element.
type - One of the predefined Element types that can be returned from Element.getType.
Returns:
the created element.
See Also:
Element

parsed

public void parsed(Element elem)
Notifies that the element is fully parsed.
Parameters:
elem - The element parsed.
See Also:
Element

parsedAttribute

public 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.

Open SiteSearch 4.1.1
Final