public class DelegatingHandler extends Object implements DocumentHandler, ElementHandler
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 name)
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 |
endDocument() |
void |
endElement(QName name)
Callback on trailing edge of element.
|
void |
endPrefixMapping(String prefix)
Called when a prefix mapping is de-registred with ParserHandler.
|
InstanceComponent |
getComponent() |
MutablePicoContainer |
getContext() |
XSDElementDeclaration |
getElementDeclaration() |
Handler |
getParentHandler() |
Node |
getParseNode() |
XSDSchemaContent |
getSchemaContent() |
void |
setContext(MutablePicoContainer context) |
void |
startChildHandler(Handler child)
Called when a child handler is started, on the leading edge of the child element.
|
void |
startDocument()
Returns the element handler for the root element of an instance document.
|
void |
startElement(QName name,
Attributes attributes)
Callback on leading edge of an element.
|
void |
startPrefixMapping(String prefix,
String uri)
Called when a prefix mapping is registred with ParserHandler.
|
public void setContext(MutablePicoContainer context)
setContext
in interface Handler
context
- The context in which the the instance is to be parsed in.public MutablePicoContainer getContext()
getContext
in interface Handler
public XSDElementDeclaration getElementDeclaration()
getElementDeclaration
in interface ElementHandler
public Handler getParentHandler()
getParentHandler
in interface Handler
Handler#getChildHandler(QName, SchemaBuilder)
public Handler createChildHandler(QName name)
Handler
This method will return null in two situations:
createChildHandler
in interface Handler
name
- 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 InstanceComponent getComponent()
getComponent
in interface Handler
public Node getParseNode()
getParseNode
in interface Handler
public XSDSchemaContent getSchemaContent()
getSchemaContent
in interface Handler
public void startDocument() throws SAXException
DocumentHandler
startDocument
in interface DocumentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface DocumentHandler
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
Handler
startPrefixMapping
in interface Handler
prefix
- Namespace prefix.uri
- Namespace uri.SAXException
public void startElement(QName name, Attributes attributes) throws SAXException
ElementHandler
startElement
in interface ElementHandler
name
- 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 name) throws SAXException
ElementHandler
endElement
in interface ElementHandler
name
- The qualified name of the element being handled.SAXException
- Any xml errors.ContentHandler.endElement(java.lang.String, java.lang.String,
java.lang.String)
public void endPrefixMapping(String prefix) throws SAXException
Handler
endPrefixMapping
in interface Handler
prefix
- Namespace prefix.SAXException
Copyright © 1996–2019 Geotools. All rights reserved.