public interface ElementHandler extends Handler
ContentHandler
interface.
The methods startElement, characters, and endElement
are called in sequence as
they are for normal sax content handlers.
An element handler corresponds to a specific element in a schema. A handler must return a child handler for each valid child element of its corresponding element.
ContentHandler
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
Callback when characters of an element are encountered.
|
void |
endElement(QName qName)
Callback on trailing edge of element.
|
XSDElementDeclaration |
getElementDeclaration() |
void |
startElement(QName qName,
Attributes attributes)
Callback on leading edge of an element.
|
createChildHandler, endChildHandler, endPrefixMapping, getComponent, getContext, getParentHandler, getParseNode, getSchemaContent, setContext, startChildHandler, startPrefixMapping
void startElement(QName qName, Attributes attributes) throws SAXException
qName
- The qualified name of the element being handled.attributes
- The attributes of hte elmenent being handled.SAXException
- Any xml errors that occur.ContentHandler.startElement(java.lang.String, java.lang.String,
java.lang.String, org.xml.sax.Attributes)
void characters(char[] ch, int start, int length) throws SAXException
ch
- Array containing characters.start
- The starting index of the characters.length
- The number of characters.SAXException
- Any xml errors.ContentHandler.characters(char[], int, int)
void endElement(QName qName) throws SAXException
qName
- The qualified name of the element being handled.SAXException
- Any xml errors.ContentHandler.endElement(java.lang.String, java.lang.String,
java.lang.String)
XSDElementDeclaration getElementDeclaration()
Copyright © 1996–2019 Geotools. All rights reserved.