uk.org.ogsadai.converters.webrowset
Interface ElementHandler

All Known Implementing Classes:
WebRowSetParser.DataHandler, WebRowSetParser.MetaDataHandler, WebRowSetParser.PropertiesHandler

public interface ElementHandler

Strategy interface for handling different parts of an XML WebRowSet in a way compatible with XML SAX parsers.

Author:
The OGSA-DAI Team.

Method Summary
 void characters(char[] ch, int start, int length)
          Process an array of characters.
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
          Handles the end tag of an element.
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attr)
          Handle the start tag of an element.
 

Method Detail

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attr)
                  throws org.xml.sax.SAXException
Handle the start tag of an element.

Parameters:
uri - Namespace URI of the element.
localName - Local name of the element.
qName - Qualified name of the element.
attr - Attributes of the element.
Throws:
org.xml.sax.SAXException - if there was a parsing error.

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Handles the end tag of an element.

Parameters:
uri - Namespace URI of the element.
localName - Local name of the element.
qName - Qualified name of the element.
Throws:
org.xml.sax.SAXException - if there was a parsing error

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
Process an array of characters.

Parameters:
ch - Characters.
start - Offset within the character array indicating first character to process.
length - Number of characters from start (inclusive) to process.
Throws:
org.xml.sax.SAXException - if there was a parsing error.