|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ElementHandler
Classes implementing this interface serve has handlers for elements in an
instance document as it is parsed. The element handler interface is a subset of the 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
modules/extension/xsd-core (gt-xsd-core.jar)
Method Summary | |
---|---|
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. |
Methods inherited from interface Handler |
---|
createChildHandler, endChildHandler, getComponent, getContext, getParentHandler, getParseNode, getSchemaContent, setContext, startChildHandler |
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |