Class UpdateParser

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--XParser
              |
              +--UpdateParser
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class UpdateParser
extends XParser

UpdateParser is SAX XML Parser used for parsing


Field Summary
 
Fields inherited from class XParser
contents
 
Constructor Summary
UpdateParser()
           
 
Method Summary
 void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
          used when a tag Closes
 java.lang.Object[] getViewObjects()
          Gets a list of View Objects consisting of ConnectionBoxes and PatchLines
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attr)
          used when a tag opens
 
Methods inherited from class XParser
characters
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
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

UpdateParser

public UpdateParser()
Method Detail

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attr)
                  throws org.xml.sax.SAXException
used when a tag opens

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class XParser
Parameters:
namespaceURI - the namespace
localName - the name of the tag
qName -
attr - the attributes of this tag
Throws:
org.xml.sax.SAXException - in case of XML parse error

endElement

public void endElement(java.lang.String namespaceURI,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
used when a tag Closes

Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class XParser
Parameters:
namespaceURI - the namespace
localName - the name of the tag
qName -
Throws:
org.xml.sax.SAXException - in case of XML parse error

getViewObjects

public java.lang.Object[] getViewObjects()
Gets a list of View Objects consisting of ConnectionBoxes and PatchLines