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

Describes the value constraint of an attribute. More...

#include <qxsdattribute_p.h>

Inheritance diagram for QPatternist::XsdAttribute::ValueConstraint:
QSharedData

Public Types

typedef QExplicitlySharedDataPointer< ValueConstraintPtr
 
enum  Variety { Default, Fixed }
 

Public Functions

QString lexicalForm () const
 
void setLexicalForm (const QString &form)
 
void setValue (const QString &value)
 
void setVariety (Variety variety)
 
QString value () 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

QString m_lexicalForm
 
QString m_value
 
Variety m_variety
 

Additional Inherited Members

- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Describes the value constraint of an attribute.

See also
Value Constraint Definition

Definition at line 143 of file qxsdattribute_p.h.

Typedefs

◆ Ptr

Definition at line 146 of file qxsdattribute_p.h.

Enumerations

◆ Variety

Describes the value constraint of an attribute.

Enumerator
Default 

The attribute has a default value set.

Fixed 

The attribute has a fixed value set.

Definition at line 151 of file qxsdattribute_p.h.

152  {
153  Default,
154  Fixed
155  };
The attribute has a default value set.
The attribute has a fixed value set.

Functions

◆ lexicalForm()

QString XsdAttribute::ValueConstraint::lexicalForm ( ) const

Returns the lexical form of the constraint.

Definition at line 95 of file qxsdattribute.cpp.

◆ setLexicalForm()

void XsdAttribute::ValueConstraint::setLexicalForm ( const QString form)

Sets the lexical form of the constraint.

See also
Lexical Form Definition

Definition at line 90 of file qxsdattribute.cpp.

◆ setValue()

void XsdAttribute::ValueConstraint::setValue ( const QString value)

Sets the value of the constraint.

See also
Value Definition

Definition at line 80 of file qxsdattribute.cpp.

◆ setVariety()

void XsdAttribute::ValueConstraint::setVariety ( Variety  variety)

Sets the variety of the attribute value constraint.

See also
Variety Definition

Definition at line 70 of file qxsdattribute.cpp.

◆ value()

QString XsdAttribute::ValueConstraint::value ( ) const

Returns the value of the constraint.

Definition at line 85 of file qxsdattribute.cpp.

86 {
87  return m_value;
88 }

◆ variety()

XsdAttribute::ValueConstraint::Variety XsdAttribute::ValueConstraint::variety ( ) const

Returns the variety of the attribute value constraint.

Definition at line 75 of file qxsdattribute.cpp.

76 {
77  return m_variety;
78 }

Properties

◆ m_lexicalForm

QString QPatternist::XsdAttribute::ValueConstraint::m_lexicalForm
private

Definition at line 196 of file qxsdattribute_p.h.

◆ m_value

QString QPatternist::XsdAttribute::ValueConstraint::m_value
private

Definition at line 195 of file qxsdattribute_p.h.

◆ m_variety

Variety QPatternist::XsdAttribute::ValueConstraint::m_variety
private

Definition at line 194 of file qxsdattribute_p.h.


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