org.apache.crimson.tree
Interface ElementFactory

All Known Subinterfaces:
DocumentEx
All Known Implementing Classes:
SimpleElementFactory, XmlDocument

public interface ElementFactory

This interface defines a factory which can be used by documents to provide namespace-aware element creation.

A variety of implementation techniques are possible for this interface. Among them are compiled-in mappings between element names and classes, mappings defined in configuration files, ones derived from the document as it is parsed, and using namespaces to identify packages to be used with classes whose names correspond to elements.

DOM implementations will have constraints on the implementation classes returned by this factory, typically that they be subclasses of their implementation base class.

Author:
David Brownell
See Also:
DocumentEx

Method Summary
 ElementEx createElementEx(String tag)
          This is like the DOM Document.createElement method, except that its return type is different.
 ElementEx createElementEx(String uri, String tag)
          Returns an element which may be specialized to support application specific behaviors as associated with the specified namespace.
 

Method Detail

createElementEx

public ElementEx createElementEx(String tag)
This is like the DOM Document.createElement method, except that its return type is different.


createElementEx

public ElementEx createElementEx(String uri,
                                 String tag)
Returns an element which may be specialized to support application specific behaviors as associated with the specified namespace.