class TREXIslandVerifier extends Verifier implements org.iso_relax.dispatcher.IslandVerifier
| Modifier and Type | Field and Description |
|---|---|
protected org.iso_relax.dispatcher.Dispatcher |
dispatcher |
private java.lang.String |
lastLocalName |
private java.lang.String |
lastNamaespaceUri |
private java.lang.String |
lastQName |
protected java.util.Map |
rule2exp
lazily constructed map from Rule object to ExternalElementExp.
|
private java.util.Set |
unparsedEntities
set of unparsed entity names.
|
current, docDecl, ERR_DUPLICATE_ID, ERR_MISSING_ATTRIBUTE, ERR_UNCOMPLETED_CONTENT, ERR_UNEXPECTED_ATTRIBUTE, ERR_UNEXPECTED_ELEMENT, ERR_UNEXPECTED_STARTTAG, ERR_UNEXPECTED_TEXT, ERR_UNSOLD_IDREF, errorHandler, hadError, panicLeveldummyLocator, idrefs, ids, locator, namespaceSupport, performIDcheck| Constructor and Description |
|---|
TREXIslandVerifier(RulesAcceptor initialAcceptor) |
| Modifier and Type | Method and Description |
|---|---|
void |
endChildIsland(java.lang.String childURI,
org.iso_relax.dispatcher.ElementDecl[] ruleSet) |
org.iso_relax.dispatcher.ElementDecl[] |
endIsland() |
boolean |
isUnparsedEntity(java.lang.String entityName) |
void |
setDispatcher(org.iso_relax.dispatcher.Dispatcher disp) |
void |
startElement(java.lang.String namespaceUri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts) |
protected void |
switchToAnyOtherElement(AnyOtherElementExp[] exps,
java.lang.String namespaceUri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
switch to another IslandVerifier to validate anyOtherElement.
|
protected void |
switchToChildIsland(ExternalElementExp[] exps,
java.lang.String namespaceUri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
switch to another IslandVerifier.
|
characters, endDocument, endElement, feedAttribute, getCurrentElementType, getErrorHandler, getLastCharacterType, ignorableWhitespace, init, isValid, localizeMessage, onDuplicateId, onError, onError, onNextAcceptorReady, setErrorHandler, setPanicMode, startDocument, verifyTextendPrefixMapping, getBaseUri, getLocator, isNotation, notationDecl, onID, processingInstruction, resolveNamespacePrefix, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDeclclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharacters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMappinggetLocatorprotected org.iso_relax.dispatcher.Dispatcher dispatcher
protected final java.util.Map rule2exp
r and ExternalElementExp whose rule field
is r are registered to this map when child island is found.
this map is used in endChildIsland method.private java.lang.String lastNamaespaceUri
private java.lang.String lastLocalName
private java.lang.String lastQName
private java.util.Set unparsedEntities
TREXIslandVerifier(RulesAcceptor initialAcceptor)
public void setDispatcher(org.iso_relax.dispatcher.Dispatcher disp)
setDispatcher in interface org.iso_relax.dispatcher.IslandVerifierpublic void startElement(java.lang.String namespaceUri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class Verifierorg.xml.sax.SAXExceptionprotected void switchToChildIsland(ExternalElementExp[] exps, java.lang.String namespaceUri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected void switchToAnyOtherElement(AnyOtherElementExp[] exps, java.lang.String namespaceUri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic void endChildIsland(java.lang.String childURI,
org.iso_relax.dispatcher.ElementDecl[] ruleSet)
throws org.xml.sax.SAXException
endChildIsland in interface org.iso_relax.dispatcher.IslandVerifierorg.xml.sax.SAXExceptionpublic org.iso_relax.dispatcher.ElementDecl[] endIsland()
endIsland in interface org.iso_relax.dispatcher.IslandVerifierpublic boolean isUnparsedEntity(java.lang.String entityName)
isUnparsedEntity in interface org.relaxng.datatype.ValidationContextisUnparsedEntity in class AbstractVerifier