ItemFactory

#include </home/jenkins/.jenkins/ubuntu-remote-queue/jenkins-BuildZorbaUbuntu-462/source/zorba/swig/ItemFactory.h>

ItemFactory to create Items. 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.

Private Attributes

zorba::ItemFactory *

theItemFactory

Public Functions

Item

createAnyURI(const std::string &aURI)

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

Item

createAttributeNode(Item &aParent, Item &aNodeName, Item &aTypeName, Item &aTypedValue)

Create a new attribute node N and place it among the attributes of a given parent node.

Item

createAttributeNode(Item &aParent, Item &aNodeName, Item &aTypeName, std::vector< Item > aTypedValue)

Item

createBase64Binary(const char *aData, size_t aLength, bool aIsBase64)

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

Item

createBase64Binary(std::istream &aStream)

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

Item

createBoolean(bool aValue)

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

Item

createByte(char aByte)

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

Item

createCommentNode(Item &aParent, const std::string &aContent)

Create a new comment node N and place it as the last child of a given parent node.

Item

createDate(const std::string &aDate)

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

Item

createDate(short aYear, short aMonth, short aDay)

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

Item

createDateTime(const std::string &aDateTimeValue)

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

Item

createDateTime(short aYear, short aMonth, short aDay, short aHour, short aMinute, double aSecond, short aTimeZone_hours)

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

Item

createDateTimeStamp(short aYear, short aMonth, short aDay, short aHour, short aMinute, double aSecond, short aTimeZone_hours)

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

Item

createDateTimeStamp(const std::string &aValue)

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

Item

createDayTimeDuration(const std::string &aValue)

Creates a dayTimeDuration Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes].

Item

createDecimal(const std::string &aValue)

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

Item

createDecimalFromDouble(double aValue)

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

Item

createDecimalFromLong(unsigned long aValue)

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

Item

createDocumentNode(const std::string &aBaseUri, const std::string &aDocUri)

Creates a documentNode Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes].

Item

createDouble(const std::string &aValue)

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

Item

createDouble(double aValue)

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

Item

createDuration(const std::string &aValue)

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

Item

createDuration(short aYear, short aMonths, short aDays, short aHours, short aMinutes, double aSeconds)

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

Item

createElementNode(Item &aParent, Item &aNodeName, Item &aTypeName, bool aHasTypedValue, bool aHasEmptyValue, std::vector< std::pair< std::string, std::string > > aNsBindings)

Creates a new element node.

Item

createElementNode(Item &aParent, Item &aNodeName, Item &aTypeName, bool aHasTypedValue, bool aHasEmptyValue)

Creates a new element node.

Item

createFloat(const std::string &aValue)

