Package com.sun.msv.relaxns.verifier
Class TREXIslandVerifier
java.lang.Object
com.sun.msv.verifier.AbstractVerifier
com.sun.msv.verifier.Verifier
com.sun.msv.relaxns.verifier.TREXIslandVerifier
- All Implemented Interfaces:
IDContextProvider2
,IVerifier
,org.iso_relax.dispatcher.IslandVerifier
,org.iso_relax.verifier.VerifierHandler
,org.relaxng.datatype.ValidationContext
,ContentHandler
,DTDHandler
IslandVerifier for RELAX Core and TREX.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.iso_relax.dispatcher.Dispatcher
private String
private String
private String
protected final Map
lazily constructed map from Rule object to ExternalElementExp.private Set
set of unparsed entity names.Fields inherited from class com.sun.msv.verifier.Verifier
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
Fields inherited from class com.sun.msv.verifier.AbstractVerifier
dummyLocator, idrefs, ids, locator, namespaceSupport, performIDcheck
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
endChildIsland
(String childURI, org.iso_relax.dispatcher.ElementDecl[] ruleSet) org.iso_relax.dispatcher.ElementDecl[]
boolean
isUnparsedEntity
(String entityName) void
setDispatcher
(org.iso_relax.dispatcher.Dispatcher disp) void
startElement
(String namespaceUri, String localName, String qName, Attributes atts) protected void
switchToAnyOtherElement
(AnyOtherElementExp[] exps, String namespaceUri, String localName, String qName, Attributes atts) switch to another IslandVerifier to validate anyOtherElement.protected void
switchToChildIsland
(ExternalElementExp[] exps, String namespaceUri, String localName, String qName, Attributes atts) switch to another IslandVerifier.Methods inherited from class com.sun.msv.verifier.Verifier
characters, endDocument, endElement, feedAttribute, getCurrentElementType, getErrorHandler, getLastCharacterType, ignorableWhitespace, init, isValid, localizeMessage, onDuplicateId, onError, onError, onNextAcceptorReady, setErrorHandler, setPanicMode, startDocument, verifyText
Methods inherited from class com.sun.msv.verifier.AbstractVerifier
endPrefixMapping, getBaseUri, getLocator, isNotation, notationDecl, onID, processingInstruction, resolveNamespacePrefix, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
Methods inherited from interface com.sun.msv.verifier.IVerifier
getLocator
-
Field Details
-
dispatcher
protected org.iso_relax.dispatcher.Dispatcher dispatcher -
rule2exp
lazily constructed map from Rule object to ExternalElementExp. Rule objectr
and ExternalElementExp whose rule field isr
are registered to this map when child island is found. this map is used in endChildIsland method. -
lastNamaespaceUri
-
lastLocalName
-
lastQName
-
unparsedEntities
set of unparsed entity names. this set is created on demand.
-
-
Constructor Details
-
TREXIslandVerifier
TREXIslandVerifier(RulesAcceptor initialAcceptor)
-
-
Method Details
-
setDispatcher
public void setDispatcher(org.iso_relax.dispatcher.Dispatcher disp) - Specified by:
setDispatcher
in interfaceorg.iso_relax.dispatcher.IslandVerifier
-
startElement
public void startElement(String namespaceUri, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classVerifier
- Throws:
SAXException
-
switchToChildIsland
protected void switchToChildIsland(ExternalElementExp[] exps, String namespaceUri, String localName, String qName, Attributes atts) throws SAXException switch to another IslandVerifier.- Throws:
SAXException
-
switchToAnyOtherElement
protected void switchToAnyOtherElement(AnyOtherElementExp[] exps, String namespaceUri, String localName, String qName, Attributes atts) throws SAXException switch to another IslandVerifier to validate anyOtherElement.- Throws:
SAXException
-
endChildIsland
public void endChildIsland(String childURI, org.iso_relax.dispatcher.ElementDecl[] ruleSet) throws SAXException - Specified by:
endChildIsland
in interfaceorg.iso_relax.dispatcher.IslandVerifier
- Throws:
SAXException
-
endIsland
public org.iso_relax.dispatcher.ElementDecl[] endIsland()- Specified by:
endIsland
in interfaceorg.iso_relax.dispatcher.IslandVerifier
-
isUnparsedEntity
- Specified by:
isUnparsedEntity
in interfaceorg.relaxng.datatype.ValidationContext
- Overrides:
isUnparsedEntity
in classAbstractVerifier
-