XQC_ItemFactory_s Struct Reference

An instance of this class can be obtained by calling item_factory function of an XQC_Implementation object. More...

#include <zorba/zorbac.h>


Data Fields

XQUERY_ERROR(* create_anyuri )(XQC_ItemFactory factory, const char *str, XQC_Item_Ref item)
 Creates an AnyURI Item see [http://www.w3.org/TR/xmlschema-2/#anyURI].
XQUERY_ERROR(* create_base64binary )(XQC_ItemFactory factory, const char *binary_data, size_t length, XQC_Item_Ref item)
 Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary].
XQUERY_ERROR(* create_boolean )(XQC_ItemFactory factory, int boolean, XQC_Item_Ref item)
 Creates a Boolean Item see [http://www.w3.org/TR/xmlschema-2/#bool].
XQUERY_ERROR(* create_byte )(XQC_ItemFactory factory, char byte_value, XQC_Item_Ref item)
 Creates a Byte Item see [http://www.w3.org/TR/xmlschema-2/#byte].
XQUERY_ERROR(* create_date )(XQC_ItemFactory factory, short year, short month, short day, XQC_Item_Ref item)
 Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date].
XQUERY_ERROR(* create_date_char )(XQC_ItemFactory factory, const char *date_value, XQC_Item_Ref item)
 Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date].
XQUERY_ERROR(* create_datetime )(XQC_ItemFactory factory, short year, short month, short day, short hour, short minute, double seconds, short timezone_hours, XQC_Item_Ref item)
 Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime].
XQUERY_ERROR(* create_datetime_char )(XQC_ItemFactory factory, const char *datetime_value, XQC_Item_Ref item)
 Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime].
XQUERY_ERROR(* create_decimal )(XQC_ItemFactory factory, double value, XQC_Item_Ref item)
 Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].
XQUERY_ERROR(* create_decimal_char )(XQC_ItemFactory factory, const char *value, XQC_Item_Ref item)
 Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].
XQUERY_ERROR(* create_double )(XQC_ItemFactory factory, double value, XQC_Item_Ref item)
 Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double].
XQUERY_ERROR(* create_double_char )(XQC_ItemFactory factory, const char *value, XQC_Item_Ref item)
 Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double].
XQUERY_ERROR(* create_duration )(XQC_ItemFactory factory, short year, short months, short days, short hours, short minutes, double seconds, XQC_Item_Ref item)
 Creates a Duration Item see [http://www.w3.org/TR/xmlschema-2/#duration].
XQUERY_ERROR(* create_float )(XQC_ItemFactory factory, const char *value, XQC_Item_Ref item)
 Creates a Float Item see [http://www.w3.org/tr/xmlschema-2/#float].
XQUERY_ERROR(* create_gday )(XQC_ItemFactory factory, short day, XQC_Item_Ref item)
 Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay].
XQUERY_ERROR(* create_gmonth )(XQC_ItemFactory factory, short month, XQC_Item_Ref item)
 Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth].
XQUERY_ERROR(* create_gmonthday )(XQC_ItemFactory factory, short month, short day, XQC_Item_Ref item)
 Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay].
XQUERY_ERROR(* create_gyear )(XQC_ItemFactory factory, short year, XQC_Item_Ref item)
 Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear].
XQUERY_ERROR(* create_gyearmonth )(XQC_ItemFactory factory, short year, short month, XQC_Item_Ref item)
 Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth].
XQUERY_ERROR(* create_hexbinary )(XQC_ItemFactory factory, const char *hex_data, size_t size, XQC_Item_Ref item)
 Creates a HexBinary Item see [http://www.w3.org/TR/xmlschema-2/#hexBinary].
XQUERY_ERROR(* create_int )(XQC_ItemFactory factory, int int_value, XQC_Item_Ref item)
 Creates a Int Item see [http://www.w3.org/TR/xmlschema-2/#int].
XQUERY_ERROR(* create_integer )(XQC_ItemFactory factory, long long integer_value, XQC_Item_Ref item)
 Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer].
XQUERY_ERROR(* create_integer_char )(XQC_ItemFactory factory, const char *integer_value, XQC_Item_Ref item)
 Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer].
