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

Represents a XSD assertion object. More...

#include <qxsdxpathexpression_p.h>

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

Public Types

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

Public Functions

AnyURI::Ptr baseURI () const
 
AnyURI::Ptr defaultNamespace () const
 
QString expression () const
 
QList< QXmlNamenamespaceBindings () const
 
void setBaseURI (const AnyURI::Ptr &uri)
 
void setDefaultNamespace (const AnyURI::Ptr &defaultNamespace)
 
void setExpression (const QString &expression)
 
void setNamespaceBindings (const QList< QXmlName > &bindings)
 
- 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

AnyURI::Ptr m_baseURI
 
AnyURI::Ptr m_defaultNamespace
 
QString m_expression
 
QList< QXmlNamem_namespaceBindings
 

Additional Inherited Members

- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Represents a XSD assertion object.

Author
Tobias Koenig tobia.nosp@m.s.ko.nosp@m.enig@.nosp@m.noki.nosp@m.a.com
See also
XPathExpression Definition

Definition at line 74 of file qxsdxpathexpression_p.h.

Typedefs

◆ List

Definition at line 78 of file qxsdxpathexpression_p.h.

◆ Ptr

Definition at line 77 of file qxsdxpathexpression_p.h.

Functions

◆ baseURI()

AnyURI::Ptr XsdXPathExpression::baseURI ( ) const

Returns the base uri of the XPath expression.

Definition at line 73 of file qxsdxpathexpression.cpp.

74 {
75  return m_baseURI;
76 }

◆ defaultNamespace()

AnyURI::Ptr XsdXPathExpression::defaultNamespace ( ) const

Returns the default namespace of the XPath expression.

Definition at line 63 of file qxsdxpathexpression.cpp.

64 {
65  return m_defaultNamespace;
66 }

◆ expression()

QString XsdXPathExpression::expression ( ) const

Returns the expression string of the XPath expression.

Definition at line 83 of file qxsdxpathexpression.cpp.

Referenced by QPatternist::XsdValidatingInstanceReader::selectNodeSets(), and setExpression().

84 {
85  return m_expression;
86 }

◆ namespaceBindings()

QList< QXmlName > XsdXPathExpression::namespaceBindings ( ) const

Returns the list of namespace bindings of the XPath expression.

Definition at line 53 of file qxsdxpathexpression.cpp.

Referenced by QPatternist::XsdValidatingInstanceReader::selectNodeSets().

54 {
55  return m_namespaceBindings;
56 }

◆ setBaseURI()

void XsdXPathExpression::setBaseURI ( const AnyURI::Ptr uri)

Sets the base uri of the XPath expression.

See also
Base URI Definition

Definition at line 68 of file qxsdxpathexpression.cpp.

69 {
70  m_baseURI = uri;
71 }

◆ setDefaultNamespace()

void XsdXPathExpression::setDefaultNamespace ( const AnyURI::Ptr defaultNamespace)

Sets the default namespace of the XPath expression.

See also
Default Namespace Definition

Definition at line 58 of file qxsdxpathexpression.cpp.

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

59 {
60  m_defaultNamespace = defaultNs;
61 }

◆ setExpression()

void XsdXPathExpression::setExpression ( const QString expression)

◆ setNamespaceBindings()

void XsdXPathExpression::setNamespaceBindings ( const QList< QXmlName > &  bindings)

Sets the list of namespace bindings of the XPath expression.

See also
Namespace Bindings Definition
Note
We can't use a QSet<QXmlName> here, as the hash method does not take the prefix in account, so we loose entries.

Definition at line 48 of file qxsdxpathexpression.cpp.

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

49 {
50  m_namespaceBindings = set;
51 }

Properties

◆ m_baseURI

AnyURI::Ptr QPatternist::XsdXPathExpression::m_baseURI
private

Definition at line 134 of file qxsdxpathexpression_p.h.

Referenced by baseURI(), and setBaseURI().

◆ m_defaultNamespace

AnyURI::Ptr QPatternist::XsdXPathExpression::m_defaultNamespace
private

Definition at line 133 of file qxsdxpathexpression_p.h.

Referenced by defaultNamespace(), and setDefaultNamespace().

◆ m_expression

QString QPatternist::XsdXPathExpression::m_expression
private

Definition at line 135 of file qxsdxpathexpression_p.h.

Referenced by expression(), and setExpression().

◆ m_namespaceBindings

QList<QXmlName> QPatternist::XsdXPathExpression::m_namespaceBindings
private

Definition at line 132 of file qxsdxpathexpression_p.h.

Referenced by namespaceBindings(), and setNamespaceBindings().


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