creates a float item see [http://www.w3.org/tr/xmlschema-2/#float]

Item

createFloat(float aValue)

creates a float item see [http://www.w3.org/tr/xmlschema-2/#float]

Item

createGDay(const std::string &aValue)

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

Item

createGDay(short aDay)

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

Item

createGMonth(const std::string &aValue)

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

Item

createGMonth(short aMonth)

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

Item

createGMonthDay(const std::string &aValue)

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

Item

createGMonthDay(short aMonth, short aDay)

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

Item

createGYear(short aYear)

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

Item

createGYear(const std::string &aValue)

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

Item

createGYearMonth(const std::string &aValue)

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

Item

createGYearMonth(short aYear, short aMonth)

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

Item

createHexBinary(const char *aHexData, size_t aSize)

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

Item

createInt(int aInt)

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

Item

createInteger(const std::string &aInteger)

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

Item

createInteger(long long aInteger)

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

Item

createJSONArray(std::vector< Item > &aItems)

Create a JSON Array containing the specified items.

Item

createJSONArray(std::vector< std::string > &aItems)

Create a JSON Array containing the specified items.

Item

createJSONNull()

Create a JSON null item.

Item

createJSONObject(std::vector< std::pair< Item, Item > > &aNames)

Create a JSON Object containing the specified JSON Pairs.

Item

createJSONObject(std::vector< std::pair< std::string, std::string > > &aNames)

Create a JSON Object containing the specified string Pairs.

Item

createLong(long long aLong)

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

Item

createNCName(const std::string &aValue)

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

Item

createNegativeInteger(long long aValue)

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

Item

createNonNegativeInteger(unsigned long long aValue)

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

Item

createNonPositiveInteger(long long aValue)

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

Item

createPiNode(Item &aParent, const std::string &aTarget, const std::string &aContent, const std::string &aBaseUri)

Create a new Processing Instruction node N and place it among the children of a given parent node.

Item

createPositiveInteger(unsigned long long aValue)

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

Item

createQName(const std::string &aNamespace, const std::string &aPrefix, const std::string &aLocalname)

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

Item

createQName(const std::string &aNamespace, const std::string &aLocalname)

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

Item

createQName(const std::string &aQNameString)

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

Item

createShort(short aShort)

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

Item

createString(const std::string &aString)

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

Item

createTextNode(Item &aParent, const std::string &aContent)

Create a new text node N and place it among the children of a given parent node.

Item

createTime(short aHour, short aMinute, double aSecond, short aTimeZone_hours)

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

Item

createTime(short aHour, short aMinute, double aSecond)

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

Item

createTime(const std::string &aValue)

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

Item

createUnsignedByte(const unsigned char aValue)

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

Item

createUnsignedInt(unsigned int aValue)

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

Item

createUnsignedLong(unsigned long long aValue)

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

Item

createUnsignedShort(unsigned short aValue)

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

Item

createYearMonthDuration(const std::string &aValue)

Creates a yearMonthDuration Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes].

ItemFactory(zorba::ItemFactory *aItemFactory)

ItemFactory(const ItemFactory &aItemFactory)

Private Attributes

theItemFactory

zorba::ItemFactory * theItemFactory

Public Functions

createAnyURI

Item createAnyURI(const std::string &aURI)

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

Parameters

aURI String representation of the AnyURI.

Returns

The AnyURI Item.

createAttributeNode

Item createAttributeNode(Item &aParent, Item &aNodeName, Item &aTypeName, Item &aTypedValue)

Create a new attribute node N and place it among the attributes of a given parent node.

If no parent is given, N becomes the root (and single node) of a new XML tree.

Parameters

aParent The parent P of the new node; may be NULL.
aNodeName The fully qualified name of the new node. The nemaspace binding implied by this name will be added to the namespaces of P. If the name prefix is "xml" and the local name is "base", then the base-uri property of P will be set or updated accordingly.
aTypeName The fully qualified name of the new node's type.
aTypedValue The typed value of the new node.

Returns

The new node N created by this method

createAttributeNode

Item createAttributeNode(Item &aParent, Item &aNodeName, Item &aTypeName, std::vector< Item > aTypedValue)

createBase64Binary

Item createBase64Binary(const char *aData, size_t aLength, bool aIsBase64)

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

Parameters

aData a pointer to the base64 binary data.
aLength the length of the base64 binary data.
aIsBase64 if true, aData is already Base-64 encoded; if false, aData is raw binary data to be encoded.

Returns

The Base64Binary Item.

createBase64Binary

Item createBase64Binary(std::istream &aStream)

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

Parameters

aStream A stream containing the Base64 encoded data.

Returns

the Base64Binary Item.

createBoolean

Item createBoolean(bool aValue)

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

Parameters

aValue bool representation of the Boolean.

Returns

The Boolean Item.

createByte

Item createByte(char aByte)

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

Parameters

aByte char representation of the Byte.

Returns

The Byte Item.

createCommentNode

Item createCommentNode(Item &aParent, const std::string &aContent)

Create a new comment node N and place it as the last child of a given parent node.

If no parent is given, N becomes the root (and single node) of a new XML tree.

Parameters

aParent The parent P of the new node; may be NULL.
aContent The content of the new node.

Returns

The new node N created by this method

createDate

Item createDate(const std::string &aDate)

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

Parameters

aDate String representation of the Date (e.g. 2002-10-10).

Returns

The Date Item.

createDate

Item createDate(short aYear, short aMonth, short aDay)

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

Parameters

aYear short-valued representation of the year.
aMonth short-valued representation of the month.
aDay short-valued representation of the day.

Returns

The Date Item.

createDateTime

Item createDateTime(const std::string &aDateTimeValue)

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

Parameters

aDateTimeValue String representation of the datetime value (for example, 2002-10-10T12:00:00-05:00).

Returns

The DateTime Item.

createDateTime

Item createDateTime(short aYear, short aMonth, short aDay, short aHour, short aMinute, double aSecond, short aTimeZone_hours)

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

Parameters

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.

Returns

The DateTime Item.

createDateTimeStamp

Item createDateTimeStamp(short aYear, short aMonth, short aDay, short aHour, short aMinute, double aSecond, short aTimeZone_hours)

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

Parameters

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.

Returns

The DateTime Item.

createDateTimeStamp

Item createDateTimeStamp(const std::string &aValue)

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

Parameters

aDateTimeValue String representation of the datetime value (for example, 2002-10-10T12:00:00-05:00).

Returns

The DateTime Item.

createDayTimeDuration

Item createDayTimeDuration(const std::string &aValue)

Creates a dayTimeDuration Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes].

