public class TSAXElementDefaultHandlerImpl extends TSAXElementDefaultHandler
SPECIFIER
Constructor and Description |
---|
TSAXElementDefaultHandlerImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
reset
public TSAXElement getFirstElement()
getFirstElement
in class TSAXElementDefaultHandler
public java.util.Iterator<TStreamElement> getElementIterator()
getElementIterator
in class TSAXElementDefaultHandler
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
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
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.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
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.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
ch
- The characters from the XML document.start
- The start position in the array.length
- The number of characters to read from the array.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.Copyright (c) 2017 Software AG. All Rights Reserved.