public final class IgnoreVerifier extends org.xml.sax.helpers.DefaultHandler implements IslandVerifier
| Constructor and Description |
|---|
IgnoreVerifier(String pnamespaceToIgnore,
ElementDecl[] assignedRules) |
| Modifier and Type | Method and Description |
|---|---|
void |
endChildIsland(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.
|
void |
setDispatcher(Dispatcher disp)
Dispatcher passes itself to IslandVerifier by calling this method from
Dispatcher.switchVerifier method.
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes attributes) |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharacters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMappingpublic IgnoreVerifier(String pnamespaceToIgnore, ElementDecl[] assignedRules)
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.public ElementDecl[] endIsland()
IslandVerifierendIsland in interface IslandVerifierpublic void endChildIsland(String uri, ElementDecl[] assignedLabels)
IslandVerifierendChildIsland in interface IslandVerifieruri - namespace URI of the child island.assignedLabels - set of elementDecls that were successfully assigned to this child
island. when every elementDecl was failed, then an empty array is
passed.public void setDispatcher(Dispatcher disp)
IslandVerifiersetDispatcher in interface IslandVerifierpublic void startElement(String namespaceURI, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionCopyright © 2016 Philip Helger. All rights reserved.