![]() |
CopperSpice API
1.9.2
|
Provides default implementation for QAbstractXmlNodeModel. More...
Additional Inherited Members | |
![]() | |
typedef QList< Ptr > | List |
typedef QExplicitlySharedDataPointer< QAbstractXmlNodeModel > | Ptr |
![]() | |
enum | SimpleAxis |
![]() | |
virtual QVector< QXmlNodeModelIndex > | attributes (const QXmlNodeModelIndex &element) const = 0 |
QXmlNodeModelIndex | createIndex (qint64 data) const |
QXmlNodeModelIndex | createIndex (qint64 data, qint64 additionalData) const |
QXmlNodeModelIndex | createIndex (void *pointer, qint64 additionalData=0) const |
virtual QXmlNodeModelIndex | nextFromSimpleAxis (SimpleAxis axis, const QXmlNodeModelIndex &origin) const = 0 |
QSimpleXmlNodeModel provides default implementations of the QAbstractXmlNodeModel methods. These methods are suitable for a wide range of node models. Subclassing QAbstractXmlNodeModel can be a significant task, because it requires implementing several, complex member functions.
Subclasses of QSimpleXmlNodeModel must be thread-safe.
QSimpleXmlNodeModel::QSimpleXmlNodeModel | ( | const QXmlNamePool & | namePool | ) |
Constructs a QSimpleXmlNodeModel for use with the specified namePool.
|
virtual |
Destructor.
|
overridevirtual |
Returns the base URI for node. This is always the document URI.
Implements QAbstractXmlNodeModel::baseUri()
|
overridevirtual |
Always returns a default constructed QXmlNodeModelIndex instance, regardless of id. This effectively means the model has no elements that have an id.
Implements QAbstractXmlNodeModel::elementById()
QXmlNamePool & QSimpleXmlNodeModel::namePool | ( | ) | const |
Returns the name pool associated with this model. The implementation of name() will use this name pool to create names.
|
overridevirtual |
Always returns an empty QVector. This signals that no namespace bindings are in scope for node.
Implements QAbstractXmlNodeModel::namespaceBindings()
|
overridevirtual |
Always returns an empty vector, regardless of idref. This effectively means the model has no elements or attributes of type IDREF
.
Implements QAbstractXmlNodeModel::nodesByIdref()
|
overridevirtual |
If node is an element or attribute, typedValue() is called, and the return value converted to a string, as per XQuery's rules. If the node is another type of node, the empty string is returned.
If this method is overridden for comments or processing instructions, it is important to remember to call it (for elements and attributes having values not of type xs:string
) to ensure that the values are formatted according to XQuery.
Implements QAbstractXmlNodeModel::stringValue()