IDContextProvider2
, IVerifier
, org.iso_relax.verifier.VerifierHandler
, org.relaxng.datatype.ValidationContext
, ContentHandler
, DTDHandler
public class TypeDetector extends Verifier
Modifier and Type | Class | Description |
---|---|---|
class |
TypeDetector.AmbiguousDocumentException |
signals that the document is ambiguous.
|
Modifier and Type | Field | Description |
---|---|---|
protected TypedContentHandler |
handler |
dummyLocator, idrefs, ids, locator, namespaceSupport, performIDcheck
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
Constructor | Description |
---|---|
TypeDetector(DocumentDeclaration documentDecl,
TypedContentHandler handler,
ErrorHandler errorHandler) |
|
TypeDetector(DocumentDeclaration documentDecl,
ErrorHandler errorHandler) |
Modifier and Type | Method | Description |
---|---|---|
void |
characters(char[] buf,
int start,
int len) |
|
void |
endDocument() |
|
void |
endElement(String namespaceUri,
String localName,
String qName) |
|
protected org.relaxng.datatype.Datatype[] |
feedAttribute(Acceptor child,
String uri,
String localName,
String qName,
String value) |
|
void |
ignorableWhitespace(char[] buf,
int start,
int len) |
|
protected void |
onNextAcceptorReady(StartTagInfo sti,
Acceptor nextAcceptor) |
this method is called from the startElement method
after the tag name is processed and the child acceptor is created.
|
void |
setContentHandler(TypedContentHandler handler) |
sets the TypedContentHandler which will received the type-augmented
infoset.
|
void |
startDocument() |
|
void |
startElement(String namespaceUri,
String localName,
String qName,
Attributes atts) |
|
protected void |
verifyText() |
endPrefixMapping, getBaseUri, getLocator, isNotation, isUnparsedEntity, notationDecl, onID, processingInstruction, resolveNamespacePrefix, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl
endPrefixMapping, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping
getLocator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentElementType, getErrorHandler, getLastCharacterType, init, isValid, localizeMessage, onDuplicateId, onError, onError, setErrorHandler, setPanicMode
protected TypedContentHandler handler
public TypeDetector(DocumentDeclaration documentDecl, ErrorHandler errorHandler)
public TypeDetector(DocumentDeclaration documentDecl, TypedContentHandler handler, ErrorHandler errorHandler)
public void setContentHandler(TypedContentHandler handler)
protected void verifyText() throws SAXException
verifyText
in class Verifier
SAXException
protected org.relaxng.datatype.Datatype[] feedAttribute(Acceptor child, String uri, String localName, String qName, String value) throws SAXException
feedAttribute
in class Verifier
SAXException
public void startElement(String namespaceUri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class Verifier
SAXException
protected void onNextAcceptorReady(StartTagInfo sti, Acceptor nextAcceptor) throws SAXException
Verifier
This method is called before the attributes are consumed.
derived class can use this method to do something useful.
onNextAcceptorReady
in class Verifier
SAXException
public void endElement(String namespaceUri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class Verifier
SAXException
public void characters(char[] buf, int start, int len) throws SAXException
characters
in interface ContentHandler
characters
in class Verifier
SAXException
public void ignorableWhitespace(char[] buf, int start, int len) throws SAXException
ignorableWhitespace
in interface ContentHandler
ignorableWhitespace
in class Verifier
SAXException
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class Verifier
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class Verifier
SAXException
Copyright © 2019 Oracle Corporation. All rights reserved.