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

Represents the XSD attributeGroup object. More...

#include <qxsdattributegroup_p.h>

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

Public Types

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

Public Functions

void addAttributeUse (const XsdAttributeUse::Ptr &use)
 
XsdAttributeUse::List attributeUses () const
 
void setAttributeUses (const XsdAttributeUse::List &uses)
 
void setWildcard (const XsdWildcard::Ptr &wildcard)
 
XsdWildcard::Ptr wildcard () 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

XsdAttributeUse::List m_attributeUses
 
XsdWildcard::Ptr m_wildcard
 

Additional Inherited Members

- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Represents the XSD attributeGroup object.

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

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 77 of file qxsdattributegroup_p.h.

Typedefs

◆ List

Definition at line 81 of file qxsdattributegroup_p.h.

◆ Ptr

Definition at line 80 of file qxsdattributegroup_p.h.

Functions

◆ addAttributeUse()

void XsdAttributeGroup::addAttributeUse ( const XsdAttributeUse::Ptr use)

Adds a new attribute use to the attribute group.

Definition at line 53 of file qxsdattributegroup.cpp.

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

54 {
55  m_attributeUses.append(attributeUse);
56 }
XsdAttributeUse::List m_attributeUses
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507

◆ attributeUses()

XsdAttributeUse::List XsdAttributeGroup::attributeUses ( ) const

◆ setAttributeUses()

void XsdAttributeGroup::setAttributeUses ( const XsdAttributeUse::List uses)

Sets the list of attribute uses that are defined in the attribute group.

See also
Attribute Uses

Definition at line 48 of file qxsdattributegroup.cpp.

49 {
51 }
XsdAttributeUse::List attributeUses() const
XsdAttributeUse::List m_attributeUses

◆ setWildcard()

void XsdAttributeGroup::setWildcard ( const XsdWildcard::Ptr wildcard)

Sets the attribute wildcard of the attribute group.

See also
Attribute Wildcard

Definition at line 63 of file qxsdattributegroup.cpp.

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

64 {
66 }
XsdWildcard::Ptr wildcard() const

◆ wildcard()

XsdWildcard::Ptr XsdAttributeGroup::wildcard ( ) const

Returns the attribute wildcard of the attribute group.

Definition at line 68 of file qxsdattributegroup.cpp.

Referenced by QPatternist::XsdSchemaHelper::isValidAttributeGroupRestriction(), QPatternist::XsdSchemaResolver::resolveAttributeTermReferences(), and setWildcard().

69 {
70  return m_wildcard;
71 }

Properties

◆ m_attributeUses

XsdAttributeUse::List QPatternist::XsdAttributeGroup::m_attributeUses
private

Definition at line 113 of file qxsdattributegroup_p.h.

Referenced by addAttributeUse(), attributeUses(), and setAttributeUses().

◆ m_wildcard

XsdWildcard::Ptr QPatternist::XsdAttributeGroup::m_wildcard
private

Definition at line 114 of file qxsdattributegroup_p.h.

Referenced by setWildcard(), and wildcard().


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