|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Handler
Class implementing this interface serve has handlers for content of an instance document as it is parsed.
A handler is repsonsible for parsing and validating content. Upon a
successful parse and validation, the handler must return the "parsed"
content from a call to #getValue
.
A handler corresponds to a specific component in a schema. Processing is delegated to the handler when an instance of the component is encountered in an instance document.
Method Summary | |
---|---|
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. |
InstanceComponent |
getComponent()
|
MutablePicoContainer |
getContext()
|
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. |
Method Detail |
---|
XSDSchemaContent getSchemaContent()
InstanceComponent getComponent()
Node getParseNode()
MutablePicoContainer getContext()
void setContext(MutablePicoContainer context)
context
- The context in which the the instance is to be parsed in.Handler getParentHandler()
Handler#getChildHandler(QName, SchemaBuilder)
Handler createChildHandler(QName qName)
This method will return null in two situations:
qName
- The qualified name of the schema component.
void startChildHandler(Handler child)
child
- The executing child handler.void endChildHandler(Handler child)
child
- The executing child handler.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |