cz.vutbr.fit.atomicity
Class AtomicityCollection.XMLHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by cz.vutbr.fit.atomicity.AtomicityCollection.XMLHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
Enclosing class:
AtomicityCollection

 class AtomicityCollection.XMLHandler
extends org.xml.sax.helpers.DefaultHandler

A class implements the handler for processing an XML file. The methods of this class are called during the processing of the XML.

Author:
zdenek

Constructor Summary
AtomicityCollection.XMLHandler()
           
 
Method Summary
 void endDocument()
          Called at the end of parsing.
 void endElement(java.lang.String namespaceURL, java.lang.String localName, java.lang.String qname)
          Called when the parser gets to some end element.
 void characters(char[] buffer, int start, int length)
          When the parser encounters plain text (not XML elements), it calls this method.
 void startElement(java.lang.String namespaceURL, java.lang.String localName, java.lang.String qname, org.xml.sax.Attributes attributes)
          Called when the parser gets to some start element.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
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

AtomicityCollection.XMLHandler

AtomicityCollection.XMLHandler()
Method Detail

characters

public void characters(char[] buffer,
                       int start,
                       int length)
When the parser encounters plain text (not XML elements), it calls this method.

Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler

startElement

public void startElement(java.lang.String namespaceURL,
                         java.lang.String localName,
                         java.lang.String qname,
                         org.xml.sax.Attributes attributes)
Called when the parser gets to some start element. The element text representation and its attributes are given.

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler

endElement

public void endElement(java.lang.String namespaceURL,
                       java.lang.String localName,
                       java.lang.String qname)
Called when the parser gets to some end element. The element text representation is given.

Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler

endDocument

public void endDocument()
Called at the end of parsing.

Specified by:
endDocument in interface org.xml.sax.ContentHandler
Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler