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.Dispatcherprivate Stringprivate Stringprivate Stringprotected final Maplazily constructed map from Rule object to ExternalElementExp.private Setset of unparsed entity names.Fields inherited from class 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, panicLevelFields inherited from class AbstractVerifier
dummyLocator, idrefs, ids, locator, namespaceSupport, performIDcheck -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendChildIsland(String childURI, org.iso_relax.dispatcher.ElementDecl[] ruleSet) org.iso_relax.dispatcher.ElementDecl[]booleanisUnparsedEntity(String entityName) voidsetDispatcher(org.iso_relax.dispatcher.Dispatcher disp) voidstartElement(String namespaceUri, String localName, String qName, Attributes atts) protected voidswitchToAnyOtherElement(AnyOtherElementExp[] exps, String namespaceUri, String localName, String qName, Attributes atts) switch to another IslandVerifier to validate anyOtherElement.protected voidswitchToChildIsland(ExternalElementExp[] exps, String namespaceUri, String localName, String qName, Attributes atts) switch to another IslandVerifier.Methods inherited from class Verifier
characters, endDocument, endElement, feedAttribute, getCurrentElementType, getErrorHandler, getLastCharacterType, ignorableWhitespace, init, isValid, localizeMessage, onDuplicateId, onError, onError, onNextAcceptorReady, setErrorHandler, setPanicMode, startDocument, verifyTextMethods inherited from class AbstractVerifier
endPrefixMapping, getBaseUri, getLocator, isNotation, notationDecl, onID, processingInstruction, resolveNamespacePrefix, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDeclMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMappingMethods inherited from interface IVerifier
getLocator
-
Field Details
-
dispatcher
protected org.iso_relax.dispatcher.Dispatcher dispatcher -
rule2exp
lazily constructed map from Rule object to ExternalElementExp. Rule objectrand ExternalElementExp whose rule field israre 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:
setDispatcherin interfaceorg.iso_relax.dispatcher.IslandVerifier
-
startElement
public void startElement(String namespaceUri, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin 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:
endChildIslandin interfaceorg.iso_relax.dispatcher.IslandVerifier- Throws:
SAXException
-
endIsland
public org.iso_relax.dispatcher.ElementDecl[] endIsland()- Specified by:
endIslandin interfaceorg.iso_relax.dispatcher.IslandVerifier
-
isUnparsedEntity
- Specified by:
isUnparsedEntityin interfaceorg.relaxng.datatype.ValidationContext- Overrides:
isUnparsedEntityin classAbstractVerifier
-