com.ibm.itim.adhocreport
Class AdhocReportTemplateHandler

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--com.ibm.itim.adhocreport.AdhocReportTemplateHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class AdhocReportTemplateHandler
extends org.xml.sax.helpers.DefaultHandler

This class is a helper class for AdhocReportTemplate


Constructor Summary
AdhocReportTemplateHandler(ReportXML template)
           
 
Method Summary
 void characters(char[] value, int start, int length)
          Receives the character data for each element.
 void endDocument()
          to receive information about end of the document
 void endElement(java.lang.String namespaceURI, java.lang.String elementName, java.lang.String qName)
          Receive information about end of an element in the document.
 void endPrefixMapping(java.lang.String prefix)
           
 void ignorableWhitespace(char[] value, int start, int length)
          Receive notification of ignorable whitespace in element content.
 void processingInstruction(java.lang.String target, java.lang.String data)
          The Parser will invoke this method once for each processing instruction found.
 void setDocumentLocator(org.xml.sax.Locator locator)
          Gets information about the document Locator.
 void skippedEntity(java.lang.String name)
           
 void startDocument()
          Receives the information about starting of document.
 void startElement(java.lang.String namespaceURI, java.lang.String elementName, java.lang.String qName, org.xml.sax.Attributes atts)
          Receives info about started parse of new element.
 void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdhocReportTemplateHandler

public AdhocReportTemplateHandler(ReportXML template)
Method Detail

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String elementName,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
Receives info about started parse of new element. Creates object, if appropriate.
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
namespaceURI -  
elementName - Need to set the namespaces feature of the SAXParser to true to be sure to receive this value.
qName -  
atts -  
Throws:
org.xml.sax.SAXException -  

endElement

public void endElement(java.lang.String namespaceURI,
                       java.lang.String elementName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Receive information about end of an element in the document. Integrates element and content, if any, into object model.
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
namespaceURI -  
elementName -  
qName -  
Throws:
org.xml.sax.SAXException -  

characters

public void characters(char[] value,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
Receives the character data for each element.
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Parameters:
value -  
start -  
length -  
Throws:
org.xml.sax.SAXException -  

endDocument

public void endDocument()
                 throws org.xml.sax.SAXException
to receive information about end of the document
Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException -  

ignorableWhitespace

public void ignorableWhitespace(char[] value,
                                int start,
                                int length)
                         throws org.xml.sax.SAXException
Receive notification of ignorable whitespace in element content.
Overrides:
ignorableWhitespace in class org.xml.sax.helpers.DefaultHandler
Parameters:
value -  
start -  
length -  
Throws:
org.xml.sax.SAXException -  

processingInstruction

public void processingInstruction(java.lang.String target,
                                  java.lang.String data)
                           throws org.xml.sax.SAXException
The Parser will invoke this method once for each processing instruction found.
Overrides:
processingInstruction in class org.xml.sax.helpers.DefaultHandler
Parameters:
target -  
data -  
Throws:
org.xml.sax.SAXException -  

setDocumentLocator

public void setDocumentLocator(org.xml.sax.Locator locator)
Gets information about the document Locator.
Overrides:
setDocumentLocator in class org.xml.sax.helpers.DefaultHandler
Parameters:
locator -  

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Receives the information about starting of document.
Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException -  

startPrefixMapping

public void startPrefixMapping(java.lang.String prefix,
                               java.lang.String uri)
                        throws org.xml.sax.SAXException
Overrides:
startPrefixMapping in class org.xml.sax.helpers.DefaultHandler

endPrefixMapping

public void endPrefixMapping(java.lang.String prefix)
                      throws org.xml.sax.SAXException
Overrides:
endPrefixMapping in class org.xml.sax.helpers.DefaultHandler

skippedEntity

public void skippedEntity(java.lang.String name)
                   throws org.xml.sax.SAXException
Overrides:
skippedEntity in class org.xml.sax.helpers.DefaultHandler