|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.xml.impl.DelegatingHandler
public class DelegatingHandler
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
Callback when characters of an element are encountered. |
Handler |
createChildHandler(javax.xml.namespace.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(javax.xml.namespace.QName name)
Callback on trailing edge of element. |
InstanceComponent |
getComponent()
|
org.picocontainer.MutablePicoContainer |
getContext()
|
org.eclipse.xsd.XSDElementDeclaration |
getElementDeclaration()
|
Handler |
getParentHandler()
|
Node |
getParseNode()
|
org.eclipse.xsd.XSDSchemaContent |
getSchemaContent()
|
void |
setContext(org.picocontainer.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(javax.xml.namespace.QName name,
org.xml.sax.Attributes attributes)
Callback on leading edge of an element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setContext(org.picocontainer.MutablePicoContainer context)
setContext
in interface Handler
context
- The context in which the the instance is to be parsed in.public org.picocontainer.MutablePicoContainer getContext()
getContext
in interface Handler
public org.eclipse.xsd.XSDElementDeclaration getElementDeclaration()
getElementDeclaration
in interface ElementHandler
public Handler getParentHandler()
getParentHandler
in interface Handler
Handler#getChildHandler(QName, SchemaBuilder)
public Handler createChildHandler(javax.xml.namespace.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 org.eclipse.xsd.XSDSchemaContent getSchemaContent()
getSchemaContent
in interface Handler
public void startDocument() throws org.xml.sax.SAXException
DocumentHandler
startDocument
in interface DocumentHandler
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface DocumentHandler
org.xml.sax.SAXException
public void startElement(javax.xml.namespace.QName name, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
ElementHandler
startElement
in interface ElementHandler
name
- 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)
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
ElementHandler
characters
in interface ElementHandler
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)
public void endElement(javax.xml.namespace.QName name) throws org.xml.sax.SAXException
ElementHandler
endElement
in interface ElementHandler
name
- 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |