org.geotools.xml
Class DOMParser

java.lang.Object
  extended by org.geotools.xml.DOMParser

public class DOMParser
extends java.lang.Object

Parses a DOM (Document Object Model) using the geotools xml binding system.

Author:
Justin Deoliveira, The Open Planning Project

Constructor Summary
DOMParser(Configuration configuration, org.w3c.dom.Document document)
          Creates a new instance of the parser.
 
Method Summary
 java.lang.Object parse()
          Parses the supplied DOM returning a single object respresenting the result of the parse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMParser

public DOMParser(Configuration configuration,
                 org.w3c.dom.Document document)
Creates a new instance of the parser.

Parameters:
configuration - Object representing the configuration of the parser.
document - An xml document.
Method Detail

parse

public java.lang.Object parse()
                       throws java.io.IOException,
                              org.xml.sax.SAXException,
                              javax.xml.parsers.ParserConfigurationException
Parses the supplied DOM returning a single object respresenting the result of the parse.

Returns:
The object representation of the root element of the document.
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException


Copyright © 1996-2010 Geotools. All Rights Reserved.