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

Represents a XSD alternative object. More...

#include <qxsdalternative_p.h>

Inheritance diagram for QPatternist::XsdAlternative:
QPatternist::NamedSchemaComponent QPatternist::XsdAnnotated QPatternist::SchemaComponent QSharedData

Public Types

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

Public Functions

void setTest (const XsdXPathExpression::Ptr &test)
 
void setType (const SchemaType::Ptr &type)
 
XsdXPathExpression::Ptr test () const
 
SchemaType::Ptr type () const
 
- 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...
 
- Public Functions inherited from QPatternist::XsdAnnotated
void addAnnotation (const XsdAnnotation::Ptr &annotation)
 
void addAnnotations (const XsdAnnotation::List &annotations)
 
XsdAnnotation::List annotations () const
 

Properties

XsdXPathExpression::Ptr m_test
 
SchemaType::Ptr m_type
 

Additional Inherited Members

- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Represents a XSD alternative object.

Author
Tobias Koenig tobia.nosp@m.s.ko.nosp@m.enig@.nosp@m.noki.nosp@m.a.com

Definition at line 74 of file qxsdalternative_p.h.

Typedefs

◆ List

Definition at line 78 of file qxsdalternative_p.h.

◆ Ptr

Definition at line 77 of file qxsdalternative_p.h.

Functions

◆ setTest()

void XsdAlternative::setTest ( const XsdXPathExpression::Ptr test)

Sets the xpath test of the alternative.

See also
Test Definition

Definition at line 48 of file qxsdalternative.cpp.

Referenced by QPatternist::XsdSchemaParser::parseAlternative().

49 {
50  m_test = test;
51 }
XsdXPathExpression::Ptr m_test
XsdXPathExpression::Ptr test() const

◆ setType()

void XsdAlternative::setType ( const SchemaType::Ptr type)

◆ test()

XsdXPathExpression::Ptr XsdAlternative::test ( ) const

Returns the xpath test of the alternative.

Definition at line 53 of file qxsdalternative.cpp.

Referenced by QPatternist::XsdSchemaParser::parseGlobalElement(), QPatternist::XsdSchemaParser::parseLocalElement(), and setTest().

54 {
55  return m_test;
56 }
XsdXPathExpression::Ptr m_test

◆ type()

SchemaType::Ptr XsdAlternative::type ( ) const

Returns the type of the alternative.

Definition at line 63 of file qxsdalternative.cpp.

Referenced by setType().

64 {
65  return m_type;
66 }

Properties

◆ m_test

XsdXPathExpression::Ptr QPatternist::XsdAlternative::m_test
private

Definition at line 105 of file qxsdalternative_p.h.

Referenced by setTest(), and test().

◆ m_type

SchemaType::Ptr QPatternist::XsdAlternative::m_type
private

Definition at line 106 of file qxsdalternative_p.h.

Referenced by setType(), and type().


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