|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectDelegatingHandler
public class DelegatingHandler
| Method Summary | |
|---|---|
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. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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)
Handler
startChildHandler in interface Handlerchild - The executing child handler.public void endChildHandler(Handler child)
Handler
endChildHandler 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 Handler
public void startDocument()
throws SAXException
DocumentHandler
startDocument in interface DocumentHandlerSAXException
public void endDocument()
throws SAXException
endDocument in interface DocumentHandlerSAXException
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
Handler
startPrefixMapping in interface Handlerprefix - Namespace prefix.uri - Namespace uri.
SAXException
public void startElement(QName name,
Attributes attributes)
throws SAXException
ElementHandler
startElement 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
ElementHandler
characters 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
ElementHandler
endElement 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
Handler
endPrefixMapping in interface Handlerprefix - Namespace prefix.
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||