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, panicLevel
dummyLocator, 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, verifyText
endPrefixMapping, getBaseUri, getLocator, isNotation, notationDecl, onID, processingInstruction, resolveNamespacePrefix, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
getLocator
protected 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.IslandVerifier
public 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.ContentHandler
startElement
in class Verifier
org.xml.sax.SAXException
protected 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.SAXException
protected 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.SAXException
public void endChildIsland(java.lang.String childURI, org.iso_relax.dispatcher.ElementDecl[] ruleSet) throws org.xml.sax.SAXException
endChildIsland
in interface org.iso_relax.dispatcher.IslandVerifier
org.xml.sax.SAXException
public org.iso_relax.dispatcher.ElementDecl[] endIsland()
endIsland
in interface org.iso_relax.dispatcher.IslandVerifier
public boolean isUnparsedEntity(java.lang.String entityName)
isUnparsedEntity
in interface org.relaxng.datatype.ValidationContext
isUnparsedEntity
in class AbstractVerifier