XNGR XML Browser

org.xngr
Interface XFactory


public interface XFactory

Factory methods that allow for document and element creation.

Version:
$Revision: 1.4 $, $Date: 2003/01/31 17:27:46 $
Author:
Edwin Dankert

Method Summary
 XElement createElement(Reader reader)
          Creates an element tree for the character stream Reader supplied.
 XElement createElement(String name)
          Creates an empty element for the name supplied.
 XElement createElement(XElementType type)
          Creates an empty element for the element type supplied.
 

Method Detail

createElement

public XElement createElement(String name)
Creates an empty element for the name supplied.

Parameters:
name - the name of the element.
Returns:
the newly created element.

createElement

public XElement createElement(XElementType type)
Creates an empty element for the element type supplied.

Parameters:
type - the type of element.
Returns:
the newly created element.

createElement

public XElement createElement(Reader reader)
                       throws org.xml.sax.SAXParseException
Creates an element tree for the character stream Reader supplied.

Parameters:
reader - the reader for the XML information.
Returns:
the newly created element tree.
Throws:
org.xml.sax.SAXParseException - if the information in the reader cannot be parsed.

XNGR XML Browser

Copyright © 2002 - 2005, Edwin Dankert, All Rights Reserved