XQUERY_ERROR(* create_long )(XQC_ItemFactory factory, long long long_value, XQC_Item_Ref item)
 Creates a Long Item see [http://www.w3.org/TR/xmlschema-2/#long].
XQUERY_ERROR(* create_ncname )(XQC_ItemFactory factory, const char *ncname, XQC_Item_Ref item)
 Creates a NCName Item see [http://www.w3.org/TR/xmlschema-2/#NCName].
XQUERY_ERROR(* create_negativeinteger )(XQC_ItemFactory factory, long long value, XQC_Item_Ref item)
 Creates a negativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#negativeInteger].
XQUERY_ERROR(* create_nonnegativeinteger )(XQC_ItemFactory factory, unsigned long long value, XQC_Item_Ref item)
 Creates a nonNegativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger].
XQUERY_ERROR(* create_nonpositiveinteger )(XQC_ItemFactory factory, long long value, XQC_Item_Ref item)
 Creates a nonPositiveInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonPositiveInteger].
XQUERY_ERROR(* create_positiveinteger )(XQC_ItemFactory factory, unsigned long long value, XQC_Item_Ref item)
 Creates a positiveInteger Item see [http://www.w3.org/TR/xmlschema-2/#positiveInteger].
XQUERY_ERROR(* create_qname2 )(XQC_ItemFactory factory, const char *uri, const char *localname, XQC_Item_Ref item)
 Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName].
XQUERY_ERROR(* create_qname3 )(XQC_ItemFactory factory, const char *uri, const char *prefix, const char *localname, XQC_Item_Ref item)
 Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName].
XQUERY_ERROR(* create_short )(XQC_ItemFactory factory, short short_value, XQC_Item_Ref item)
 Creates a Short Item see [http://www.w3.org/TR/xmlschema-2/#short].
XQUERY_ERROR(* create_string )(XQC_ItemFactory factory, const char *str, XQC_Item_Ref item)
 Creates a String Item see [http://www.w3.org/TR/xmlschema-2/#string].
XQUERY_ERROR(* create_time )(XQC_ItemFactory factory, short hour, short minute, double second, XQC_Item_Ref item)
 Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].
XQUERY_ERROR(* create_time_char )(XQC_ItemFactory factory, const char *value, XQC_Item_Ref item)
 Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].
XQUERY_ERROR(* create_time_timezone )(XQC_ItemFactory factory, short hour, short minute, double second, short timezone_hours, XQC_Item_Ref item)
 Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].
