Qt 4.8
Classes | Public Types | Public Functions | Static Public Functions | Properties | List of all members
QPatternist::XsdWildcard Class Reference

Represents a XSD wildcard object. More...

#include <qxsdwildcard_p.h>

Inheritance diagram for QPatternist::XsdWildcard:
QPatternist::XsdTerm QPatternist::NamedSchemaComponent QPatternist::XsdAnnotated QPatternist::SchemaComponent QSharedData

Classes

class  NamespaceConstraint
 

Public Types

enum  ProcessContents { Strict, Lax, Skip }
 
typedef QExplicitlySharedDataPointer< XsdWildcardPtr
 
- Public Types inherited from QPatternist::XsdTerm
typedef QExplicitlySharedDataPointer< XsdTermPtr
 
- Public Types inherited from QPatternist::NamedSchemaComponent
enum  BlockingConstraint { RestrictionConstraint = 1, ExtensionConstraint = 2, SubstitutionConstraint = 4 }
 
typedef QExplicitlySharedDataPointer< NamedSchemaComponentPtr
 

Public Functions

virtual bool isWildcard () const
 
NamespaceConstraint::Ptr namespaceConstraint () const
 
ProcessContents processContents () const
 
void setNamespaceConstraint (const NamespaceConstraint::Ptr &constraint)
 
void setProcessContents (ProcessContents contents)
 
 XsdWildcard ()
 
- Public Functions inherited from QPatternist::XsdTerm
virtual bool isElement () const
 
virtual bool isModelGroup () const
 
virtual bool isReference () 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
 

Static Public Functions

static QString absentNamespace ()
 

Properties

NamespaceConstraint::Ptr m_namespaceConstraint
 
ProcessContents m_processContents
 

Additional Inherited Members

- Public Variables inherited from QSharedData
QAtomicInt ref
 
- Protected Functions inherited from QPatternist::XsdTerm
 XsdTerm ()
 

Detailed Description

Represents a XSD wildcard object.

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

It contains information from either an any object or an anyAttribute object.

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 qxsdwildcard_p.h.

Typedefs

◆ Ptr

Definition at line 80 of file qxsdwildcard_p.h.

Enumerations

◆ ProcessContents

Describes the type of content processing of the wildcard.

Enumerator
Strict 

There must be a top-level declaration for the item available, or the item must have an xsi:type, and the item must be valid as appropriate.

Lax 

If the item has a uniquely determined declaration available, it must be valid with respect to that definition.

Skip 

No constraints at all: the item must simply be well-formed XML.

Definition at line 148 of file qxsdwildcard_p.h.

149  {
150  Strict,
151  Lax,
152  Skip
153  };
No constraints at all: the item must simply be well-formed XML.
There must be a top-level declaration for the item available, or the item must have an xsi:type...
If the item has a uniquely determined declaration available, it must be valid with respect to that de...

Constructors and Destructors

◆ XsdWildcard()

XsdWildcard::XsdWildcard ( )

Creates a new wildcard object.

Definition at line 83 of file qxsdwildcard.cpp.

84  : m_namespaceConstraint(new NamespaceConstraint())
86 {
88 }
ProcessContents m_processContents
NamespaceConstraint::Ptr m_namespaceConstraint
There must be a top-level declaration for the item available, or the item must have an xsi:type...

Functions

◆ absentNamespace()

QString XsdWildcard::absentNamespace ( )
static

◆ isWildcard()

bool XsdWildcard::isWildcard ( ) const
virtual

Returns always true, used to avoid dynamic casts.

Reimplemented from QPatternist::XsdTerm.

Definition at line 90 of file qxsdwildcard.cpp.

91 {
92  return true;
93 }

◆ namespaceConstraint()

XsdWildcard::NamespaceConstraint::Ptr XsdWildcard::namespaceConstraint ( ) const

◆ processContents()

XsdWildcard::ProcessContents XsdWildcard::processContents ( ) const

◆ setNamespaceConstraint()

void XsdWildcard::setNamespaceConstraint ( const NamespaceConstraint::Ptr constraint)

Sets the namespace constraint of the wildcard.

See also
Namespace Constraint Definition

Definition at line 95 of file qxsdwildcard.cpp.

96 {
98 }
NamespaceConstraint::Ptr m_namespaceConstraint
NamespaceConstraint::Ptr namespaceConstraint() const

◆ setProcessContents()

void XsdWildcard::setProcessContents ( ProcessContents  contents)

Properties

◆ m_namespaceConstraint

NamespaceConstraint::Ptr QPatternist::XsdWildcard::m_namespaceConstraint
private

Definition at line 190 of file qxsdwildcard_p.h.

Referenced by namespaceConstraint(), setNamespaceConstraint(), and XsdWildcard().

◆ m_processContents

ProcessContents QPatternist::XsdWildcard::m_processContents
private

Definition at line 191 of file qxsdwildcard_p.h.

Referenced by processContents(), and setProcessContents().


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