com.timjohnstondev.unitconverter.logic
Class ConversionFactorParserHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.timjohnstondev.unitconverter.logic.ConversionFactorParserHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class ConversionFactorParserHandler
extends DefaultHandler

This DefaultHandler is made specifically for this application. It understands the XML file format being used and the related application objects.


Constructor Summary
ConversionFactorParserHandler()
           
 
Method Summary
 void endElement(String uri, String localName, String qualifiedName)
           
 PropertyList getPropertyList()
          Returns the PropertyList constructed by the parser.
 void startElement(String uri, String localName, String qualifiedName, Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConversionFactorParserHandler

public ConversionFactorParserHandler()
Method Detail

getPropertyList

public final PropertyList getPropertyList()
Returns the PropertyList constructed by the parser.

Returns:
the PropertyList constructed by the parser

startElement

public final void startElement(String uri,
                               String localName,
                               String qualifiedName,
                               Attributes attributes)
                        throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

endElement

public final void endElement(String uri,
                             String localName,
                             String qualifiedName)
                      throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException


Copyright © 2009 Tim Johnston Development, LLC. All Rights Reserved.