|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParserDelegate
Interface for objects which need to take over parsing control from the main parsing driver.
An example of such a case is when a schema dynamically imports content from other schemas.
Instances of these objects are declared in the Configuration.getContext()
. Example:
MyParserDelegate delegate = new MyParserDelegate(); Configuration configuration = ...; configuration.getContext().registerComponentInstance( delegate );
Method Summary | |
---|---|
boolean |
canHandle(javax.xml.namespace.QName elementName)
Determines if this delegate can handle the specified element name. |
java.lang.Object |
getParsedObject()
Gets the final parsed object from the delegate. |
Methods inherited from interface org.xml.sax.ContentHandler |
---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
Method Detail |
---|
boolean canHandle(javax.xml.namespace.QName elementName)
A common check in this method would be to check the namespace of the element.
elementName
- The name of the element to potentially handle.
java.lang.Object getParsedObject()
This method is called after parsing control returns to the main parsing driver.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |