Open SiteSearch 4.1.1
Final

ORG.oclc.xml.om
Class ElementFactoryImpl

java.lang.Object
  |
  +--ORG.oclc.xml.om.ElementFactoryImpl

public class ElementFactoryImpl
extends Object
implements ElementFactory

This class represents the default implementation for the element factory. This is what the XML parser uses if no other factory is specified.


Constructor Summary
ElementFactoryImpl()
          Constructs the factory object.
 
Method Summary
 Element createElement(Element parent, int type, Name tag, String text)
          Retrieves a new element for the specified tag and type.
 void parsed(Element elem)
          This method is called when the element is fully parsed.
 void parsedAttribute(Element e, Name name, Object value)
          this method is called when a new attribute is parsed for the given element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementFactoryImpl

public ElementFactoryImpl()
Constructs the factory object.
Method Detail

createElement

public Element createElement(Element parent,
                             int type,
                             Name tag,
                             String text)
Retrieves a new element for the specified tag and type.
Specified by:
createElement in interface ElementFactory
Parameters:
type - The element type.
tag - The element name.
Returns:
the newly created element.

parsed

public void parsed(Element elem)
This method is called when the element is fully parsed.
Specified by:
parsed in interface ElementFactory
Parameters:
elem - The element parsed.
Returns:
No return value.
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.
Specified by:
parsedAttribute in interface ElementFactory

Open SiteSearch 4.1.1
Final