Qt 4.8
|
Represents a XSD attribute use object. More...
#include <qxsdattributeuse_p.h>
Classes | |
class | ValueConstraint |
Public Types | |
typedef QList< XsdAttributeUse::Ptr > | List |
typedef QExplicitlySharedDataPointer< XsdAttributeUse > | Ptr |
enum | UseType { OptionalUse, RequiredUse, ProhibitedUse } |
Public Types inherited from QPatternist::XsdAttributeTerm | |
typedef QExplicitlySharedDataPointer< XsdAttributeTerm > | Ptr |
Public Types inherited from QPatternist::NamedSchemaComponent | |
enum | BlockingConstraint { RestrictionConstraint = 1, ExtensionConstraint = 2, SubstitutionConstraint = 4 } |
typedef QExplicitlySharedDataPointer< NamedSchemaComponent > | Ptr |
Properties | |
XsdAttribute::Ptr | m_attribute |
UseType | m_useType |
ValueConstraint::Ptr | m_valueConstraint |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Represents a XSD attribute use object.
This class represents the attribute use object of a XML schema as described here.
It contains information from a local attribute declaration (as child of complexType or attributeGroup object).
All other occurrences of the attribute object are represented by the XsdAttribute class.
Definition at line 81 of file qxsdattributeuse_p.h.
Definition at line 85 of file qxsdattributeuse_p.h.
Definition at line 84 of file qxsdattributeuse_p.h.
Describes the use type of the attribute use.
Enumerator | |
---|---|
OptionalUse | The attribute can be there but doesn't need to. |
RequiredUse | The attribute must be there. |
ProhibitedUse | The attribute is not allowed to be there. |
Definition at line 150 of file qxsdattributeuse_p.h.
XsdAttributeUse::XsdAttributeUse | ( | ) |
Creates a new attribute use object.
Definition at line 91 of file qxsdattributeuse.cpp.
XsdAttribute::Ptr XsdAttributeUse::attribute | ( | ) | const |
Returns the attribute the attribute use is referring to.
Definition at line 121 of file qxsdattributeuse.cpp.
Referenced by setAttribute().
|
virtual |
Always returns true, used to avoid dynamic casts.
Reimplemented from QPatternist::XsdAttributeTerm.
Reimplemented in QPatternist::XsdAttributeReference.
Definition at line 96 of file qxsdattributeuse.cpp.
bool XsdAttributeUse::isRequired | ( | ) | const |
Returns whether the attribute use is required.
Definition at line 111 of file qxsdattributeuse.cpp.
void XsdAttributeUse::setAttribute | ( | const XsdAttribute::Ptr & | attribute | ) |
Sets the attribute
the attribute use is referring to. That is either a local definition as child of a complexType or attributeGroup object, or a reference defined by the 'ref' attribute.
Definition at line 116 of file qxsdattributeuse.cpp.
void XsdAttributeUse::setUseType | ( | UseType | type | ) |
Sets the use type
of the attribute use.
Definition at line 101 of file qxsdattributeuse.cpp.
void XsdAttributeUse::setValueConstraint | ( | const ValueConstraint::Ptr & | constraint | ) |
Sets the value constraint
of the attribute use.
Definition at line 126 of file qxsdattributeuse.cpp.
XsdAttributeUse::UseType XsdAttributeUse::useType | ( | ) | const |
XsdAttributeUse::ValueConstraint::Ptr XsdAttributeUse::valueConstraint | ( | ) | const |
Returns the value constraint of the attribute use.
Definition at line 131 of file qxsdattributeuse.cpp.
|
private |
Definition at line 215 of file qxsdattributeuse_p.h.
Referenced by attribute(), and setAttribute().
|
private |
Definition at line 214 of file qxsdattributeuse_p.h.
Referenced by isRequired(), setUseType(), and useType().
|
private |
Definition at line 216 of file qxsdattributeuse_p.h.
Referenced by setValueConstraint(), and valueConstraint().