Qt 4.8
Public Types | Public Functions | Properties | List of all members
QPatternist::XsdParticle Class Reference

Represents a XSD particle object. More...

#include <qxsdparticle_p.h>

Inheritance diagram for QPatternist::XsdParticle:
QPatternist::NamedSchemaComponent QPatternist::SchemaComponent QSharedData

Public Types

typedef QList< XsdParticle::PtrList
 
typedef QExplicitlySharedDataPointer< XsdParticlePtr
 
- Public Types inherited from QPatternist::NamedSchemaComponent
enum  BlockingConstraint { RestrictionConstraint = 1, ExtensionConstraint = 2, SubstitutionConstraint = 4 }
 
typedef QExplicitlySharedDataPointer< NamedSchemaComponentPtr
 

Public Functions

unsigned int maximumOccurs () const
 
bool maximumOccursUnbounded () const
 
unsigned int minimumOccurs () const
 
void setMaximumOccurs (unsigned int occurrence)
 
void setMaximumOccursUnbounded (bool unbounded)
 
void setMinimumOccurs (unsigned int occurrence)
 
void setTerm (const XsdTerm::Ptr &term)
 
XsdTerm::Ptr term () const
 
 XsdParticle ()
 
- Public Functions inherited from QPatternist::NamedSchemaComponent
virtual QString displayName (const NamePool::Ptr &namePool) const
 
virtual QXmlName name (const NamePool::Ptr &namePool) const
 
 NamedSchemaComponent ()
 
void setName (const QXmlName &name)
 
virtual ~NamedSchemaComponent ()
 
- Public Functions inherited from QPatternist::SchemaComponent
 SchemaComponent ()
 
virtual ~SchemaComponent ()
 
- Public Functions inherited from QSharedData
 QSharedData ()
 Constructs a QSharedData object with a reference count of 0. More...
 
 QSharedData (const QSharedData &)
 Constructs a QSharedData object with reference count 0. More...
 

Properties

unsigned int m_maximumOccurs
 
bool m_maximumOccursUnbounded
 
unsigned int m_minimumOccurs
 
XsdTerm::Ptr m_term
 

Additional Inherited Members

- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Represents a XSD particle object.

This class represents the particle object of a XML schema as described here.

It contains information about the number of occurrence and a reference to either an element object, a group object or an any object.

See also
XML Schema API reference
Author
Tobias Koenig tobia.nosp@m.s.ko.nosp@m.enig@.nosp@m.noki.nosp@m.a.com

Definition at line 79 of file qxsdparticle_p.h.

Typedefs

◆ List

Definition at line 83 of file qxsdparticle_p.h.

◆ Ptr

Definition at line 82 of file qxsdparticle_p.h.

Constructors and Destructors

◆ XsdParticle()

XsdParticle::XsdParticle ( )

Creates a new particle object.

Definition at line 48 of file qxsdparticle.cpp.

49  : m_minimumOccurs(1)
50  , m_maximumOccurs(1)
52 {
53 }

Functions

◆ maximumOccurs()

unsigned int XsdParticle::maximumOccurs ( ) const

◆ maximumOccursUnbounded()

bool XsdParticle::maximumOccursUnbounded ( ) const

◆ minimumOccurs()

unsigned int XsdParticle::minimumOccurs ( ) const

◆ setMaximumOccurs()

void XsdParticle::setMaximumOccurs ( unsigned int  occurrence)

◆ setMaximumOccursUnbounded()

void XsdParticle::setMaximumOccursUnbounded ( bool  unbounded)

◆ setMinimumOccurs()

void XsdParticle::setMinimumOccurs ( unsigned int  occurrence)

◆ setTerm()

void XsdParticle::setTerm ( const XsdTerm::Ptr term)

◆ term()

XsdTerm::Ptr XsdParticle::term ( ) const

Properties

◆ m_maximumOccurs

unsigned int QPatternist::XsdParticle::m_maximumOccurs
private

Definition at line 144 of file qxsdparticle_p.h.

Referenced by maximumOccurs(), and setMaximumOccurs().

◆ m_maximumOccursUnbounded

bool QPatternist::XsdParticle::m_maximumOccursUnbounded
private

Definition at line 145 of file qxsdparticle_p.h.

Referenced by maximumOccursUnbounded(), and setMaximumOccursUnbounded().

◆ m_minimumOccurs

unsigned int QPatternist::XsdParticle::m_minimumOccurs
private

Definition at line 143 of file qxsdparticle_p.h.

Referenced by minimumOccurs(), and setMinimumOccurs().

◆ m_term

XsdTerm::Ptr QPatternist::XsdParticle::m_term
private

Definition at line 146 of file qxsdparticle_p.h.

Referenced by setTerm(), and term().


The documentation for this class was generated from the following files: