zorba::SequenceType#include <zorba/typeident.h> Representation and factory for xquery sequence types. Class SequenceType represents xquery sequence types, as defined in http://www.w3.org/TR/xquery-30/#id-sequencetype-syntax. Instances of SequenceType may be returned by methods of Zorba's C++ API. The class also provides static methods to create instances of SequenceType, which can then be passed as arguments to other methods of Zorba's C++ API.Public TypesPublic Static Attributes
Friend Classes
Private Attributes
Public Static Functions
Public Functions
Private Functions
Public TypesKind Kind
Quantifier Quantifier
Public Static Attributeskind_string_ofchar const *const kind_string_of[]
quantifier_string_ofchar const *const quantifier_string_of[]
Friend ClassesUnmarshallerfriend class Unmarshaller
Private AttributestheTypeconst XQType * theType
Public Static FunctionscreateAnyNodeTypeSequenceType createAnyNodeType(Quantifier q=QUANT_ONE) Create an node() type with quantifier.
createAtomicOrUnionTypeSequenceType createAtomicOrUnionType(const StaticContext_t &sctx, const String &uri, const String &localName, Quantifier q=QUANT_ONE) Create a generalized atomic type (see http://www.w3.org/TR/xquery-30/#dt-generalized-atomic-type ) with quantifier. A generalized atomic type is specified simply as a QName, which may identify an XMLSchema builtin atomic type or a user-defined atomic or pure union type. In the case of user-defined types, the QName must be among the in-scope type names of a given static context. Otherwise, for builtin types, the given sctx may be NULL.If the given QName (uri and local name pair) does not specify a generalized atomic type among the in-scope type names of a given static context, an invalid SequenceType is returned. createAttributeTypeSequenceType createAttributeType(const StaticContext_t &sctx, const String &nodeUri, const String &nodeLocalName, const String &contentTypeUri, const String &contentTypeLocalName, Quantifier quant=QUANT_ONE)
createDocumentTypeSequenceType createDocumentType(const SequenceType &contentType, Quantifier q=QUANT_ONE) Create a document-node() type or subtype with quantifier.
createElementTypeSequenceType createElementType(const StaticContext_t &sctx, const String &nodeUri, const String &nodeLocalName, const String &contentTypeUri, const String &contentTypeLocalName, bool nillable, Quantifier quant=QUANT_ONE) Create an element() type or subtype with quantifier.
createItemTypeSequenceType createItemType(Quantifier q=QUANT_ONE) Create an item() type with quantifier.
createSchemaAttributeTypeSequenceType createSchemaAttributeType(const StaticContext_t &sctx, const String &uri, const String &localName, Quantifier quant=QUANT_ONE)
createSchemaElementTypeSequenceType createSchemaElementType(const StaticContext_t &sctx, const String &uri, const String &localName, Quantifier quant=QUANT_ONE)
createStructuredItemTypeSequenceType createStructuredItemType(Quantifier q=QUANT_ONE) Create an structured-item() type with quantifier.
Public Functionsemitstd::ostream & emit(std::ostream &) const
getContentTypeSequenceType getContentType() const If this is an document-node() type that contains an embedded element() type, this method returns the embedded element() type. In all other cases, an invalid SequenceType is returned. getContentTypeLocalNameString getContentTypeLocalName() const If this is an element() or attribute() type that contains a TypeName, this method returns the local name of that TypeName. If this is a schema-element(N) or schema-attribute(N) type, the method returns the local name of the XMLSchema type associated with the global element or attribute declaration N. In all other cases, it returns an empty string. getContentTypeUriString getContentTypeUri() const If this is an element() or attribute() type that contains a TypeName, this method returns the URI of that TypeName. If this is a schema-element(N) or schema-attribute(N) type, the method returns the URI of the XMLSchema type associated with the global element or attribute declaration N. In all other cases, it returns an empty string. getNodeLocalNameString getNodeLocalName() const If this is an element() or attribute() type that contains a NodeName, this method returns the local part of that NodeName. If this is a schema-element(N) or schema-attribute(N) type, the method returns the local part of N. If this is a processing-instruction() that contains a TargetName, that TargetName is returned. In all other cases, an empty string is returned. getNodeUriString getNodeUri() const If this is an element() or attribute() type that contains a NodeName, this method returns the URI of that NodeName. If this is a schema-element(N) or schema-attribute(N) type, the method returns the URI of N. In all other cases, an empty string is returned. getTypeLocalNameString getTypeLocalName() const If this is a generalized atomic type, this method returns the local part of the type name. For other kinds of types, an empty string is returned. getTypeUriString getTypeUri() const If this is a generalized atomic type, this method returns the URI of the type name. For other kinds of types, an empty string is returned. isSchemaTestbool isSchemaTest() const Return true if this type is a schema-element() or schema-attribute() type, Otherwise return false.
isValidbool isValid() const Returns true if this a valid (non-NULL) type; otherwise, returns false.
isWildcardbool isWildcard() const If this is an element() or attribute() type that does not contain a NodeName, this method returns true. In all other cases, false is returned. SequenceType SequenceType() Constructor for an invalid (NULL) type.
SequenceType SequenceType(const SequenceType &other) Copy constructor.
~SequenceType ~SequenceType() Destructor.
Private FunctionsSequenceType SequenceType(const XQType *t)
|