XQUERY_ERROR(* create_unsignedbyte )(XQC_ItemFactory factory, const unsigned char value, XQC_Item_Ref item)
 Creates an Unsigned Byte Item see [http://www.w3.org/TR/xmlschema-2/#unsignedByte].
XQUERY_ERROR(* create_unsignedint )(XQC_ItemFactory factory, unsigned int value, XQC_Item_Ref item)
 Creates an unsigned int Item see [http://www.w3.org/TR/xmlschema-2/#unsignedInt].
XQUERY_ERROR(* create_unsignedlong )(XQC_ItemFactory factory, unsigned long long value, XQC_Item_Ref item)
 Creates an unsignedLong Item see [http://www.w3.org/TR/xmlschema-2/#unsignedLong].
XQUERY_ERROR(* create_unsignedshort )(XQC_ItemFactory factory, unsigned short value, XQC_Item_Ref item)
 Creates a unsignedShort Item see [http://www.w3.org/TR/xmlschema-2/#unsignedShort].
void * data
 for internal use only
void(* free )(XQC_ItemFactory factory)
 Called to free the resources associated with the XQC_ItemFactory.


Detailed Description

An instance of this class can be obtained by calling item_factory function of an XQC_Implementation object.

Each create_XXX function of this struct creates an XQC_Item of an XML Schema item. Each of the functions takes either NULL or a valid XQC_Item wrapper. The latter is created by calling XQC_Implementation::create_item. In both cases, the user is responsible for freeing the object by calling the XQC_Item::free() function.

Examples:

ccontext.c, and cexternal_functions.c.

Definition at line 1048 of file zorbac.h.


Field Documentation

XQUERY_ERROR(* XQC_ItemFactory_s::create_anyuri)(XQC_ItemFactory factory, const char *str, XQC_Item_Ref item)

Creates an AnyURI Item see [http://www.w3.org/TR/xmlschema-2/#anyURI].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
str The uri as a char pointer.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_base64binary)(XQC_ItemFactory factory, const char *binary_data, size_t length, XQC_Item_Ref item)

Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
binary_data The binary data as a char pointer.
letter The length of the binary data.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_boolean)(XQC_ItemFactory factory, int boolean, XQC_Item_Ref item)

Creates a Boolean Item see [http://www.w3.org/TR/xmlschema-2/#bool].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
boolean 0 for a boolean false boolean item, 1 otherwise.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_byte)(XQC_ItemFactory factory, char byte_value, XQC_Item_Ref item)

Creates a Byte Item see [http://www.w3.org/TR/xmlschema-2/#byte].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
byte_value The byte value as a char.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_date)(XQC_ItemFactory factory, short year, short month, short day, XQC_Item_Ref item)

Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
year The year value as a short.
month The month value as a short.
day The day value as a short.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_date_char)(XQC_ItemFactory factory, const char *date_value, XQC_Item_Ref item)

Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
date_value The date value as a char pointer.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_datetime)(XQC_ItemFactory factory, short year, short month, short day, short hour, short minute, double seconds, short timezone_hours, XQC_Item_Ref item)

Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
year The year value as a short.
month The month value as a short.
day The day value as a short.
hour The hour value as a short.
minute The minute value as a short.
seconds The seconds value as a short.
timezone_hours The timezone as a short.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_datetime_char)(XQC_ItemFactory factory, const char *datetime_value, XQC_Item_Ref item)

Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
datetime_value The string representation of the datetime value as a char pointer (for example, 2002-10-10T12:00:00-05:00).
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_decimal)(XQC_ItemFactory factory, double value, XQC_Item_Ref item)

Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
value The value as a doule
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_decimal_char)(XQC_ItemFactory factory, const char *value, XQC_Item_Ref item)

Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
value The value as a char pointer.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_double)(XQC_ItemFactory factory, double value, XQC_Item_Ref item)

Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_double_char)(XQC_ItemFactory factory, const char *value, XQC_Item_Ref item)

Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
value The value as a char pointer.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_duration)(XQC_ItemFactory factory, short year, short months, short days, short hours, short minutes, double seconds, XQC_Item_Ref item)

Creates a Duration Item see [http://www.w3.org/TR/xmlschema-2/#duration].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
year The year value as a short.
month The month value as a short.
day The day value as a short.
hour The hour value as a short.
minute The minute value as a short.
seconds The seconds value as a short.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_float)(XQC_ItemFactory factory, const char *value, XQC_Item_Ref item)

Creates a Float Item see [http://www.w3.org/tr/xmlschema-2/#float].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
value The float value as a char pointer.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_gday)(XQC_ItemFactory factory, short day, XQC_Item_Ref item)

Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
day The day value as a short.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_gmonth)(XQC_ItemFactory factory, short month, XQC_Item_Ref item)

Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
month The month value as a short.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_gmonthday)(XQC_ItemFactory factory, short month, short day, XQC_Item_Ref item)

Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
month The month value as a short.
day The day value as a short.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_gyear)(XQC_ItemFactory factory, short year, XQC_Item_Ref item)

Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
year The year value as a short.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_gyearmonth)(XQC_ItemFactory factory, short year, short month, XQC_Item_Ref item)

Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
year The year value as a short.
month The month value as a short.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_hexbinary)(XQC_ItemFactory factory, const char *hex_data, size_t size, XQC_Item_Ref item)

Creates a HexBinary Item see [http://www.w3.org/TR/xmlschema-2/#hexBinary].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
hex_data The hex data as a char pointer.
size The size of the hex data.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_int)(XQC_ItemFactory factory, int int_value, XQC_Item_Ref item)

Creates a Int Item see [http://www.w3.org/TR/xmlschema-2/#int].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
int_value The value as an int.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_integer)(XQC_ItemFactory factory, long long integer_value, XQC_Item_Ref item)

Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
integer_value The value as a long long.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_integer_char)(XQC_ItemFactory factory, const char *integer_value, XQC_Item_Ref item)

Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
integer_value The value as a char pointer.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_long)(XQC_ItemFactory factory, long long long_value, XQC_Item_Ref item)

Creates a Long Item see [http://www.w3.org/TR/xmlschema-2/#long].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
long_value The value as a long long.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_ncname)(XQC_ItemFactory factory, const char *ncname, XQC_Item_Ref item)

