com.trolltech.qt.xmlpatterns
Class QSimpleXmlNodeModel
java.lang.Object
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.xmlpatterns.QAbstractXmlNodeModel
com.trolltech.qt.xmlpatterns.QSimpleXmlNodeModel
- All Implemented Interfaces:
- QtJambiInterface, java.lang.Cloneable
public abstract class QSimpleXmlNodeModel
- extends QAbstractXmlNodeModel
- implements java.lang.Cloneable
The QSimpleXmlNodeModel class is an implementation of QAbstractXmlNodeModel sufficient for many common cases. Since QAbstractXmlNodeModel::iterate() requires a subclass of QAbstractXmlForwardIterator to be returned for each axis, it can be a bit time consuming to implement. QSimpleXmlNodeModel has a default implementation of nextFromSimpleAxis() that is sufficient for navigating many abstract XML node models. Behind the scenes, QSimpleXmlNodeModel::iterate()emulates the full XPath axes using nextFromSimpleAxis().
QSimpleXmlNodeModel also provides default implementations for many other member functions of QAbstractXmlNodeModel. These default implementations are suitable for a wide range of abstract XML node models.
Subclasses of QSimpleXmlNodeModel must be thread-safe.
| Methods inherited from class com.trolltech.qt.xmlpatterns.QAbstractXmlNodeModel |
attributes, baseUri, compareOrder, createIndex, createIndex, createIndex, createIndex, documentUri, elementById, kind, name, namespaceBindings, nativePointerArray, nextFromSimpleAxis, nodesByIdref, root, stringValue, typedValue |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QSimpleXmlNodeModel
public QSimpleXmlNodeModel(QXmlNamePool namePool)
- Constructs a
QSimpleXmlNodeModel for use with with the specified namePool.
fromNativePointer
public static QSimpleXmlNodeModel fromNativePointer(QNativePointer nativePointer)
- This method returns the QSimpleXmlNodeModel instance pointed to by nativePointer.
nativePointerArray
public static QNativePointer nativePointerArray(QSimpleXmlNodeModel[] array)
- This function returns a QNativePointer that is pointing to the specified QSimpleXmlNodeModel array.
namePool
public final QXmlNamePool namePool()
- Returns the name pool that is associated with this model. The implementation of
name()
would use this to create names.
clone
public QSimpleXmlNodeModel clone()
- Description copied from class:
QAbstractXmlNodeModel
- This method is reimplemented for internal reasons
- Overrides:
clone in class QAbstractXmlNodeModel