Parameters

aValue String lexical representation of the duration.

Returns

the dayTimeDuration Item.

createDecimal

Item createDecimal(const std::string &aValue)

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

Parameters

aValue String representation of the Decimal (e.g. 12678967.543233).

Returns

The Decimal Item.

createDecimalFromDouble

Item createDecimalFromDouble(double aValue)

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

Parameters

aValue double representation of the Decimal.

Returns

The Decimal Item.

createDecimalFromLong

Item createDecimalFromLong(unsigned long aValue)

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

Parameters

aValue unsigned long representation of the Decimal.

Returns

The Decimal Item.

createDocumentNode

Item createDocumentNode(const std::string &aBaseUri, const std::string &aDocUri)

Creates a documentNode Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes].

Parameters

aBaseUri String representation of the Base URI.
aDocUri String representation of the Document URI.

Returns

the documentNode Item.

createDouble

Item createDouble(const std::string &aValue)

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

Parameters

aValue String representation of the Double.

Returns

The Double Item.

createDouble

Item createDouble(double aValue)

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

Parameters

aValue double representation of the Double.

Returns

The Double Item.

createDuration

Item createDuration(const std::string &aValue)

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

Parameters

aValue String representation of the NCName.

Returns

The Duration Item.

createDuration

Item createDuration(short aYear, short aMonths, short aDays, short aHours, short aMinutes, double aSeconds)

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

Parameters

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.

Returns

The Duration Item.

createElementNode

Item createElementNode(Item &aParent, Item &aNodeName, Item &aTypeName, bool aHasTypedValue, bool aHasEmptyValue, std::vector< std::pair< std::string, std::string > > aNsBindings)

Creates a new element node.

Create a new element node N and place it at the end among the children of a given parent node. If no parent is given, N becomes the root (and single node) of a new XML tree.

Parameters

aParent The parent P of the new node; may be NULL.
aNodeName The fully qualified name of the new node.
aTypeName The fully qualified name of the new node's type. Not allowed to be NULL, use xsd:untyped instead.
aHasTypedValue Whether the node has a typed value or not (element nodes with complex type and element-only content do not have typed value).
aHasEmptyValue True if the typed value of the node is the empty sequence. This is the case if the element has a complex type with empty content.
aNsBindings A set of namespace bindings. The namespaces property of N will be the union of this set and the namespaces property of P.

Returns

The new node N created by this method

createElementNode

Item createElementNode(Item &aParent, Item &aNodeName, Item &aTypeName, bool aHasTypedValue, bool aHasEmptyValue)

Creates a new element node.

Create a new element node N and place it at the end among the children of a given parent node. If no parent is given, N becomes the root (and single node) of a new XML tree.

Parameters