Creates a NCName Item see [http://www.w3.org/TR/xmlschema-2/#NCName].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
ncname The NCName as a char pointer.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_negativeinteger)(XQC_ItemFactory factory, long long value, XQC_Item_Ref item)

Creates a negativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#negativeInteger].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
value The negative integer as a long long value.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_nonnegativeinteger)(XQC_ItemFactory factory, unsigned long long value, XQC_Item_Ref item)

Creates a nonNegativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
value The non-negative integer as an unsigned long long value.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_nonpositiveinteger)(XQC_ItemFactory factory, long long value, XQC_Item_Ref item)

Creates a nonPositiveInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonPositiveInteger].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
value The non-positive integer as a long long value.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_positiveinteger)(XQC_ItemFactory factory, unsigned long long value, XQC_Item_Ref item)

Creates a positiveInteger Item see [http://www.w3.org/TR/xmlschema-2/#positiveInteger].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
value The positive integer as an unsigned long long value.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_qname2)(XQC_ItemFactory factory, const char *uri, const char *localname, XQC_Item_Ref item)

Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
str The uri as a char pointer.
localname The localname as a char pointer.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_qname3)(XQC_ItemFactory factory, const char *uri, const char *prefix, const char *localname, XQC_Item_Ref item)

Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
str The uri as a char pointer.
prefix The prefix as a char pointer.
localname The localname as a char pointer.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_short)(XQC_ItemFactory factory, short short_value, XQC_Item_Ref item)

Creates a Short Item see [http://www.w3.org/TR/xmlschema-2/#short].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
short_value The value as a short.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_string)(XQC_ItemFactory factory, const char *str, XQC_Item_Ref item)

Creates a String Item see [http://www.w3.org/TR/xmlschema-2/#string].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
str The string as a char pointer.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 
Examples:
ccontext.c.

XQUERY_ERROR(* XQC_ItemFactory_s::create_time)(XQC_ItemFactory factory, short hour, short minute, double second, XQC_Item_Ref item)

Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
hour The hour as a short.
minute The minute as a short.
second The second as a short.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_time_char)(XQC_ItemFactory factory, const char *value, XQC_Item_Ref item)

Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
value The time as a char pointer.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_time_timezone)(XQC_ItemFactory factory, short hour, short minute, double second, short timezone_hours, XQC_Item_Ref item)

Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
hour The hour as a short.
minute The minute as a short.
second The second as a double.
timezone_hours The timezone hours as a short.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_unsignedbyte)(XQC_ItemFactory factory, const unsigned char value, XQC_Item_Ref item)

Creates an Unsigned Byte Item see [http://www.w3.org/TR/xmlschema-2/#unsignedByte].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
value The unsigned byte value as an unsigned char.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_unsignedint)(XQC_ItemFactory factory, unsigned int value, XQC_Item_Ref item)

Creates an unsigned int Item see [http://www.w3.org/TR/xmlschema-2/#unsignedInt].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
value The unsigned int value as an unsigned int.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_unsignedlong)(XQC_ItemFactory factory, unsigned long long value, XQC_Item_Ref item)

Creates an unsignedLong Item see [http://www.w3.org/TR/xmlschema-2/#unsignedLong].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
value The unsigned long value as an unsigned long long.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

XQUERY_ERROR(* XQC_ItemFactory_s::create_unsignedshort)(XQC_ItemFactory factory, unsigned short value, XQC_Item_Ref item)

Creates a unsignedShort Item see [http://www.w3.org/TR/xmlschema-2/#unsignedShort].

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
value The unsigned short value as an unsigned short.
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Return values:
XQC_NO_ERROR 
XQP0019_INTERNAL_ERROR 
XQP0025_COULD_NOT_CREATE_ITEM 

void* XQC_ItemFactory_s::data

for internal use only

Definition at line 1703 of file zorbac.h.

void(* XQC_ItemFactory_s::free)(XQC_ItemFactory factory)

Called to free the resources associated with the XQC_ItemFactory.

Parameters:
factory The XQC_ItemFactory that this function pointer is a member of
[out] item The item to create. This can either be a wrapper created using XQC_ItemFactory::create_item or a pointer initialized to 0.
Examples:
ccontext.c.


The documentation for this struct was generated from the following file: