Package org.iso_relax.dispatcher.impl
Class IgnoreVerifier
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.iso_relax.dispatcher.impl.IgnoreVerifier
- All Implemented Interfaces:
IslandVerifier,ContentHandler,DTDHandler,EntityResolver,ErrorHandler
ignores namespaces which have no associated grammar.
- Author:
- Kohsuke KAWAGUCHI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendChildIsland(String uri, ElementDecl[] assignedLabels) this method is called after verification of the child island is completed, instead of endElement method.substitute for endDocument event.voidsetDispatcher(Dispatcher disp) Dispatcher passes itself to IslandVerifier by calling this method from Dispatcher.switchVerifier method.voidstartElement(String namespaceURI, String localName, String qName, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
characters, declaration, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
-
Constructor Details
-
IgnoreVerifier
- Parameters:
assignedRules- this Verifier is supposed to validate these rules. since this IslandVerifier actually does nothing, all these rules will be reported as satisfied upon completion.
-
-
Method Details
-
endIsland
Description copied from interface:IslandVerifiersubstitute 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.- Specified by:
endIslandin interfaceIslandVerifier- 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.
-
endChildIsland
Description copied from interface:IslandVerifierthis method is called after verification of the child island is completed, instead of endElement method.- Specified by:
endChildIslandin interfaceIslandVerifier- Parameters:
uri- namespace URI of the child island.
-
setDispatcher
Description copied from interface:IslandVerifierDispatcher passes itself to IslandVerifier by calling this method from Dispatcher.switchVerifier method.- Specified by:
setDispatcherin interfaceIslandVerifier
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-