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,org.xml.sax.ContentHandler,org.xml.sax.DTDHandler,org.xml.sax.EntityResolver,org.xml.sax.ErrorHandler
public final class IgnoreVerifier extends org.xml.sax.helpers.DefaultHandler implements IslandVerifier
ignores namespaces which have no associated grammar.
-
-
Constructor Summary
Constructors Constructor Description IgnoreVerifier(java.lang.String namespaceToIgnore, ElementDecl[] assignedRules)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendChildIsland(java.lang.String uri, ElementDecl[] assignedLabels)this method is called after verification of the child island is completed, instead of endElement method.ElementDecl[]endIsland()substitute for endDocument event.voidsetDispatcher(Dispatcher disp)Dispatcher passes itself to IslandVerifier by calling this method from Dispatcher.switchVerifier method.voidstartElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.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, warning
-
-
-
-
Constructor Detail
-
IgnoreVerifier
public IgnoreVerifier(java.lang.String namespaceToIgnore, ElementDecl[] assignedRules)- 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 Detail
-
endIsland
public ElementDecl[] 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
public void endChildIsland(java.lang.String uri, ElementDecl[] assignedLabels)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
public void setDispatcher(Dispatcher disp)
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(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException- Specified by:
startElementin interfaceorg.xml.sax.ContentHandler- Overrides:
startElementin classorg.xml.sax.helpers.DefaultHandler- Throws:
org.xml.sax.SAXException
-
-