|
||||||||||
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
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
Callback when characters of an element are encountered. |
void |
endElement(javax.xml.namespace.QName qName)
Callback on trailing edge of element. |
org.eclipse.xsd.XSDElementDeclaration |
getElementDeclaration()
|
void |
startElement(javax.xml.namespace.QName qName,
org.xml.sax.Attributes attributes)
Callback on leading edge of an element. |
Methods inherited from interface org.geotools.xml.impl.Handler |
---|
createChildHandler, endChildHandler, getComponent, getContext, getParentHandler, getParseNode, getSchemaContent, setContext, startChildHandler |
Method Detail |
---|
void startElement(javax.xml.namespace.QName qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
qName
- The qualified name of the element being handled.attributes
- The attributes of hte elmenent being handled.
org.xml.sax.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 org.xml.sax.SAXException
ch
- Array containing characters.start
- The starting index of the characters.length
- The number of characters.
org.xml.sax.SAXException
- Any xml errors.ContentHandler.characters(char[], int, int)
void endElement(javax.xml.namespace.QName qName) throws org.xml.sax.SAXException
qName
- The qualified name of the element being handled.
org.xml.sax.SAXException
- Any xml errors.ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
org.eclipse.xsd.XSDElementDeclaration getElementDeclaration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |