KLayout 0.29.8 (2024-10-28 63dd591e5) [master]

API reference - Class QXmlDefaultHandler

Notation used in Ruby API documentation

Module: QtXml

Description: Binding of QXmlDefaultHandler

Class hierarchy: QXmlDefaultHandler » QXmlContentHandler

Sub-classes: , , , ,

Public constructors

new QXmlDefaultHandlernewConstructor QXmlDefaultHandler::QXmlDefaultHandler()

Public methods

[const]QXmlDefaultHandler ptr_const_castReturns a non-const reference to self.
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
[const]const QXmlContentHandler ptrasConstQXmlContentHandlerDelivers the base class interface QXmlContentHandler of QXmlDefaultHandler
[const]const QXmlDTDHandler ptrasConstQXmlDTDHandlerDelivers the base class interface QXmlDTDHandler of QXmlDefaultHandler
[const]const QXmlDeclHandler ptrasConstQXmlDeclHandlerDelivers the base class interface QXmlDeclHandler of QXmlDefaultHandler
[const]const QXmlEntityResolver ptrasConstQXmlEntityResolverDelivers the base class interface QXmlEntityResolver of QXmlDefaultHandler
[const]const QXmlErrorHandler ptrasConstQXmlErrorHandlerDelivers the base class interface QXmlErrorHandler of QXmlDefaultHandler
[const]const QXmlLexicalHandler ptrasConstQXmlLexicalHandlerDelivers the base class interface QXmlLexicalHandler of QXmlDefaultHandler
QXmlContentHandler ptrasQXmlContentHandlerDelivers the base class interface QXmlContentHandler of QXmlDefaultHandler
QXmlDTDHandler ptrasQXmlDTDHandlerDelivers the base class interface QXmlDTDHandler of QXmlDefaultHandler
QXmlDeclHandler ptrasQXmlDeclHandlerDelivers the base class interface QXmlDeclHandler of QXmlDefaultHandler
QXmlEntityResolver ptrasQXmlEntityResolverDelivers the base class interface QXmlEntityResolver of QXmlDefaultHandler
QXmlErrorHandler ptrasQXmlErrorHandlerDelivers the base class interface QXmlErrorHandler of QXmlDefaultHandler
QXmlLexicalHandler ptrasQXmlLexicalHandlerDelivers the base class interface QXmlLexicalHandler of QXmlDefaultHandler
boolattributeDecl(string eName,
string aName,
string type,
string valueDefault,
string value)
Virtual method bool QXmlDefaultHandler::attributeDecl(const QString &eName, const QString &aName, const QString &type, const QString &valueDefault, const QString &value)
boolcharacters(string ch)Virtual method bool QXmlDefaultHandler::characters(const QString &ch)
boolcomment(string ch)Virtual method bool QXmlDefaultHandler::comment(const QString &ch)
boolendCDATAVirtual method bool QXmlDefaultHandler::endCDATA()
boolendDTDVirtual method bool QXmlDefaultHandler::endDTD()
boolendDocumentVirtual method bool QXmlDefaultHandler::endDocument()
boolendElement(string namespaceURI,
string localName,
string qName)
Virtual method bool QXmlDefaultHandler::endElement(const QString &namespaceURI, const QString &localName, const QString &qName)
boolendEntity(string name)Virtual method bool QXmlDefaultHandler::endEntity(const QString &name)
boolendPrefixMapping(string prefix)Virtual method bool QXmlDefaultHandler::endPrefixMapping(const QString &prefix)
boolerror(const QXmlParseException exception)Virtual method bool QXmlDefaultHandler::error(const QXmlParseException &exception)
[const]stringerrorStringVirtual method QString QXmlDefaultHandler::errorString()
boolexternalEntityDecl(string name,
string publicId,
string systemId)
Virtual method bool QXmlDefaultHandler::externalEntityDecl(const QString &name, const QString &publicId, const QString &systemId)
boolfatalError(const QXmlParseException exception)Virtual method bool QXmlDefaultHandler::fatalError(const QXmlParseException &exception)
boolignorableWhitespace(string ch)Virtual method bool QXmlDefaultHandler::ignorableWhitespace(const QString &ch)
boolinternalEntityDecl(string name,
string value)
Virtual method bool QXmlDefaultHandler::internalEntityDecl(const QString &name, const QString &value)
boolnotationDecl(string name,
string publicId,
string systemId)
Virtual method bool QXmlDefaultHandler::notationDecl(const QString &name, const QString &publicId, const QString &systemId)
boolprocessingInstruction(string target,
string data)
Virtual method bool QXmlDefaultHandler::processingInstruction(const QString &target, const QString &data)
voidsetDocumentLocator(QXmlLocator ptr locator)Virtual method void QXmlDefaultHandler::setDocumentLocator(QXmlLocator *locator)
boolskippedEntity(string name)Virtual method bool QXmlDefaultHandler::skippedEntity(const QString &name)
boolstartCDATAVirtual method bool QXmlDefaultHandler::startCDATA()
boolstartDTD(string name,
string publicId,
string systemId)
Virtual method bool QXmlDefaultHandler::startDTD(const QString &name, const QString &publicId, const QString &systemId)
boolstartDocumentVirtual method bool QXmlDefaultHandler::startDocument()
boolstartElement(string namespaceURI,
string localName,
string qName,
const QXmlAttributes atts)
Virtual method bool QXmlDefaultHandler::startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
boolstartEntity(string name)Virtual method bool QXmlDefaultHandler::startEntity(const QString &name)
boolstartPrefixMapping(string prefix,
string uri)
Virtual method bool QXmlDefaultHandler::startPrefixMapping(const QString &prefix, const QString &uri)
boolunparsedEntityDecl(string name,
string publicId,
string systemId,
string notationName)
Virtual method bool QXmlDefaultHandler::unparsedEntityDecl(const QString &name, const QString &publicId, const QString &systemId, const QString &notationName)
boolwarning(const QXmlParseException exception)Virtual method bool QXmlDefaultHandler::warning(const QXmlParseException &exception)

Detailed description

_const_cast

Signature: [const] QXmlDefaultHandler ptr _const_cast

Description: Returns a non-const reference to self.

Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects.

This method has been introduced in version 0.29.6.

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

asConstQXmlContentHandler

Signature: [const] const QXmlContentHandler ptr asConstQXmlContentHandler

Description: Delivers the base class interface QXmlContentHandler of QXmlDefaultHandler

Class QXmlDefaultHandler is derived from multiple base classes. This method delivers the QXmlContentHandler base class aspect.

Use this version if you have a const reference.

asConstQXmlDTDHandler

Signature: [const] const QXmlDTDHandler ptr asConstQXmlDTDHandler

Description: Delivers the base class interface QXmlDTDHandler of QXmlDefaultHandler

Class QXmlDefaultHandler is derived from multiple base classes. This method delivers the QXmlDTDHandler base class aspect.

Use this version if you have a const reference.

asConstQXmlDeclHandler

Signature: [const] const QXmlDeclHandler ptr asConstQXmlDeclHandler

Description: Delivers the base class interface QXmlDeclHandler of QXmlDefaultHandler

Class QXmlDefaultHandler is derived from multiple base classes. This method delivers the QXmlDeclHandler base class aspect.

Use this version if you have a const reference.

asConstQXmlEntityResolver

Signature: [const] const QXmlEntityResolver ptr asConstQXmlEntityResolver

Description: Delivers the base class interface QXmlEntityResolver of QXmlDefaultHandler

Class QXmlDefaultHandler is derived from multiple base classes. This method delivers the QXmlEntityResolver base class aspect.

Use this version if you have a const reference.

asConstQXmlErrorHandler

Signature: [const] const QXmlErrorHandler ptr asConstQXmlErrorHandler

Description: Delivers the base class interface QXmlErrorHandler of QXmlDefaultHandler

Class QXmlDefaultHandler is derived from multiple base classes. This method delivers the QXmlErrorHandler base class aspect.

Use this version if you have a const reference.

