|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.xml.QXmlLexicalHandler
public abstract class QXmlLexicalHandler
The QXmlLexicalHandler
class provides an interface to report the lexical content of XML data. The events in the lexical handler apply to the entire document, not just to the document element, and all lexical handler events appear between the content handler's startDocument
and endDocument
events.
You can set the lexical handler with QXmlReader::setLexicalHandler()
.
This interface's design is based on the the SAX2 extension LexicalHandler
.
The interface provides the startDTD()
, endDTD()
, startEntity()
, endEntity()
, startCDATA()
, endCDATA()
and comment()
functions.
QXmlDTDHandler
, QXmlDeclHandler
, QXmlContentHandler
, QXmlEntityResolver
, QXmlErrorHandler
, and Introduction to SAX2.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal |
Field Summary |
---|
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
currentSender |
Constructor Summary | |
---|---|
QXmlLexicalHandler()
Creates a new QXmlLexicalHandler. |
Method Summary | |
---|---|
abstract boolean |
comment(java.lang.String ch)
The reader calls this function to report an XML comment anywhere in the document. |
abstract boolean |
endCDATA()
The reader calls this function to report the end of a CDATA section. |
abstract boolean |
endDTD()
The reader calls this function to report the end of a DTD declaration, if any. |
abstract boolean |
endEntity(java.lang.String name)
The reader calls this function to report the end of an entity called name. |
abstract java.lang.String |
errorString()
The reader calls this function to get an error string if any of the handler functions returns false. |
abstract boolean |
startCDATA()
The reader calls this function to report the start of a CDATA section. |
abstract boolean |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
The reader calls this function to report the start of a DTD declaration, if any. |
abstract boolean |
startEntity(java.lang.String name)
The reader calls this function to report the start of an entity called name. |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
__qt_signalInitialization |
Methods inherited from class java.lang.Object |
---|
clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public QXmlLexicalHandler()
Method Detail |
---|
public abstract boolean comment(java.lang.String ch)
If this function returns false the reader stops parsing and reports an error. The reader uses the function errorString()
to get the error message.
comment
in interface QXmlLexicalHandlerInterface
public abstract boolean endCDATA()
If this function returns false the reader stops parsing and reports an error. The reader uses the function errorString()
to get the error message.
startCDATA()
, and QXmlContentHandler::characters()
.
endCDATA
in interface QXmlLexicalHandlerInterface
public abstract boolean endDTD()
If this function returns false the reader stops parsing and reports an error. The reader uses the function errorString()
to get the error message.
startDTD()
.
endDTD
in interface QXmlLexicalHandlerInterface
public abstract boolean endEntity(java.lang.String name)
For every startEntity()
call, there is a corresponding endEntity()
call. The calls to startEntity()
and endEntity()
are properly nested.
If this function returns false the reader stops parsing and reports an error. The reader uses the function errorString()
to get the error message.
startEntity()
, QXmlContentHandler::skippedEntity()
, and QXmlSimpleReader::setFeature()
.
endEntity
in interface QXmlLexicalHandlerInterface
public abstract java.lang.String errorString()
errorString
in interface QXmlLexicalHandlerInterface
public abstract boolean startCDATA()
QXmlContentHandler::characters()
function. This function is intended only to report the boundary. If this function returns false the reader stops parsing and reports an error. The reader uses the function errorString()
to get the error message.
endCDATA()
.
startCDATA
in interface QXmlLexicalHandlerInterface
public abstract boolean startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
If the public identifier is missing, publicId is set to an empty string. If the system identifier is missing, systemId is set to an empty string. Note that it is not valid XML to have a public identifier but no system identifier; in such cases a parse error will occur.
All declarations reported through QXmlDTDHandler
or QXmlDeclHandler
appear between the startDTD()
and endDTD()
calls.
If this function returns false the reader stops parsing and reports an error. The reader uses the function errorString()
to get the error message.
endDTD()
.
startDTD
in interface QXmlLexicalHandlerInterface
public abstract boolean startEntity(java.lang.String name)
Note that if the entity is unknown, the reader reports it through QXmlContentHandler::skippedEntity()
and not through this function.
If this function returns false the reader stops parsing and reports an error. The reader uses the function errorString()
to get the error message.
endEntity()
, and QXmlSimpleReader::setFeature()
.
startEntity
in interface QXmlLexicalHandlerInterface
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |