44 #include <QXmlNamePool> 122 return AtomicValue::toXDM(candidate).stringValue();
The QVariant class acts like a union for the most common Qt data types.
virtual QVector< QXmlName > namespaceBindings(const QXmlNodeModelIndex &) const
Always returns an empty QVector.
The QXmlNodeModelIndex class identifies a node in an XML node model subclassed from QAbstractXmlNodeM...
#define QT_END_NAMESPACE
This macro expands to.
bool isNull() const
Returns true if this is a NULL variant, false otherwise.
virtual QUrl documentUri(const QXmlNodeModelIndex &ni) const =0
Returns the document URI of n.
virtual QXmlNodeModelIndex::NodeKind kind(const QXmlNodeModelIndex &ni) const =0
Returns a value indicating the kind of node identified by ni.
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
The QXmlNamePool class is a table of shared strings referenced by instances of QXmlName.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QAbstractXmlNodeModel class is an abstract base class for modeling non-XML data to look like XML ...
The namespace for the internal API of QtXmlPatterns.
virtual ~QSimpleXmlNodeModel()
Destructor.
virtual QString stringValue(const QXmlNodeModelIndex &node) const
If node is an element or attribute, typedValue() is called, and the return value converted to a strin...
QXmlNamePool & namePool() const
Returns the name pool associated with this model.
virtual QVariant typedValue(const QXmlNodeModelIndex &n) const =0
Returns the typed value for node node.
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
NodeKind
Identifies a kind of node.
QSimpleXmlNodeModel(const QXmlNamePool &namePool)
Constructs a QSimpleXmlNodeModel for use with with the specified namePool.
virtual QVector< QXmlNodeModelIndex > nodesByIdref(const QXmlName &idref) const
Always returns an empty vector, regardless of idref.
virtual QXmlNodeModelIndex elementById(const QXmlName &id) const
Always returns a default constructed QXmlNodeModelIndex instance, regardless of id.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
virtual QUrl baseUri(const QXmlNodeModelIndex &node) const
Returns the base URI for node.
QSimpleXmlNodeModelPrivate(const QXmlNamePool &np)
The QSimpleXmlNodeModel class is an implementation of QAbstractXmlNodeModel sufficient for many commo...