org.openxml
Interface XMLElementFactory


Deprecated. Alternative API will be introduced in OpenXML 1.1

public abstract interface XMLElementFactory

Defines an element factory for constructing new elements. An application document may elect to use this factory to create user elements derived from the class XMLElement. This is an alternative to the simple tag name to class mapping that is supported by XMLDocument.

The createElement(org.openxml.XMLDocument, java.lang.String) will be called to create any element and may behave in one of three manners:

Version:
$Revision: 1.4 $ $Date: 1999/03/30 06:49:04 $
Author:
Assaf Arkin
See Also:
DocumentImpl.useElementFactory(org.openxml.XMLElementFactory), XMLElement

Method Summary
 XMLElement createElement(XMLDocument owner, java.lang.String tagName)
          Deprecated. Called to create an element with the specified tag name.
 

Method Detail

createElement

public XMLElement createElement(XMLDocument owner,
                                java.lang.String tagName)
Deprecated. 
Called to create an element with the specified tag name. Returned element is of class derived from XMLElement. If null is returned, an element of type XMLElement will be created.

When creating a new element, the parameters owner and tagName must be passed as is to the XMLElement constructor.

Parameters:
owner - The owner document
tagName - The element tag name
Returns:
New element or null