asConstQXmlLexicalHandler

Signature: [const] const QXmlLexicalHandler ptr asConstQXmlLexicalHandler

Description: Delivers the base class interface QXmlLexicalHandler of QXmlDefaultHandler

Class QXmlDefaultHandler is derived from multiple base classes. This method delivers the QXmlLexicalHandler base class aspect.

Use this version if you have a const reference.

asQXmlContentHandler

Signature: QXmlContentHandler ptr asQXmlContentHandler

Description: Delivers the base class interface QXmlContentHandler of QXmlDefaultHandler

Class QXmlDefaultHandler is derived from multiple base classes. This method delivers the QXmlContentHandler base class aspect.

asQXmlDTDHandler

Signature: QXmlDTDHandler ptr asQXmlDTDHandler

Description: Delivers the base class interface QXmlDTDHandler of QXmlDefaultHandler

Class QXmlDefaultHandler is derived from multiple base classes. This method delivers the QXmlDTDHandler base class aspect.

asQXmlDeclHandler

Signature: QXmlDeclHandler ptr asQXmlDeclHandler

Description: Delivers the base class interface QXmlDeclHandler of QXmlDefaultHandler

Class QXmlDefaultHandler is derived from multiple base classes. This method delivers the QXmlDeclHandler base class aspect.

asQXmlEntityResolver

Signature: QXmlEntityResolver ptr asQXmlEntityResolver

Description: Delivers the base class interface QXmlEntityResolver of QXmlDefaultHandler

Class QXmlDefaultHandler is derived from multiple base classes. This method delivers the QXmlEntityResolver base class aspect.

asQXmlErrorHandler

Signature: QXmlErrorHandler ptr asQXmlErrorHandler

Description: Delivers the base class interface QXmlErrorHandler of QXmlDefaultHandler

Class QXmlDefaultHandler is derived from multiple base classes. This method delivers the QXmlErrorHandler base class aspect.

asQXmlLexicalHandler

Signature: QXmlLexicalHandler ptr asQXmlLexicalHandler

Description: Delivers the base class interface QXmlLexicalHandler of QXmlDefaultHandler

Class QXmlDefaultHandler is derived from multiple base classes. This method delivers the QXmlLexicalHandler base class aspect.

attributeDecl

Signature: bool attributeDecl (string eName, string aName, string type, string valueDefault, string value)

Description: Virtual method bool QXmlDefaultHandler::attributeDecl(const QString &eName, const QString &aName, const QString &type, const QString &valueDefault, const QString &value)

This method can be reimplemented in a derived class.

characters

Signature: bool characters (string ch)

Description: Virtual method bool QXmlDefaultHandler::characters(const QString &ch)

This method can be reimplemented in a derived class.

comment

Signature: bool comment (string ch)

Description: Virtual method bool QXmlDefaultHandler::comment(const QString &ch)

This method can be reimplemented in a derived class.

endCDATA

Signature: bool endCDATA

Description: Virtual method bool QXmlDefaultHandler::endCDATA()

This method can be reimplemented in a derived class.

endDTD

Signature: bool endDTD

Description: Virtual method bool QXmlDefaultHandler::endDTD()

This method can be reimplemented in a derived class.

endDocument

Signature: bool endDocument

Description: Virtual method bool QXmlDefaultHandler::endDocument()

This method can be reimplemented in a derived class.

endElement

Signature: bool endElement (string namespaceURI, string localName, string qName)

Description: Virtual method bool QXmlDefaultHandler::endElement(const QString &namespaceURI, const QString &localName, const QString &qName)

This method can be reimplemented in a derived class.

endEntity

Signature: bool endEntity (string name)

Description: Virtual method bool QXmlDefaultHandler::endEntity(const QString &name)

This method can be reimplemented in a derived class.

endPrefixMapping

Signature: bool endPrefixMapping (string prefix)

Description: Virtual method bool QXmlDefaultHandler::endPrefixMapping(const QString &prefix)

This method can be reimplemented in a derived class.

error

Signature: bool error (const QXmlParseException exception)

