public abstract class AbstractVerifier extends Object implements ContentHandler, DTDHandler, IDContextProvider2
By setting performIDcheck variable, the ID/IDREF checking
can be either turned on or turned off.
| Modifier and Type | Field and Description |
|---|---|
protected static Locator |
dummyLocator |
protected Set |
idrefs
this map remembers every IDREF token encountered in this document
|
protected Map |
ids
this map remembers every ID token encountered in this document
|
protected Locator |
locator
Document Locator that is given by XML reader.
|
protected org.xml.sax.helpers.NamespaceSupport |
namespaceSupport
namespace prefix to namespace URI resolver.
|
protected boolean |
performIDcheck
set this flag to true to perform ID/IDREF validation.
|
| Constructor and Description |
|---|
AbstractVerifier() |
| Modifier and Type | Method and Description |
|---|---|
void |
endElement(String namespaceUri,
String localName,
String qName) |
void |
endPrefixMapping(String prefix) |
String |
getBaseUri() |
Locator |
getLocator() |
protected void |
init() |
boolean |
isNotation(String notationName) |
boolean |
isUnparsedEntity(String entityName) |
void |
notationDecl(String name,
String publicId,
String systemId) |
protected abstract void |
onDuplicateId(String id)
this method is called when a duplicate id value is found.
|
void |
onID(org.relaxng.datatype.Datatype dt,
StringToken token)
this method is called when a type with ID semantics is matched.
|
void |
processingInstruction(String name,
String data) |
String |
resolveNamespacePrefix(String prefix) |
void |
setDocumentLocator(Locator loc) |
void |
skippedEntity(String p) |
void |
startElement(String namespaceUri,
String localName,
String qName,
Attributes atts) |
void |
startPrefixMapping(String prefix,
String uri) |
void |
unparsedEntityDecl(String name,
String publicId,
String systemId,
String notationName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharacters, endDocument, ignorableWhitespace, startDocumentprotected Locator locator
protected static final Locator dummyLocator
protected boolean performIDcheck
protected final Map ids
protected final Set idrefs
protected final org.xml.sax.helpers.NamespaceSupport namespaceSupport
public final Locator getLocator()
public void setDocumentLocator(Locator loc)
setDocumentLocator in interface ContentHandlerpublic void skippedEntity(String p)
skippedEntity in interface ContentHandlerpublic void processingInstruction(String name, String data)
processingInstruction in interface ContentHandlerpublic void startPrefixMapping(String prefix, String uri)
startPrefixMapping in interface ContentHandlerpublic void endPrefixMapping(String prefix)
endPrefixMapping in interface ContentHandlerpublic void startElement(String namespaceUri, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerSAXExceptionpublic void endElement(String namespaceUri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerSAXExceptionprotected void init()
public void notationDecl(String name, String publicId, String systemId)
notationDecl in interface DTDHandlerpublic void unparsedEntityDecl(String name, String publicId, String systemId, String notationName)
unparsedEntityDecl in interface DTDHandlerpublic String resolveNamespacePrefix(String prefix)
resolveNamespacePrefix in interface org.relaxng.datatype.ValidationContextpublic boolean isUnparsedEntity(String entityName)
isUnparsedEntity in interface org.relaxng.datatype.ValidationContextpublic boolean isNotation(String notationName)
isNotation in interface org.relaxng.datatype.ValidationContextpublic String getBaseUri()
getBaseUri in interface org.relaxng.datatype.ValidationContextprotected abstract void onDuplicateId(String id)
public void onID(org.relaxng.datatype.Datatype dt,
StringToken token)
IDContextProvider2onID in interface IDContextProvider2Copyright © 2016 Oracle Corporation. All Rights Reserved.