org.iso_relax.dispatcher
Interface IslandVerifier

All Superinterfaces:
org.xml.sax.ContentHandler
All Known Implementing Classes:
IgnoreVerifier

public interface IslandVerifier
extends org.xml.sax.ContentHandler

Interface for verifier that validates one island.

Version:
1.1
Author:
MURATA Makoto (FAMILY Given), Kohsuke KAWAGUCHI

Method Summary
 void endChildIsland(java.lang.String uri, ElementDecl[] assignedDecls)
          this method is called after verification of the child island is completed, instead of endElement method.
 ElementDecl[] endIsland()
          substitute for endDocument event.
 void setDispatcher(Dispatcher disp)
          Dispatcher passes itself to IslandVerifier by calling this method from Dispatcher.switchVerifier method.
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 

Method Detail

endChildIsland

void endChildIsland(java.lang.String uri,
                    ElementDecl[] assignedDecls)
                    throws org.xml.sax.SAXException
this method is called after verification of the child island is completed, instead of endElement method.

Parameters:
uri - namespace URI of the child island.
assignedLabel - set of elementDecls that were successfully assigned to this child island. when every elementDecl was failed, then an empty array is passed.
Throws:
org.xml.sax.SAXException

endIsland

ElementDecl[] endIsland()
                        throws org.xml.sax.SAXException
substitute for endDocument event. This method is called after endElement method is called for the top element in the island. endDocument method is never called for IslandVerifier.

Returns:
the callee must return all validated ElementDecls. If every candidate fails, return an empty array. It is the callee's responsibility to report an error. The callee may also recover from error. Never return null.
Throws:
org.xml.sax.SAXException

setDispatcher

void setDispatcher(Dispatcher disp)
Dispatcher passes itself to IslandVerifier by calling this method from Dispatcher.switchVerifier method.