Qt 4.8
|
Represents a XSD facet object. More...
#include <qxsdfacet_p.h>
Public Types | |
typedef QHash< XsdFacet::Type, XsdFacet::Ptr > | Hash |
typedef QHashIterator< XsdFacet::Type, XsdFacet::Ptr > | HashIterator |
typedef QExplicitlySharedDataPointer< XsdFacet > | Ptr |
enum | Type { None = 0, Length = 1 << 0, MinimumLength = 1 << 1, MaximumLength = 1 << 2, Pattern = 1 << 3, WhiteSpace = 1 << 4, MaximumInclusive = 1 << 5, MaximumExclusive = 1 << 6, MinimumInclusive = 1 << 7, MinimumExclusive = 1 << 8, TotalDigits = 1 << 9, FractionDigits = 1 << 10, Enumeration = 1 << 11, Assertion = 1 << 12 } |
Public Types inherited from QPatternist::NamedSchemaComponent | |
enum | BlockingConstraint { RestrictionConstraint = 1, ExtensionConstraint = 2, SubstitutionConstraint = 4 } |
typedef QExplicitlySharedDataPointer< NamedSchemaComponent > | Ptr |
Static Public Functions | |
static QString | typeName (Type type) |
Properties | |
XsdAssertion::List | m_assertions |
bool | m_fixed |
AtomicValue::List | m_multiValue |
Type | m_type |
AtomicValue::Ptr | m_value |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Represents a XSD facet object.
This class represents one of the following XML schema objects:
Definition at line 93 of file qxsdfacet_p.h.
Definition at line 118 of file qxsdfacet_p.h.
typedef QHashIterator<XsdFacet::Type, XsdFacet::Ptr> QPatternist::XsdFacet::HashIterator |
Definition at line 119 of file qxsdfacet_p.h.
Definition at line 96 of file qxsdfacet_p.h.
Describes the type of the facet.
Enumerator | |
---|---|
None | An invalid facet. |
Length | Match the exact length (Length Definition) |
MinimumLength | Match the minimum length (Minimum Length Definition) |
MaximumLength | Match the maximum length (Maximum Length Definition) |
Pattern | Match a regular expression (Pattern Definition) |
WhiteSpace | Match a whitespace rule (White Space Definition) |
MaximumInclusive | Match a maximum inclusive (Maximum Inclusive Definition) |
MaximumExclusive | Match a maximum exclusive (Maximum Exclusive Definition) |
MinimumInclusive | Match a minimum inclusive (Minimum Inclusive Definition) |
MinimumExclusive | Match a minimum exclusive (Minimum Exclusive Definition) |
TotalDigits | Match some integer digits (Total Digits Definition) |
FractionDigits | Match some double digits (Fraction Digits Definition) |
Enumeration | Match an enumeration (Enumeration Definition) |
Assertion | Match an assertion (Assertion Definition) |
Definition at line 101 of file qxsdfacet_p.h.
XsdFacet::XsdFacet | ( | ) |
XsdAssertion::List XsdFacet::assertions | ( | ) | const |
Returns the assertions of the facet or an empty pointer if facet type is not of type Assertion.
Definition at line 88 of file qxsdfacet.cpp.
Referenced by setAssertions().
bool XsdFacet::fixed | ( | ) | const |
Returns whether the facet is fixed.
Definition at line 98 of file qxsdfacet.cpp.
Referenced by setFixed().
AtomicValue::List XsdFacet::multiValue | ( | ) | const |
Returns the value of the facet or an empty pointer if facet type is not of type Pattern or Enumeration.
Definition at line 78 of file qxsdfacet.cpp.
void XsdFacet::setAssertions | ( | const XsdAssertion::List & | assertions | ) |
Sets the assertions
of the facet.
Definition at line 83 of file qxsdfacet.cpp.
void XsdFacet::setFixed | ( | bool | fixed | ) |
Sets whether the facet is fixed
.
All facets except pattern, enumeration and assertion can be fixed.
Definition at line 93 of file qxsdfacet.cpp.
void XsdFacet::setMultiValue | ( | const AtomicValue::List & | value | ) |
Sets the value
of the facet.
Definition at line 73 of file qxsdfacet.cpp.
void XsdFacet::setType | ( | Type | type | ) |
void XsdFacet::setValue | ( | const AtomicValue::Ptr & | value | ) |
Sets the value
of the facet.
Depending on the type of the facet the value can be a string, interger, double etc.
Definition at line 63 of file qxsdfacet.cpp.
XsdFacet::Type XsdFacet::type | ( | ) | const |
Returns the type of the facet.
Definition at line 58 of file qxsdfacet.cpp.
Referenced by setType().
Returns the textual description of the facet type
.
Definition at line 103 of file qxsdfacet.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkConstrainingFacets(), and QPatternist::XsdSchemaChecker::checkSimpleTypeConstraints().
AtomicValue::Ptr XsdFacet::value | ( | ) | const |
Returns the value of the facet or an empty pointer if facet type is Pattern, Enumeration or Assertion.
Definition at line 68 of file qxsdfacet.cpp.
Referenced by setMultiValue(), and setValue().
|
private |
Definition at line 204 of file qxsdfacet_p.h.
Referenced by assertions(), and setAssertions().
|
private |
Definition at line 205 of file qxsdfacet_p.h.
Referenced by fixed(), and setFixed().
|
private |
Definition at line 203 of file qxsdfacet_p.h.
Referenced by multiValue(), and setMultiValue().
|
private |
Definition at line 201 of file qxsdfacet_p.h.
|
private |
Definition at line 202 of file qxsdfacet_p.h.
Referenced by setValue(), and value().