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

#include <qxsdelement_p.h>

Inheritance diagram for QPatternist::XsdElement::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 element.

See also
Value Constraint Definition

Definition at line 185 of file qxsdelement_p.h.

Typedefs

◆ Ptr

Definition at line 188 of file qxsdelement_p.h.

Enumerations

◆ Variety

Describes the value constraint of an element.

Enumerator
Default 

The element has a default value set.

Fixed 

The element has a fixed value set.

Definition at line 193 of file qxsdelement_p.h.

194  {
195  Default,
196  Fixed
197  };
The element has a default value set.
The element has a fixed value set.

Functions

◆ lexicalForm()

QString XsdElement::ValueConstraint::lexicalForm ( ) const

Returns the lexical form of the constraint.

Definition at line 93 of file qxsdelement.cpp.

94 {
95  return m_lexicalForm;
96 }

◆ setLexicalForm()

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

Sets the lexical form of the constraint.

Definition at line 88 of file qxsdelement.cpp.

89 {
90  m_lexicalForm = form;
91 }

◆ setValue()

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

Sets the value of the constraint.

Definition at line 78 of file qxsdelement.cpp.

◆ setVariety()

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

Sets the variety of the element value constraint.

Definition at line 68 of file qxsdelement.cpp.

◆ value()

QString XsdElement::ValueConstraint::value ( ) const

Returns the value of the constraint.

Definition at line 83 of file qxsdelement.cpp.

84 {
85  return m_value;
86 }

◆ variety()

XsdElement::ValueConstraint::Variety XsdElement::ValueConstraint::variety ( ) const

Returns the variety of the element value constraint.

Definition at line 73 of file qxsdelement.cpp.

74 {
75  return m_variety;
76 }

Properties

◆ m_lexicalForm

QString QPatternist::XsdElement::ValueConstraint::m_lexicalForm
private

Definition at line 232 of file qxsdelement_p.h.

◆ m_value

QString QPatternist::XsdElement::ValueConstraint::m_value
private

Definition at line 231 of file qxsdelement_p.h.

◆ m_variety

Variety QPatternist::XsdElement::ValueConstraint::m_variety
private

Definition at line 230 of file qxsdelement_p.h.


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