public class TypeDetector extends Verifier
Modifier and Type | Class and Description |
---|---|
class |
TypeDetector.AmbiguousDocumentException
signals that the document is ambiguous.
|
Modifier and Type | Field and Description |
---|---|
protected TypedContentHandler |
handler |
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 |
---|
TypeDetector(DocumentDeclaration documentDecl,
ErrorHandler errorHandler) |
TypeDetector(DocumentDeclaration documentDecl,
TypedContentHandler handler,
ErrorHandler errorHandler) |
Modifier and Type | Method and 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() |
getCurrentElementType, getErrorHandler, getLastCharacterType, init, isValid, localizeMessage, onDuplicateId, onError, onError, setErrorHandler, setPanicMode
endPrefixMapping, getBaseUri, getLocator, isNotation, isUnparsedEntity, notationDecl, onID, processingInstruction, resolveNamespacePrefix, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLocator
endPrefixMapping, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping
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 © 2016 Oracle Corporation. All rights reserved.