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

Represents a XSD annotation object. More...

#include <qxsdannotation_p.h>

Inheritance diagram for QPatternist::XsdAnnotation:
QPatternist::NamedSchemaComponent QPatternist::SchemaComponent QSharedData

Public Types

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

Public Functions

void addApplicationInformation (const XsdApplicationInformation::Ptr &information)
 
void addDocumentation (const XsdDocumentation::Ptr &documentation)
 
XsdApplicationInformation::List applicationInformation () const
 
XsdDocumentation::List documentation () const
 
DerivedString< TypeID >::Ptr id () const
 
void setId (const DerivedString< TypeID >::Ptr &id)
 
- 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...
 

Properties

XsdApplicationInformation::List m_applicationInformation
 
XsdDocumentation::List m_documentations
 
DerivedString< TypeID >::Ptr m_id
 

Additional Inherited Members

- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Represents a XSD annotation object.

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

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

Definition at line 74 of file qxsdannotation_p.h.

Typedefs

◆ List

Definition at line 78 of file qxsdannotation_p.h.

◆ Ptr

Definition at line 77 of file qxsdannotation_p.h.

Functions

◆ addApplicationInformation()

void XsdAnnotation::addApplicationInformation ( const XsdApplicationInformation::Ptr information)

Adds an application information to the annotation.

The application information is meant to be interpreted by a software system, e.g. other parts of the XML processor pipeline.

Definition at line 58 of file qxsdannotation.cpp.

59 {
60  m_applicationInformation.append(information);
61 }
XsdApplicationInformation::List m_applicationInformation
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507

◆ addDocumentation()

void XsdAnnotation::addDocumentation ( const XsdDocumentation::Ptr documentation)

Adds a documentation to the annotation.

The documentation is meant to be read by human being, e.g. additional constraints or information about schema components.

Definition at line 68 of file qxsdannotation.cpp.

69 {
70  m_documentations.append(documentation);
71 }
XsdDocumentation::List m_documentations
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507

◆ applicationInformation()

XsdApplicationInformation::List XsdAnnotation::applicationInformation ( ) const

Returns the list of all application information of the annotation.

Definition at line 63 of file qxsdannotation.cpp.

64 {
66 }
XsdApplicationInformation::List m_applicationInformation

◆ documentation()

XsdDocumentation::List XsdAnnotation::documentation ( ) const

Returns the list of all documentations of the annotation.

Definition at line 73 of file qxsdannotation.cpp.

74 {
75  return m_documentations;
76 }
XsdDocumentation::List m_documentations

◆ id()

DerivedString< TypeID >::Ptr XsdAnnotation::id ( ) const

Returns the id of the annotation.

Definition at line 53 of file qxsdannotation.cpp.

Referenced by setId().

54 {
55  return m_id;
56 }
DerivedString< TypeID >::Ptr m_id

◆ setId()

void XsdAnnotation::setId ( const DerivedString< TypeID >::Ptr id)

Sets the id of the annotation.

Definition at line 48 of file qxsdannotation.cpp.

49 {
50  m_id = id;
51 }
DerivedString< TypeID >::Ptr id() const
DerivedString< TypeID >::Ptr m_id

Properties

◆ m_applicationInformation

XsdApplicationInformation::List QPatternist::XsdAnnotation::m_applicationInformation
private

Definition at line 118 of file qxsdannotation_p.h.

Referenced by addApplicationInformation(), and applicationInformation().

◆ m_documentations

XsdDocumentation::List QPatternist::XsdAnnotation::m_documentations
private

Definition at line 119 of file qxsdannotation_p.h.

Referenced by addDocumentation(), and documentation().

◆ m_id

DerivedString<TypeID>::Ptr QPatternist::XsdAnnotation::m_id
private

Definition at line 117 of file qxsdannotation_p.h.

Referenced by id(), and setId().


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