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, panicLeveldummyLocator, 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, setPanicModeendPrefixMapping, getBaseUri, getLocator, isNotation, isUnparsedEntity, notationDecl, onID, processingInstruction, resolveNamespacePrefix, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDeclclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocatorendPrefixMapping, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMappingprotected 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 VerifierSAXExceptionprotected org.relaxng.datatype.Datatype[] feedAttribute(Acceptor child, String uri, String localName, String qName, String value) throws SAXException
feedAttribute in class VerifierSAXExceptionpublic void startElement(String namespaceUri, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class VerifierSAXExceptionprotected void onNextAcceptorReady(StartTagInfo sti, Acceptor nextAcceptor) throws SAXException
VerifierThis method is called before the attributes are consumed.
derived class can use this method to do something useful.
onNextAcceptorReady in class VerifierSAXExceptionpublic void endElement(String namespaceUri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class VerifierSAXExceptionpublic void characters(char[] buf,
int start,
int len)
throws SAXException
characters in interface ContentHandlercharacters in class VerifierSAXExceptionpublic void ignorableWhitespace(char[] buf,
int start,
int len)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class VerifierSAXExceptionpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class VerifierSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class VerifierSAXExceptionCopyright © 2014 Oracle Corporation. All Rights Reserved.