Qyoto  4.0.7
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
QtXmlPatterns.QSimpleXmlNodeModel Class Reference

The QSimpleXmlNodeModel class is an implementation of QAbstractXmlNodeModel sufficient for many common cases. More...

Inheritance diagram for QtXmlPatterns.QSimpleXmlNodeModel:
Collaboration diagram for QtXmlPatterns.QSimpleXmlNodeModel:

Public Member Functions

 QSimpleXmlNodeModel (QXmlNamePool namePool)
  More...
 
override void CreateProxy ()
 
override QUrl BaseUri (QXmlNodeModelIndex node)
  More...
 
override QXmlNodeModelIndex ElementById (QXmlName id)
  More...
 
override
System.Collections.Generic.List
< QXmlName
NamespaceBindings (QXmlNodeModelIndex node)
  More...
 
override
System.Collections.Generic.List
< QXmlNodeModelIndex
NodesByIdref (QXmlName idref)
  More...
 
override string StringValue (QXmlNodeModelIndex node)
  More...
 
new void Dispose ()
 
- Public Member Functions inherited from QtXmlPatterns.QAbstractXmlNodeModel
 QAbstractXmlNodeModel ()
  More...
 
abstract
QXmlNodeModelIndex.DocumentOrder 
CompareOrder (QXmlNodeModelIndex ni1, QXmlNodeModelIndex ni2)
  More...
 
abstract QUrl DocumentUri (QXmlNodeModelIndex ni)
  More...
 
virtual bool IsDeepEqual (QXmlNodeModelIndex ni1, QXmlNodeModelIndex ni2)
 
abstract
QXmlNodeModelIndex.NodeKind 
Kind (QXmlNodeModelIndex ni)
  More...
 
abstract QXmlName Name (QXmlNodeModelIndex ni)
  More...
 
virtual short NamespaceForPrefix (QXmlNodeModelIndex ni, short prefix)
 
abstract QXmlNodeModelIndex Root (QXmlNodeModelIndex n)
  More...
 
new QSourceLocation SourceLocation (QXmlNodeModelIndex index)
  More...
 
abstract object TypedValue (QXmlNodeModelIndex n)
  More...
 
new void Dispose ()
 
- Public Member Functions inherited from QtCore.QSharedData
 QSharedData ()
  More...
 
 QSharedData (IQSharedData other)
  More...
 
new void Dispose ()
 

Protected Member Functions

 QSimpleXmlNodeModel (System.Type dummy)
 
- Protected Member Functions inherited from QtXmlPatterns.QAbstractXmlNodeModel
 QAbstractXmlNodeModel (System.Type dummy)
 
abstract
System.Collections.Generic.List
< QXmlNodeModelIndex
Attributes (QXmlNodeModelIndex element)
  More...
 
new QXmlNodeModelIndex CreateIndex (long data)
  More...
 
new QXmlNodeModelIndex CreateIndex (long data, long additionalData)
  More...
 
abstract QXmlNodeModelIndex NextFromSimpleAxis (QAbstractXmlNodeModel.SimpleAxis axis, QXmlNodeModelIndex origin)
  More...
 
- Protected Member Functions inherited from QtCore.QSharedData
 QSharedData (System.Type dummy)
 

Properties

QXmlNamePool NamePool [get]
  More...
 

Additional Inherited Members

- Public Types inherited from QtXmlPatterns.QAbstractXmlNodeModel
enum  NodeCopySetting { InheritNamespaces = 1, PreserveNamespaces = 2 }
 
enum  SimpleAxis { FirstChild = 1, NextSibling = 3, Parent = 0, PreviousSibling = 2 }
  More...
 
- Protected Attributes inherited from QtCore.QSharedData
SmokeInvocation interceptor
 

Detailed Description

The QSimpleXmlNodeModel class is an implementation of QAbstractXmlNodeModel sufficient for many common cases.

Subclassing QAbstractXmlNodeModel can be a significant task, because it requires implementing several, complex member functions. QSimpleXmlNodeModel provides default implementations of these member functions that are suitable for a wide range of node models.

Subclasses of QSimpleXmlNodeModel must be thread-safe.

Constructor & Destructor Documentation

QtXmlPatterns.QSimpleXmlNodeModel.QSimpleXmlNodeModel ( System.Type  dummy)
protected
QtXmlPatterns.QSimpleXmlNodeModel.QSimpleXmlNodeModel ( QXmlNamePool  namePool)

Constructs a QSimpleXmlNodeModel for use with with the specified namePool.

Here is the call graph for this function:

Member Function Documentation

override QUrl QtXmlPatterns.QSimpleXmlNodeModel.BaseUri ( QXmlNodeModelIndex  node)
virtual

Reimplemented from QAbstractXmlNodeModel::baseUri().

Returns the base URI for node. This is always the document URI.

See also documentUri().

Implements QtXmlPatterns.QAbstractXmlNodeModel.

override void QtXmlPatterns.QSimpleXmlNodeModel.CreateProxy ( )
virtual

Reimplemented from QtXmlPatterns.QAbstractXmlNodeModel.

Here is the caller graph for this function:

new void QtXmlPatterns.QSimpleXmlNodeModel.Dispose ( )
override QXmlNodeModelIndex QtXmlPatterns.QSimpleXmlNodeModel.ElementById ( QXmlName  id)
virtual

Reimplemented from QAbstractXmlNodeModel::elementById().

Always returns a default constructed QXmlNodeModelIndex instance, regardless of id.

This effectively means the model has no elements that have an id.

Implements QtXmlPatterns.QAbstractXmlNodeModel.

override System.Collections.Generic.List<QXmlName> QtXmlPatterns.QSimpleXmlNodeModel.NamespaceBindings ( QXmlNodeModelIndex  node)
virtual

Reimplemented from QAbstractXmlNodeModel::namespaceBindings().

Always returns an empty QVector. This signals that no namespace bindings are in scope for node.

Implements QtXmlPatterns.QAbstractXmlNodeModel.

override System.Collections.Generic.List<QXmlNodeModelIndex> QtXmlPatterns.QSimpleXmlNodeModel.NodesByIdref ( QXmlName  idref)
virtual

Reimplemented from QAbstractXmlNodeModel::nodesByIdref().

Always returns an empty vector, regardless of idref.

This effectively means the model has no elements or attributes of type IDREF.

Implements QtXmlPatterns.QAbstractXmlNodeModel.

override string QtXmlPatterns.QSimpleXmlNodeModel.StringValue ( QXmlNodeModelIndex  node)
virtual

Reimplemented from QAbstractXmlNodeModel::stringValue().

If node is an element or attribute, typedValue() is called, and the return value converted to a string, as per XQuery's rules.

If node is another type of node, the empty string is returned.

If this function 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 QtXmlPatterns.QAbstractXmlNodeModel.

Property Documentation

QXmlNamePool QtXmlPatterns.QSimpleXmlNodeModel.NamePool
get

Returns the name pool associated with this model. The implementation of name() will use this name pool to create names.