com.softwareag.tamino.db.api.objectModel.sax
Class TSAXElementDefaultHandlerImpl

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.softwareag.tamino.db.api.objectModel.sax.TSAXElementDefaultHandler
          extended by com.softwareag.tamino.db.api.objectModel.sax.TSAXElementDefaultHandlerImpl
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class TSAXElementDefaultHandlerImpl
extends TSAXElementDefaultHandler

TSAXElementDefaultHandlerImpl is simply a test implementation for TSAXElementDefaultHandler.

Version:
$Revision: 1.8 $
Author:
Marcus Schreyer

Field Summary
 
Fields inherited from class com.softwareag.tamino.db.api.objectModel.sax.TSAXElementDefaultHandler
SPECIFIER
 
Constructor Summary
TSAXElementDefaultHandlerImpl()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
          Receive notification of character data.
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
          Receive notification of the ending of an element.
 java.util.Iterator<TStreamElement> getElementIterator()
          Returns an iterator that can be used to navigate over the sequence of TSAXElement instances that might have been build due to the event handling.
 TSAXElement getFirstElement()
          Returns the first element within the sequence of TSAXElement instances that might have been build due to the event handling.
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
          Receive notification of the beginning of an element.
 
Methods inherited from class com.softwareag.tamino.db.api.objectModel.sax.TSAXElementDefaultHandler
reset
 
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

TSAXElementDefaultHandlerImpl

public TSAXElementDefaultHandlerImpl()
Method Detail

getFirstElement

public TSAXElement getFirstElement()
Returns the first element within the sequence of TSAXElement instances that might have been build due to the event handling.

Specified by:
getFirstElement in class TSAXElementDefaultHandler
Returns:
TSAXElement instance if one is given, null otherwise.

getElementIterator

public java.util.Iterator<TStreamElement> getElementIterator()
Returns an iterator that can be used to navigate over the sequence of TSAXElement instances that might have been build due to the event handling.

Specified by:
getElementIterator in class TSAXElementDefaultHandler
Returns:
java.util.Iterator if one is given, null otherwise.

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Receive notification of the beginning of an element.

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
uri - The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
localName - The local name (without prefix), or the empty string if Namespace processing is not being performed.
qName - The qualified name (with prefix), or the empty string if qualified names are not available.
atts - The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Receive notification of the ending of an element.

Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
uri - The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
localName - The local name (without prefix), or the empty string if Namespace processing is not being performed.
qName - The qualified name (with prefix), or the empty string if qualified names are not available.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
Receive notification of character data.

Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Parameters:
ch - The characters from the XML document.
start - The start position in the array.
length - The number of characters to read from the array.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.


Copyright (c) 2013 Software AG. All Rights Reserved.