Description: Virtual method bool QXmlDefaultHandler::error(const QXmlParseException &exception)

This method can be reimplemented in a derived class.

errorString

Signature: [const] string errorString

Description: Virtual method QString QXmlDefaultHandler::errorString()

This method can be reimplemented in a derived class.

externalEntityDecl

Signature: bool externalEntityDecl (string name, string publicId, string systemId)

Description: Virtual method bool QXmlDefaultHandler::externalEntityDecl(const QString &name, const QString &publicId, const QString &systemId)

This method can be reimplemented in a derived class.

fatalError

Signature: bool fatalError (const QXmlParseException exception)

Description: Virtual method bool QXmlDefaultHandler::fatalError(const QXmlParseException &exception)

This method can be reimplemented in a derived class.

ignorableWhitespace

Signature: bool ignorableWhitespace (string ch)

Description: Virtual method bool QXmlDefaultHandler::ignorableWhitespace(const QString &ch)

This method can be reimplemented in a derived class.

internalEntityDecl

Signature: bool internalEntityDecl (string name, string value)

Description: Virtual method bool QXmlDefaultHandler::internalEntityDecl(const QString &name, const QString &value)

This method can be reimplemented in a derived class.

new

Signature: [static] new QXmlDefaultHandler new

Description: Constructor QXmlDefaultHandler::QXmlDefaultHandler()

This method creates an object of class QXmlDefaultHandler.

Python specific notes:
This method is the default initializer of the object.

notationDecl

Signature: bool notationDecl (string name, string publicId, string systemId)

Description: Virtual method bool QXmlDefaultHandler::notationDecl(const QString &name, const QString &publicId, const QString &systemId)

This method can be reimplemented in a derived class.

processingInstruction

Signature: bool processingInstruction (string target, string data)

Description: Virtual method bool QXmlDefaultHandler::processingInstruction(const QString &target, const QString &data)

This method can be reimplemented in a derived class.

setDocumentLocator

Signature: void setDocumentLocator (QXmlLocator ptr locator)

Description: Virtual method void QXmlDefaultHandler::setDocumentLocator(QXmlLocator *locator)

This method can be reimplemented in a derived class.

skippedEntity

Signature: bool skippedEntity (string name)

Description: Virtual method bool QXmlDefaultHandler::skippedEntity(const QString &name)

This method can be reimplemented in a derived class.

startCDATA

Signature: bool startCDATA

Description: Virtual method bool QXmlDefaultHandler::startCDATA()

This method can be reimplemented in a derived class.

startDTD

Signature: bool startDTD (string name, string publicId, string systemId)

Description: Virtual method bool QXmlDefaultHandler::startDTD(const QString &name, const QString &publicId, const QString &systemId)

This method can be reimplemented in a derived class.

startDocument

Signature: bool startDocument

Description: Virtual method bool QXmlDefaultHandler::startDocument()

This method can be reimplemented in a derived class.

startElement

Signature: bool startElement (string namespaceURI, string localName, string qName, const QXmlAttributes atts)

Description: Virtual method bool QXmlDefaultHandler::startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)

This method can be reimplemented in a derived class.

startEntity

Signature: bool startEntity (string name)

Description: Virtual method bool QXmlDefaultHandler::startEntity(const QString &name)

This method can be reimplemented in a derived class.

startPrefixMapping

Signature: bool startPrefixMapping (string prefix, string uri)

Description: Virtual method bool QXmlDefaultHandler::startPrefixMapping(const QString &prefix, const QString &uri)

This method can be reimplemented in a derived class.

unparsedEntityDecl

Signature: bool unparsedEntityDecl (string name, string publicId, string systemId, string notationName)

Description: Virtual method bool QXmlDefaultHandler::unparsedEntityDecl(const QString &name, const QString &publicId, const QString &systemId, const QString &notationName)

This method can be reimplemented in a derived class.

warning

Signature: bool warning (const QXmlParseException exception)

Description: Virtual method bool QXmlDefaultHandler::warning(const QXmlParseException &exception)

This method can be reimplemented in a derived class.