aParent The parent P of the new node; may be NULL.
aNodeName The fully qualified name of the new node.
aTypeName The fully qualified name of the new node's type. Not allowed to be NULL, use xsd:untyped instead.
aHasTypedValue Whether the node has a typed value or not (element nodes with complex type and element-only content do not have typed value).
aHasEmptyValue True if the typed value of the node is the empty sequence. This is the case if the element has a complex type with empty content.

Returns

The new node N created by this method

createFloat

Item createFloat(const std::string &aValue)

creates a float item see [http://www.w3.org/tr/xmlschema-2/#float]

Parameters

aValue string representation of the float.

Returns

the float item.

createFloat

Item createFloat(float aValue)

creates a float item see [http://www.w3.org/tr/xmlschema-2/#float]

Parameters

aValue float representation of the float.

Returns

the float item.

createGDay

Item createGDay(const std::string &aValue)

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

Parameters

aValue String representation of the gDay.

Returns

The gDay Item.

createGDay

Item createGDay(short aDay)

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

Parameters

aDay short representation of the gDay.

Returns

The gDay Item.

createGMonth

Item createGMonth(const std::string &aValue)

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

Parameters

aValue String representation of the gMonth.

Returns

The gMonth Item.

createGMonth

Item createGMonth(short aMonth)

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

Parameters

aMonth short representation of the gMonth.

Returns

The gMonth Item.

createGMonthDay

Item createGMonthDay(const std::string &aValue)

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

Parameters

aValue String representation of the gMonthDay.

Returns

The gMonthDay Item.

createGMonthDay

Item createGMonthDay(short aMonth, short aDay)

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

Parameters

aMonth short representation of the month.
aDay short representation of the day.

Returns

The gMonthDay Item.

createGYear

Item createGYear(short aYear)

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

Parameters

aYear short representation of the gYear.

Returns

The gYear Item.

createGYear

Item createGYear(const std::string &aValue)

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

Parameters

aValue String representation of the gYear.

Returns

The gYear Item.

createGYearMonth

Item createGYearMonth(const std::string &aValue)

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

Parameters

aValue String representation of the gYearMonth.

Returns

The gYearMonth Item.

createGYearMonth

Item createGYearMonth(short aYear, short aMonth)

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

Parameters

aYear short representation of the year.
aMonth short representation of the month.

Returns

The gYearMonth Item.

createHexBinary

Item createHexBinary(const char *aHexData, size_t aSize)

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

Parameters

aHexData pointer to the hexdata.
aSize size of the hexdata.

Returns

The HexBinary Item.

createInt

Item createInt(int aInt)

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

Parameters

aInt int representation of the Int.

Returns

The NCName Item.

createInteger

Item createInteger(const std::string &aInteger)

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

Parameters

aInteger String representation of the Integer.

Returns

The Integer Item.

createInteger

Item createInteger(long long aInteger)

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

Parameters

aInteger unsigned long representation of the Integer.

Returns

The Integer Item.

createJSONArray

Item createJSONArray(std::vector< Item > &aItems)

Create a JSON Array containing the specified items.

Parameters

aItems a Vector<Item> containing Items which may be stored in a JSON Array (namely JSON Arrays, JSON Objects, JSON nulls, valid JSON numeric types, or xs:strings).

createJSONArray

Item createJSONArray(std::vector< std::string > &aItems)

Create a JSON Array containing the specified items.

Parameters

aItems a Vector<String> containing strings which may be stored in a JSON Array.

createJSONNull

Item createJSONNull()

Create a JSON null item.

createJSONObject

Item createJSONObject(std::vector< std::pair< Item, Item > > &aNames)

Create a JSON Object containing the specified JSON Pairs.

Parameters

aNames A vector containing the name and value of each pair.

createJSONObject

Item createJSONObject(std::vector< std::pair< std::string, std::string > > &aNames)

Create a JSON Object containing the specified string Pairs.

Parameters

aNames A vector containing the name and value of each pair.

createLong

Item createLong(long long aLong)

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

Parameters

aLong long long representation of the Long.

Returns

The Long Item.

createNCName

Item createNCName(const std::string &aValue)

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

Parameters

aValue String representation of the NCName.

Returns

The NCName Item.

createNegativeInteger

Item createNegativeInteger(long long aValue)

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

Parameters

aValue long long representation of the negativeInteger.

Returns

The negativeInteger Item.

createNonNegativeInteger

Item createNonNegativeInteger(unsigned long long aValue)

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

Parameters

aValue unsigned long representation of the nonNegativeInteger.

Returns

The nonNegativeInteger Item.

createNonPositiveInteger

Item createNonPositiveInteger(long long aValue)

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

Parameters

aValue long long representation of the NCName.

Returns

The nonPositiveInteger Item.

createPiNode

Item createPiNode(Item &aParent, const std::string &aTarget, const std::string &aContent, const std::string &aBaseUri)

Create a new Processing Instruction node N and place it among the children of a given parent node.

If no parent is given, N becomes the root (and single node) of a new XML tree.

Parameters

aParent The parent P of the new node; may be NULL.
aTarget The Target of the new node.
aContent The Content of the new node.
aBaseUri The Base URI of the new node, may be NULL.

Returns

The new node N created by this method

createPositiveInteger

Item createPositiveInteger(unsigned long long aValue)

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

Parameters

aValue unsigned long representation of the positiveInteger.

Returns

The positiveInteger Item.

createQName

Item createQName(const std::string &aNamespace, const std::string &aPrefix, const std::string &aLocalname)

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

Parameters

aNamespace String representation of the namespace.
aPrefix String representation of the prefix.
aLocalname String representation of the localname.

Returns

The QName Item.

createQName

Item createQName(const std::string &aNamespace, const std::string &aLocalname)

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

Parameters

aNamespace String representation of the namespace.
aLocalname String representation of the localname. *

Returns

The QName Item.

createQName

Item createQName(const std::string &aQNameString)

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

The QName is constructed by parsing the string using the notation invented by James Clark (i.e. {namespace}localname).

Parameters

aQNameString String in the QName notation by James Clark.

Returns

The QName Item.

createShort

Item createShort(short aShort)

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

Parameters

aShort short representation of the Short.

Returns

The Short Item.

createString

Item createString(const std::string &aString)

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

Parameters

aString String representation of the String Item.

Returns

The String Item

createTextNode

Item createTextNode(Item &aParent, const std::string &aContent)

Create a new text node N and place it among the children of a given parent node.

If no parent is given, N becomes the root (and single node) of a new XML tree.

Parameters

aParent The parent P of the new node; may be NULL.
aContent The content of the new node.

Returns

The new node N created by this method

createTime

Item createTime(short aHour, short aMinute, double aSecond, short aTimeZone_hours)

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

Parameters

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.

Returns

The Time Item.

createTime

Item createTime(short aHour, short aMinute, double aSecond)

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

Parameters

aHour short representation of the hour.
aMinute short representation of the minute.
aSecond double representation of the seconds and fractional seconds.

Returns

The Time Item.

createTime

Item createTime(const std::string &aValue)

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

Parameters

aValue String representation of the Time.

Returns

The Time Item

createUnsignedByte

Item createUnsignedByte(const unsigned char aValue)

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

Parameters

aValue unsignedByte unsigned char representation of the unsigned byte.

Returns

The Unsigned Byte Item.

createUnsignedInt

Item createUnsignedInt(unsigned int aValue)

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

Parameters

aValue unsigned int representation of the unsignedInt.

Returns

The unsignedInt Item.

createUnsignedLong

Item createUnsignedLong(unsigned long long aValue)

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

Parameters

aValue unsignedLong long long representation of the unsignedLong.

Returns

The unsignedLong Item.

createUnsignedShort

Item createUnsignedShort(unsigned short aValue)

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

Parameters

aValue unsigned short representation of the unsignedShort.

Returns

The unsignedShort Item.

createYearMonthDuration

Item createYearMonthDuration(const std::string &aValue)

Creates a yearMonthDuration Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes].

Parameters

aValue String lexical representation of the duration.

Returns

the yearMonthDuration Item.

ItemFactory

 ItemFactory(zorba::ItemFactory *aItemFactory)

ItemFactory

 ItemFactory(const ItemFactory &aItemFactory)