public class ElementHandlerImpl extends HandlerImpl implements ElementHandler
| Constructor and Description |
|---|
ElementHandlerImpl(XSDElementDeclaration content,
Handler parent,
ParserHandler parser) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Callback when characters of an element are encountered.
|
Handler |
createChildHandler(QName qName)
Returns a handler for a component in the schema which is a child of this component.
|
void |
endChildHandler(Handler child)
Called when a child handler is finished, on the trailing edge of the child element.
|
void |
endElement(QName qName)
Callback on trailing edge of element.
|
InstanceComponent |
getComponent() |
XSDElementDeclaration |
getElementDeclaration() |
Handler |
getParentHandler() |
Node |
getParseNode() |
XSDSchemaContent |
getSchemaContent() |
Object |
getValue() |
void |
setComponent(ElementImpl element) |
void |
startChildHandler(Handler child)
Called when a child handler is started, on the leading edge of the child element.
|
void |
startElement(QName qName,
Attributes attributes)
Callback on leading edge of an element.
|
String |
toString() |
endPrefixMapping, getContext, setContext, startPrefixMappingclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitendPrefixMapping, getContext, setContext, startPrefixMappingpublic ElementHandlerImpl(XSDElementDeclaration content,
Handler parent,
ParserHandler parser)
public void startElement(QName qName, Attributes attributes) throws SAXException
ElementHandlerstartElement in interface ElementHandlerqName - 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)public void characters(char[] ch,
int start,
int length)
throws SAXException
ElementHandlercharacters in interface ElementHandlerch - Array containing characters.start - The starting index of the characters.length - The number of characters.SAXException - Any xml errors.ContentHandler.characters(char[], int, int)public void endElement(QName qName) throws SAXException
ElementHandlerendElement in interface ElementHandlerqName - The qualified name of the element being handled.SAXException - Any xml errors.ContentHandler.endElement(java.lang.String, java.lang.String,
java.lang.String)public Handler createChildHandler(QName qName)
HandlerThis method will return null in two situations:
createChildHandler in interface HandlerqName - The qualified name of the schema component.public void startChildHandler(Handler child)
HandlerstartChildHandler in interface Handlerchild - The executing child handler.public void endChildHandler(Handler child)
HandlerendChildHandler in interface Handlerchild - The executing child handler.public Handler getParentHandler()
getParentHandler in interface HandlerHandler#getChildHandler(QName, SchemaBuilder)public XSDSchemaContent getSchemaContent()
getSchemaContent in interface Handlerpublic Node getParseNode()
getParseNode in interface Handlerpublic XSDElementDeclaration getElementDeclaration()
getElementDeclaration in interface ElementHandlerpublic InstanceComponent getComponent()
getComponent in interface Handlerpublic void setComponent(ElementImpl element)
public Object getValue()
Copyright © 1996–2019 Geotools. All rights reserved.