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 Handlercontext - The context in which the the instance is to be parsed in.public MutablePicoContainer getContext()
getContext in interface Handlerpublic XSDElementDeclaration getElementDeclaration()
getElementDeclaration in interface ElementHandlerpublic Handler getParentHandler()
getParentHandler in interface HandlerHandler#getChildHandler(QName, SchemaBuilder)public Handler createChildHandler(QName name)
HandlerThis method will return null in two situations:
createChildHandler in interface Handlername - 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 InstanceComponent getComponent()
getComponent in interface Handlerpublic Node getParseNode()
getParseNode in interface Handlerpublic XSDSchemaContent getSchemaContent()
getSchemaContent in interface Handlerpublic void startDocument()
throws SAXException
DocumentHandlerstartDocument in interface DocumentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface DocumentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
HandlerstartPrefixMapping in interface Handlerprefix - Namespace prefix.uri - Namespace uri.SAXExceptionpublic void startElement(QName name, Attributes attributes) throws SAXException
ElementHandlerstartElement in interface ElementHandlername - 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 name) throws SAXException
ElementHandlerendElement in interface ElementHandlername - 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
HandlerendPrefixMapping in interface Handlerprefix - Namespace prefix.SAXExceptionCopyright © 1996–2019 Geotools. All rights reserved.