org.iso_relax.dispatcher.impl
Class IgnoreVerifier
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--org.iso_relax.dispatcher.impl.IgnoreVerifier
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler, IslandVerifier
- public final class IgnoreVerifier
- extends DefaultHandler
- implements IslandVerifier
ignores namespaces which have no associated grammar.
- Author:
- Kohsuke KAWAGUCHI
Method Summary |
void |
endChildIsland(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. |
void |
setDispatcher(Dispatcher disp)
Dispatcher passes itself to IslandVerifier by calling this method
from Dispatcher.switchVerifier method. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.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, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
endIsland
public ElementDecl[] endIsland()
- Description copied from interface:
IslandVerifier
- 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.
- Specified by:
endIsland
in interface 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.
endChildIsland
public void endChildIsland(java.lang.String uri,
ElementDecl[] assignedLabels)
- Description copied from interface:
IslandVerifier
- this method is called after verification of the child island
is completed, instead of endElement method.
- Specified by:
endChildIsland
in interface IslandVerifier
- Parameters:
uri
- namespace URI of the child island.
setDispatcher
public void setDispatcher(Dispatcher disp)
- Description copied from interface:
IslandVerifier
- Dispatcher passes itself to IslandVerifier by calling this method
from Dispatcher.switchVerifier method.
- Specified by:
setDispatcher
in interface IslandVerifier
startElement
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
Attributes attributes)
throws SAXException
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class DefaultHandler
SAXException