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, startPrefixMapping
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
endPrefixMapping, getContext, setContext, startPrefixMapping
public ElementHandlerImpl(XSDElementDeclaration content, Handler parent, ParserHandler parser)
public void startElement(QName qName, Attributes attributes) throws SAXException
ElementHandler
startElement
in interface ElementHandler
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)
public void characters(char[] ch, int start, int length) throws SAXException
ElementHandler
characters
in interface ElementHandler
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)
public void endElement(QName qName) throws SAXException
ElementHandler
endElement
in interface ElementHandler
qName
- 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)
Handler
This method will return null in two situations:
createChildHandler
in interface Handler
qName
- The qualified name of the schema component.public void startChildHandler(Handler child)
Handler
startChildHandler
in interface Handler
child
- The executing child handler.public void endChildHandler(Handler child)
Handler
endChildHandler
in interface Handler
child
- The executing child handler.public Handler getParentHandler()
getParentHandler
in interface Handler
Handler#getChildHandler(QName, SchemaBuilder)
public XSDSchemaContent getSchemaContent()
getSchemaContent
in interface Handler
public Node getParseNode()
getParseNode
in interface Handler
public XSDElementDeclaration getElementDeclaration()
getElementDeclaration
in interface ElementHandler
public InstanceComponent getComponent()
getComponent
in interface Handler
public void setComponent(ElementImpl element)
public Object getValue()
Copyright © 1996–2019 Geotools. All rights reserved.