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

Describes the content type of a complex type. More...

#include <qxsdcomplextype_p.h>

Inheritance diagram for QPatternist::XsdComplexType::ContentType:
QSharedData

Public Types

typedef QExplicitlySharedDataPointer< ContentTypePtr
 
enum  Variety { Empty = 0, Simple, ElementOnly, Mixed }
 

Public Functions

OpenContent::Ptr openContent () const
 
XsdParticle::Ptr particle () const
 
void setOpenContent (const OpenContent::Ptr &content)
 
void setParticle (const XsdParticle::Ptr &particle)
 
void setSimpleType (const AnySimpleType::Ptr &type)
 
void setVariety (Variety variety)
 
AnySimpleType::Ptr simpleType () const
 
Variety variety () const
 
- 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

OpenContent::Ptr m_openContent
 
XsdParticle::Ptr m_particle
 
XsdSimpleType::Ptr m_simpleType
 
Variety m_variety
 

Additional Inherited Members

- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Describes the content type of a complex type.

Definition at line 143 of file qxsdcomplextype_p.h.

Typedefs

◆ Ptr

Definition at line 146 of file qxsdcomplextype_p.h.

Enumerations

◆ Variety

Describes the variety of the content type.

Enumerator
Empty 

The complex type has no further content.

Simple 

The complex type has only simple type content (e.g. text, number etc.)

ElementOnly 

The complex type has further elements or attributes but no text as content.

Mixed 

The complex type has further elements or attributes and text as content.

Definition at line 151 of file qxsdcomplextype_p.h.

152  {
153  Empty = 0,
154  Simple,
155  ElementOnly,
156  Mixed
157  };
The complex type has further elements or attributes and text as content.
The complex type has only simple type content (e.g. text, number etc.)
The complex type has further elements or attributes but no text as content.
The complex type has no further content.

Functions

◆ openContent()

XsdComplexType::OpenContent::Ptr XsdComplexType::ContentType::openContent ( ) const

Returns the open content object of the content type, or an empty pointer if its variety is neither ElementOnly nor Mixed.

Definition at line 93 of file qxsdcomplextype.cpp.

94 {
95  return m_openContent;
96 }

◆ particle()

XsdParticle::Ptr XsdComplexType::ContentType::particle ( ) const

Returns the particle object of the content type, or an empty pointer if its variety is neither ElementOnly nor Mixed.

Definition at line 83 of file qxsdcomplextype.cpp.

84 {
85  return m_particle;
86 }

◆ setOpenContent()

void XsdComplexType::ContentType::setOpenContent ( const OpenContent::Ptr content)

Sets the open content object of the content type.

The content type has only an open content object if its variety is ElementOnly or Mixed.

See also
OpenContent
Open Content Declaration

Definition at line 88 of file qxsdcomplextype.cpp.

89 {
90  m_openContent = content;
91 }

◆ setParticle()

void XsdComplexType::ContentType::setParticle ( const XsdParticle::Ptr particle)

Sets the particle object of the content type.

The content type has only a particle object if its variety is ElementOnly or Mixed.

See also
XsdParticle
Particle Declaration

Definition at line 78 of file qxsdcomplextype.cpp.

◆ setSimpleType()

void XsdComplexType::ContentType::setSimpleType ( const AnySimpleType::Ptr type)

Sets the simple type object of the content type.

The content type has only a simple type object if its variety is Simple.

See also
Simple Type Definition

Definition at line 98 of file qxsdcomplextype.cpp.

99 {
100  m_simpleType = type;
101 }
int type
Definition: qmetatype.cpp:239

◆ setVariety()

void XsdComplexType::ContentType::setVariety ( Variety  variety)

Sets the variety of the content type.

See also
Variety Definition

Definition at line 68 of file qxsdcomplextype.cpp.

Referenced by QPatternist::XsdComplexType::XsdComplexType().

◆ simpleType()

AnySimpleType::Ptr XsdComplexType::ContentType::simpleType ( ) const

Returns the simple type object of the content type, or an empty pointer if its variety is not Simple.

Definition at line 103 of file qxsdcomplextype.cpp.

104 {
105  return m_simpleType;
106 }

◆ variety()

XsdComplexType::ContentType::Variety XsdComplexType::ContentType::variety ( ) const

Returns the variety of the content type.

Definition at line 73 of file qxsdcomplextype.cpp.

74 {
75  return m_variety;
76 }

Properties

◆ m_openContent

OpenContent::Ptr QPatternist::XsdComplexType::ContentType::m_openContent
private

Definition at line 226 of file qxsdcomplextype_p.h.

◆ m_particle

XsdParticle::Ptr QPatternist::XsdComplexType::ContentType::m_particle
private

Definition at line 225 of file qxsdcomplextype_p.h.

◆ m_simpleType

XsdSimpleType::Ptr QPatternist::XsdComplexType::ContentType::m_simpleType
private

Definition at line 227 of file qxsdcomplextype_p.h.

◆ m_variety

Variety QPatternist::XsdComplexType::ContentType::m_variety
private

Definition at line 224 of file qxsdcomplextype_p.h.


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