Qt 4.8
|
Ensures the lexical space of the string value of the Item returned from its child Expression is an NCName. Also possibly changes the name by generating a prefix if one is needed. More...
#include <qattributenamevalidator_p.h>
Ensures the lexical space of the string value of the Item returned from its child Expression is an NCName. Also possibly changes the name by generating a prefix if one is needed.
xs:NCName
. It only ensures the lexical space is an NCName
. The atomic value can be of any string type, such as xs:untypedAtomic
of xs:string
.Definition at line 75 of file qattributenamevalidator_p.h.
AttributeNameValidator::AttributeNameValidator | ( | const Expression::Ptr & | source | ) |
Definition at line 55 of file qattributenamevalidator.cpp.
|
virtual |
Implements QPatternist::Expression.
Definition at line 104 of file qattributenamevalidator.cpp.
|
virtual |
Reimplemented from QPatternist::Expression.
Definition at line 59 of file qattributenamevalidator.cpp.
|
virtual |
Returns a list of Sequence Types, describing the type of each of the expression's operands. Hence, this function has a relationship to the operands() function:
- The lengths of the lists returned by expectedOperandTypes() and operands() should always be equal in length, since one cannot describe the type of a non-existent operand(and all operands must have type information). - A significant difference between the two functions is that while the type of objects in the list returned by operands() may vary between compilations/static context, simply because the particular Expression is part of different XPath expressions, the types in the list returned by expectedOperandTypes is always the same since the function/operator signature never changes.
This function should not be confused with staticType(), which returns the static type of the expression itself, not its operands. The function call is an expression where this is clear: the type of the return value is not the same as the arguments' types. The static type of the operands supplied to the expression can be determined via the staticType() function of the instances returned by operands().
If the expression has no operands, an empty list should be returned.
Implements QPatternist::Expression.
Definition at line 97 of file qattributenamevalidator.cpp.
|
virtual |
xs:QName
. Implements QPatternist::Expression.
Definition at line 92 of file qattributenamevalidator.cpp.