> The XQuery Processor
#include <zorba/item_factory.h>
Public Member Functions | |
| virtual Item | createAnyURI (const String &aURI)=0 |
| Creates an AnyURI Item see [http://www.w3.org/TR/xmlschema-2/#anyURI]. | |
| virtual Item | createBase64Binary (const char *aBinData, size_t aLength)=0 |
| Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary]. | |
| virtual Item | createBoolean (bool aValue)=0 |
| Creates a Boolean Item see [http://www.w3.org/TR/xmlschema-2/#bool]. | |
| virtual Item | createByte (char aByte)=0 |
| Creates a Byte Item see [http://www.w3.org/TR/xmlschema-2/#byte]. | |
| virtual Item | createDate (short aYear, short aMonth, short aDay)=0 |
| Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date]. | |
| virtual Item | createDate (const String &aDate)=0 |
| Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date]. | |
| virtual Item | createDateTime (const String &aDateTimeValue)=0 |
| Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime]. | |
| virtual Item | createDateTime (short aYear, short aMonth, short aDay, short aHour, short aMinute, double aSecond, short aTimeZone_hours)=0 |
| Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime]. | |
| virtual Item | createDecimal (const String &aValue)=0 |
| Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal]. | |
| virtual Item | createDecimalFromDouble (double aValue)=0 |
| Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal]. | |
| virtual Item | createDecimalFromLong (unsigned long aValue)=0 |
| Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal]. | |
| virtual Item | createDouble (const String &aValue)=0 |
| Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double]. | |
| virtual Item | createDouble (double aValue)=0 |
| Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double]. | |
| virtual Item | createDuration (short aYear, short aMonths, short aDays, short aHours, short aMinutes, double aSeconds)=0 |
| Creates a Duration Item see [http://www.w3.org/TR/xmlschema-2/#duration]. | |
| virtual Item | createDuration (const String &aValue)=0 |
| Creates a Duration Item see [http://www.w3.org/TR/xmlschema-2/#duration]. | |
| virtual Item | createFloat (float aValue)=0 |
| creates a float item see [http://www.w3.org/tr/xmlschema-2/#float] | |
| virtual Item | createFloat (const String &aValue)=0 |
| creates a float item see [http://www.w3.org/tr/xmlschema-2/#float] | |
| virtual Item | createGDay (short aDay)=0 |
| Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay]. | |
| virtual Item | createGDay (const String &aValue)=0 |
| Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay]. | |
| virtual Item | createGMonth (short aMonth)=0 |
| Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth]. | |
| virtual Item | createGMonth (const String &aValue)=0 |
| Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth]. | |
| virtual Item | createGMonthDay (short aMonth, short aDay)=0 |
| Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay]. | |
| virtual Item | createGMonthDay (const String &aValue)=0 |
| Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay]. | |
| virtual Item | createGYear (short aYear)=0 |
| Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear]. | |
| virtual Item | createGYear (const String &aValue)=0 |
| Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear]. | |
| virtual Item | createGYearMonth (short aYear, short aMonth)=0 |
| Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth]. | |
| virtual Item | createGYearMonth (const String &aValue)=0 |
| Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth]. | |
| virtual Item | createHexBinary (const char *aHexData, size_t aSize)=0 |
| Creates a HexBinary Item see [http://www.w3.org/TR/xmlschema-2/#hexBinary]. | |
| virtual Item | createInt (int aInt)=0 |
| Creates a Int Item see [http://www.w3.org/TR/xmlschema-2/#int]. | |
| virtual Item | createInteger (const String &aInteger)=0 |
| Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer]. | |
| virtual Item | createInteger (long long aInteger)=0 |
| Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer]. | |
| virtual Item | createLong (long long aLong)=0 |
| Creates a Long Item see [http://www.w3.org/TR/xmlschema-2/#long]. | |
| virtual Item | createNCName (const String &aValue)=0 |
| Creates a NCName Item see [http://www.w3.org/TR/xmlschema-2/#NCName]. | |
| virtual Item | createNegativeInteger (long long aValue)=0 |
| Creates a negativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#negativeInteger]. | |
| virtual Item | createNonNegativeInteger (unsigned long long aValue)=0 |
| Creates a nonNegativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger]. | |
| virtual Item | createNonPositiveInteger (long long aValue)=0 |
| Creates a nonPositiveInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonPositiveInteger]. | |
| virtual Item | createPositiveInteger (unsigned long long aValue)=0 |
| Creates a positiveInteger\ Item see [http://www.w3.org/TR/xmlschema-2/#positiveInteger]. | |
| virtual Item | createQName (const String &aNamespace, const String &aLocalname)=0 |
| Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName]. | |
| virtual Item | createQName (const String &aNamespace, const String &aPrefix, const String &aLocalname)=0 |
| Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName]. | |
| virtual Item | createShort (short aShort)=0 |
| Creates a Short Item see [http://www.w3.org/TR/xmlschema-2/#short]. | |
| virtual Item | createString (const String &aString)=0 |
| Creates a String Item see [http://www.w3.org/TR/xmlschema-2/#string]. | |
| virtual Item | createTime (short aHour, short aMinute, double aSecond, short aTimeZone_hours)=0 |
| Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time]. | |
| virtual Item | createTime (short aHour, short aMinute, double aSecond)=0 |
| Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time]. | |
| virtual Item | createTime (const String &aValue)=0 |
| Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time]. | |
| virtual Item | createUnsignedByte (const unsigned char aValue)=0 |
| Creates an Unsigned Byte Item see [http://www.w3.org/TR/xmlschema-2/#unsignedByte]. | |
| virtual Item | createUnsignedInt (unsigned int aValue)=0 |
| Creates an unsigned int Item see [http://www.w3.org/TR/xmlschema-2/#unsignedInt]. | |
| virtual Item | createUnsignedLong (unsigned long long aValue)=0 |
| Creates an unsignedLong Item see [http://www.w3.org/TR/xmlschema-2/#unsignedLong]. | |
| virtual Item | createUnsignedShort (unsigned short aValue)=0 |
| Creates a unsignedShort Item see [http://www.w3.org/TR/xmlschema-2/#unsignedShort]. | |
| virtual | ~ItemFactory () |
| Destructor. | |
An instance of this class can be obtained by calling getItemFactory on the Zorba object.
Each createXXX function of this class creates an Item of an XML Schema item. If an isNull() call on an Item created by one of these functions returns true the Item could not be created.
Definition at line 32 of file item_factory.h.
| virtual zorba::ItemFactory::~ItemFactory | ( | ) | [inline, virtual] |
Creates an AnyURI Item see [http://www.w3.org/TR/xmlschema-2/#anyURI].
| aURI | String representation of the AnyURI. |
| virtual Item zorba::ItemFactory::createBase64Binary | ( | const char * | aBinData, | |
| size_t | aLength | |||
| ) | [pure virtual] |
Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary].
| aBinData | a pointer to the base64 binary data. | |
| aLength | the length of the base64 binary data. |
| virtual Item zorba::ItemFactory::createBoolean | ( | bool | aValue | ) | [pure virtual] |
Creates a Boolean Item see [http://www.w3.org/TR/xmlschema-2/#bool].
| aValue | bool representation of the Boolean. |
| virtual Item zorba::ItemFactory::createByte | ( | char | aByte | ) | [pure virtual] |
Creates a Byte Item see [http://www.w3.org/TR/xmlschema-2/#byte].
| aByte | char representation of the Byte. |
| virtual Item zorba::ItemFactory::createDate | ( | short | aYear, | |
| short | aMonth, | |||
| short | aDay | |||
| ) | [pure virtual] |
Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date].
| aYear | short-valued representation of the year. | |
| aMonth | short-valued representation of the month. | |
| aDay | short-valued representation of the day. |
Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date].
| aDate | String representation of the Date (e.g. 2002-10-10). |
Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime].
| aDateTimeValue | String representation of the datetime value (for example, 2002-10-10T12:00:00-05:00). |
| virtual Item zorba::ItemFactory::createDateTime | ( | short | aYear, | |
| short | aMonth, | |||
| short | aDay, | |||
| short | aHour, | |||
| short | aMinute, | |||
| double | aSecond, | |||
| short | aTimeZone_hours | |||
| ) | [pure virtual] |
Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime].
| aYear | short-valued representation of the year. | |
| aMonth | short-valued representation of the month. | |
| aDay | short-valued representation of the day. | |
| aHour | short-valued representation of the hour. | |
| aMinute | short-valued representation of the minute. | |
| aSecond | double-valued representation of the seconds and fractional seconds. | |
| aTimeZone_hours | short-valued representation of the difference in hours to UTC. |
Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].
| aValue | String representation of the Decimal (e.g. 12678967.543233). |
| virtual Item zorba::ItemFactory::createDecimalFromDouble | ( | double | aValue | ) | [pure virtual] |
Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].
| aValue | double representation of the Decimal. |
| virtual Item zorba::ItemFactory::createDecimalFromLong | ( | unsigned long | aValue | ) | [pure virtual] |
Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].
| aValue | unsigned long representation of the Decimal. |
Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double].
| aValue | String representation of the Double. |
| virtual Item zorba::ItemFactory::createDouble | ( | double | aValue | ) | [pure virtual] |
Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double].
| aValue | double representation of the Double. |
| virtual Item zorba::ItemFactory::createDuration | ( | short | aYear, | |
| short | aMonths, | |||
| short | aDays, | |||
| short | aHours, | |||
| short | aMinutes, | |||
| double | aSeconds | |||
| ) | [pure virtual] |
Creates a Duration Item see [http://www.w3.org/TR/xmlschema-2/#duration].
| aYear | short-valued representation of the years. | |
| aMonths | short-valued representation of the months. | |
| aDays | short-valued representation of the days. | |
| aHours | short-valued representation of the hours. | |
| aMinutes | short-valued representation of the minutes. | |
| aSeconds | double-valued representation of the seconds and fractional seconds. |
Creates a Duration Item see [http://www.w3.org/TR/xmlschema-2/#duration].
| aValue | String representation of the NCName. |
| virtual Item zorba::ItemFactory::createFloat | ( | float | aValue | ) | [pure virtual] |
creates a float item see [http://www.w3.org/tr/xmlschema-2/#float]
| aValue | float representation of the float. |
creates a float item see [http://www.w3.org/tr/xmlschema-2/#float]
| aValue | string representation of the float. |
| virtual Item zorba::ItemFactory::createGDay | ( | short | aDay | ) | [pure virtual] |
Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay].
| aDay | short representation of the gDay. |
Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay].
| aValue | String representation of the gDay. |
| virtual Item zorba::ItemFactory::createGMonth | ( | short | aMonth | ) | [pure virtual] |
Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth].
| aMonth | short representation of the gMonth. |
Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth].
| aValue | String representation of the gMonth. |
| virtual Item zorba::ItemFactory::createGMonthDay | ( | short | aMonth, | |
| short | aDay | |||
| ) | [pure virtual] |
Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay].
| aMonth | short representation of the month. | |
| aDay | short representation of the day. |
Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay].
| aValue | String representation of the gMonthDay. |
| virtual Item zorba::ItemFactory::createGYear | ( | short | aYear | ) | [pure virtual] |
Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear].
| aYear | short representation of the gYear. |
Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear].
| aValue | String representation of the gYear. |
| virtual Item zorba::ItemFactory::createGYearMonth | ( | short | aYear, | |
| short | aMonth | |||
| ) | [pure virtual] |
Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth].
| aYear | short representation of the year. | |
| aMonth | short representation of the month. |
Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth].
| aValue | String representation of the gYearMonth. |
| virtual Item zorba::ItemFactory::createHexBinary | ( | const char * | aHexData, | |
| size_t | aSize | |||
| ) | [pure virtual] |
Creates a HexBinary Item see [http://www.w3.org/TR/xmlschema-2/#hexBinary].
| aHexData | pointer to the hexdata. | |
| aSize | size of the hexdata. |
| virtual Item zorba::ItemFactory::createInt | ( | int | aInt | ) | [pure virtual] |
Creates a Int Item see [http://www.w3.org/TR/xmlschema-2/#int].
| aInt | int representation of the Int. |
Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer].
| aInteger | String representation of the Integer. |
| virtual Item zorba::ItemFactory::createInteger | ( | long long | aInteger | ) | [pure virtual] |
Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer].
| aInteger | unsigned long representation of the Integer. |
| virtual Item zorba::ItemFactory::createLong | ( | long long | aLong | ) | [pure virtual] |
Creates a Long Item see [http://www.w3.org/TR/xmlschema-2/#long].
| aLong | long long representation of the Long. |
Creates a NCName Item see [http://www.w3.org/TR/xmlschema-2/#NCName].
| aValue | String representation of the NCName. |
| virtual Item zorba::ItemFactory::createNegativeInteger | ( | long long | aValue | ) | [pure virtual] |
Creates a negativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#negativeInteger].
| aValue | long long representation of the negativeInteger. |
| virtual Item zorba::ItemFactory::createNonNegativeInteger | ( | unsigned long long | aValue | ) | [pure virtual] |
Creates a nonNegativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger].
| aValue | unsigned long representation of the nonNegativeInteger. |
| virtual Item zorba::ItemFactory::createNonPositiveInteger | ( | long long | aValue | ) | [pure virtual] |
Creates a nonPositiveInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonPositiveInteger].
| aValue | long long representation of the NCName. |
| virtual Item zorba::ItemFactory::createPositiveInteger | ( | unsigned long long | aValue | ) | [pure virtual] |
Creates a positiveInteger\ Item see [http://www.w3.org/TR/xmlschema-2/#positiveInteger].
| aValue | unsigned long representation of the positiveInteger. |
| virtual Item zorba::ItemFactory::createQName | ( | const String & | aNamespace, | |
| const String & | aLocalname | |||
| ) | [pure virtual] |
Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName].
| aNamespace | String representation of the namespace. | |
| aLocalname | String representation of the localname. * |
| virtual Item zorba::ItemFactory::createShort | ( | short | aShort | ) | [pure virtual] |
Creates a Short Item see [http://www.w3.org/TR/xmlschema-2/#short].
| aShort | short representation of the Short. |
| virtual Item zorba::ItemFactory::createTime | ( | short | aHour, | |
| short | aMinute, | |||
| double | aSecond, | |||
| short | aTimeZone_hours | |||
| ) | [pure virtual] |
Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].
| aHour | short representation of the hour. | |
| aMinute | short representation of the minute. | |
| aSecond | double representation of the seconds and fractional seconds. | |
| aTimeZone_hours | short representation of the timezone difference in hours to UTC. |
| virtual Item zorba::ItemFactory::createTime | ( | short | aHour, | |
| short | aMinute, | |||
| double | aSecond | |||
| ) | [pure virtual] |
Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].
| aHour | short representation of the hour. | |
| aMinute | short representation of the minute. | |
| aSecond | double representation of the seconds and fractional seconds. |
Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].
| aValue | String representation of the Time. |
| virtual Item zorba::ItemFactory::createUnsignedByte | ( | const unsigned char | aValue | ) | [pure virtual] |
Creates an Unsigned Byte Item see [http://www.w3.org/TR/xmlschema-2/#unsignedByte].
| aValue | unsignedByte unsigned char representation of the unsigned byte. |
| virtual Item zorba::ItemFactory::createUnsignedInt | ( | unsigned int | aValue | ) | [pure virtual] |
Creates an unsigned int Item see [http://www.w3.org/TR/xmlschema-2/#unsignedInt].
| aValue | unsigned int representation of the unsignedInt. |
| virtual Item zorba::ItemFactory::createUnsignedLong | ( | unsigned long long | aValue | ) | [pure virtual] |
Creates an unsignedLong Item see [http://www.w3.org/TR/xmlschema-2/#unsignedLong].
| aValue | unsignedLong long long representation of the unsignedLong. |
| virtual Item zorba::ItemFactory::createUnsignedShort | ( | unsigned short | aValue | ) | [pure virtual] |
Creates a unsignedShort Item see [http://www.w3.org/TR/xmlschema-2/#unsignedShort].
| aValue | unsigned short representation of the unsignedShort. |