Public Member Functions
ItemFactory Class Reference

ItemFactory to create Items. More...

List of all members.

Public Member 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 *aBinData, size_t aLength)
 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 createBase64Binary (const unsigned char *aBinData, size_t aLength)
 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 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 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)

Detailed Description

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.

Definition at line 28 of file ItemFactory.h.


Constructor & Destructor Documentation

ItemFactory::ItemFactory ( zorba::ItemFactory *  aItemFactory)
inline

Definition at line 34 of file ItemFactory.h.

ItemFactory::ItemFactory ( const ItemFactory aItemFactory)
inline

Definition at line 35 of file ItemFactory.h.


Member Function Documentation

Item ItemFactory::createAnyURI ( const std::string &  aURI)

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

Parameters:
aURIString representation of the AnyURI.
Returns:
The AnyURI Item.
Item ItemFactory::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:
aParentThe parent P of the new node; may be NULL.
aNodeNameThe 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.
aTypeNameThe fully qualified name of the new node's type.
aTypedValueThe typed value of the new node.
Returns:
The new node N created by this method
Item ItemFactory::createAttributeNode ( Item aParent,
Item aNodeName,
Item aTypeName,
std::vector< Item aTypedValue 
)
Item ItemFactory::createBase64Binary ( const char *  aBinData,
size_t  aLength 
)

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

Parameters:
aBinDataa pointer to the base64 binary data.
aLengththe length of the base64 binary data.
Returns:
The Base64Binary Item.
Item ItemFactory::createBase64Binary ( std::istream &  aStream)

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

Parameters:
aStreamA stream containing the Base64 encoded data.
Returns:
the Base64Binary Item.
Item ItemFactory::createBase64Binary ( const unsigned char *  aBinData,
size_t  aLength 
)

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

Parameters:
aBinDatathe data in binary form. The data is copied from aBinData.
aLengththe length of the data
Returns:
the Base64Binary Item.
Item ItemFactory::createBoolean ( bool  aValue)

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

Parameters:
aValuebool representation of the Boolean.
Returns:
The Boolean Item.
Item ItemFactory::createByte ( char  aByte)

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

Parameters:
aBytechar representation of the Byte.
Returns:
The Byte Item.
Item ItemFactory::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:
aParentThe parent P of the new node; may be NULL.
aContentThe content of the new node.
Returns:
The new node N created by this method
Item ItemFactory::createDate ( const std::string &  aDate)

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

Parameters:
aDateString representation of the Date (e.g. 2002-10-10).
Returns:
The Date Item.
Item ItemFactory::createDate ( short  aYear,
short  aMonth,
short  aDay 
)

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

Parameters:
aYearshort-valued representation of the year.
aMonthshort-valued representation of the month.
aDayshort-valued representation of the day.
Returns:
The Date Item.
Item ItemFactory::createDateTime ( const std::string &  aDateTimeValue)

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

Parameters:
aDateTimeValueString representation of the datetime value (for example, 2002-10-10T12:00:00-05:00).
Returns:
The DateTime Item.
Item ItemFactory::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:
aYearshort-valued representation of the year.
aMonthshort-valued representation of the month.
aDayshort-valued representation of the day.
aHourshort-valued representation of the hour.
aMinuteshort-valued representation of the minute.
aSeconddouble-valued representation of the seconds and fractional seconds.
aTimeZone_hoursshort-valued representation of the difference in hours to UTC.
Returns:
The DateTime Item.
Item ItemFactory::createDayTimeDuration ( const std::string &  aValue)

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

Parameters:
aValueString lexical representation of the duration.
Returns:
the dayTimeDuration Item.
Item ItemFactory::createDecimal ( const std::string &  aValue)

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

Parameters:
aValueString representation of the Decimal (e.g. 12678967.543233).
Returns:
The Decimal Item.
Item ItemFactory::createDecimalFromDouble ( double  aValue)

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

Parameters:
aValuedouble representation of the Decimal.
Returns:
The Decimal Item.
Item ItemFactory::createDecimalFromLong ( unsigned long  aValue)

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

Parameters:
aValueunsigned long representation of the Decimal.
Returns:
The Decimal Item.
Item ItemFactory::createDocumentNode ( const std::string &  aBaseUri,
const std::string &  aDocUri 
)

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

Parameters:
aBaseUriString representation of the Base URI.
aDocUriString representation of the Document URI.
Returns:
the documentNode Item.
Item ItemFactory::createDouble ( const std::string &  aValue)

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

Parameters:
aValueString representation of the Double.
Returns:
The Double Item.
Item ItemFactory::createDouble ( double  aValue)

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

Parameters:
aValuedouble representation of the Double.
Returns:
The Double Item.
Item ItemFactory::createDuration ( const std::string &  aValue)

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

Parameters:
aValueString representation of the NCName.
Returns:
The Duration Item.
Item ItemFactory::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:
aYearshort-valued representation of the years.
aMonthsshort-valued representation of the months.
aDaysshort-valued representation of the days.
aHoursshort-valued representation of the hours.
aMinutesshort-valued representation of the minutes.
aSecondsdouble-valued representation of the seconds and fractional seconds.
Returns:
The Duration Item.
Item ItemFactory::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:
aParentThe parent P of the new node; may be NULL.
aNodeNameThe fully qualified name of the new node.
aTypeNameThe fully qualified name of the new node's type. Not allowed to be NULL, use xsd:untyped instead.
aHasTypedValueWhether the node has a typed value or not (element nodes with complex type and element-only content do not have typed value).
aHasEmptyValueTrue 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.
aNsBindingsA 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
Item ItemFactory::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:
aParentThe parent P of the new node; may be NULL.
aNodeNameThe fully qualified name of the new node.
aTypeNameThe fully qualified name of the new node's type. Not allowed to be NULL, use xsd:untyped instead.
aHasTypedValueWhether the node has a typed value or not (element nodes with complex type and element-only content do not have typed value).
aHasEmptyValueTrue 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
Item ItemFactory::createFloat ( const std::string &  aValue)

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

Parameters:
aValuestring representation of the float.
Returns:
the float item.
Item ItemFactory::createFloat ( float  aValue)

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

Parameters:
aValuefloat representation of the float.
Returns:
the float item.
Item ItemFactory::createGDay ( const std::string &  aValue)

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

Parameters:
aValueString representation of the gDay.
Returns:
The gDay Item.
Item ItemFactory::createGDay ( short  aDay)

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

Parameters:
aDayshort representation of the gDay.
Returns:
The gDay Item.
Item ItemFactory::createGMonth ( const std::string &  aValue)

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

Parameters:
aValueString representation of the gMonth.
Returns:
The gMonth Item.
Item ItemFactory::createGMonth ( short  aMonth)

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

Parameters:
aMonthshort representation of the gMonth.
Returns:
The gMonth Item.
Item ItemFactory::createGMonthDay ( const std::string &  aValue)

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

Parameters:
aValueString representation of the gMonthDay.
Returns:
The gMonthDay Item.
Item ItemFactory::createGMonthDay ( short  aMonth,
short  aDay 
)

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

Parameters:
aMonthshort representation of the month.
aDayshort representation of the day.
Returns:
The gMonthDay Item.
Item ItemFactory::createGYear ( short  aYear)

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

Parameters:
aYearshort representation of the gYear.
Returns:
The gYear Item.
Item ItemFactory::createGYear ( const std::string &  aValue)

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

Parameters:
aValueString representation of the gYear.
Returns:
The gYear Item.
Item ItemFactory::createGYearMonth ( const std::string &  aValue)

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

Parameters:
aValueString representation of the gYearMonth.
Returns:
The gYearMonth Item.
Item ItemFactory::createGYearMonth ( short  aYear,
short  aMonth 
)

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

Parameters:
aYearshort representation of the year.
aMonthshort representation of the month.
Returns:
The gYearMonth Item.
Item ItemFactory::createHexBinary ( const char *  aHexData,
size_t  aSize 
)

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

Parameters:
aHexDatapointer to the hexdata.
aSizesize of the hexdata.
Returns:
The HexBinary Item.
Item ItemFactory::createInt ( int  aInt)

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

Parameters:
aIntint representation of the Int.
Returns:
The NCName Item.
Item ItemFactory::createInteger ( const std::string &  aInteger)

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

Parameters:
aIntegerString representation of the Integer.
Returns:
The Integer Item.
Item ItemFactory::createInteger ( long long  aInteger)

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

Parameters:
aIntegerunsigned long representation of the Integer.
Returns:
The Integer Item.
Item ItemFactory::createLong ( long long  aLong)

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

Parameters:
aLonglong long representation of the Long.
Returns:
The Long Item.
Item ItemFactory::createNCName ( const std::string &  aValue)

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

Parameters:
aValueString representation of the NCName.
Returns:
The NCName Item.
Item ItemFactory::createNegativeInteger ( long long  aValue)

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

Parameters:
aValuelong long representation of the negativeInteger.
Returns:
The negativeInteger Item.
Item ItemFactory::createNonNegativeInteger ( unsigned long long  aValue)

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

Parameters:
aValueunsigned long representation of the nonNegativeInteger.
Returns:
The nonNegativeInteger Item.
Item ItemFactory::createNonPositiveInteger ( long long  aValue)

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

Parameters:
aValuelong long representation of the NCName.
Returns:
The nonPositiveInteger Item.
Item ItemFactory::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:
aParentThe parent P of the new node; may be NULL.
aTargetThe Target of the new node.
aContentThe Content of the new node.
aBaseUriThe Base URI of the new node, may be NULL.
Returns:
The new node N created by this method
Item ItemFactory::createPositiveInteger ( unsigned long long  aValue)

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

Parameters:
aValueunsigned long representation of the positiveInteger.
Returns:
The positiveInteger Item.
Item ItemFactory::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:
aNamespaceString representation of the namespace.
aPrefixString representation of the prefix.
aLocalnameString representation of the localname.
Returns:
The QName Item.
Item ItemFactory::createQName ( const std::string &  aNamespace,
const std::string &  aLocalname 
)

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

Parameters:
aNamespaceString representation of the namespace.
aLocalnameString representation of the localname. *
Returns:
The QName Item.
Item ItemFactory::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:
aQNameStringString in the QName notation by James Clark.
Returns:
The QName Item.
Item ItemFactory::createShort ( short  aShort)

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

Parameters:
aShortshort representation of the Short.
Returns:
The Short Item.
Item ItemFactory::createString ( const std::string &  aString)

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

Parameters:
aStringString representation of the String Item.
Returns:
The String Item
Item ItemFactory::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:
aParentThe parent P of the new node; may be NULL.
aContentThe content of the new node.
Returns:
The new node N created by this method
Item ItemFactory::createTime ( short  aHour,
short  aMinute,
double  aSecond,
short  aTimeZone_hours 
)

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

Parameters:
aHourshort representation of the hour.
aMinuteshort representation of the minute.
aSeconddouble representation of the seconds and fractional seconds.
aTimeZone_hoursshort representation of the timezone difference in hours to UTC.
Returns:
The Time Item.
Item ItemFactory::createTime ( short  aHour,
short  aMinute,
double  aSecond 
)

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

Parameters:
aHourshort representation of the hour.
aMinuteshort representation of the minute.
aSeconddouble representation of the seconds and fractional seconds.
Returns:
The Time Item.
Item ItemFactory::createTime ( const std::string &  aValue)

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

Parameters:
aValueString representation of the Time.
Returns:
The Time Item
Item ItemFactory::createUnsignedByte ( const unsigned char  aValue)

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

Parameters:
aValueunsignedByte unsigned char representation of the unsigned byte.
Returns:
The Unsigned Byte Item.
Item ItemFactory::createUnsignedInt ( unsigned int  aValue)

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

Parameters:
aValueunsigned int representation of the unsignedInt.
Returns:
The unsignedInt Item.
Item ItemFactory::createUnsignedLong ( unsigned long long  aValue)

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

Parameters:
aValueunsignedLong long long representation of the unsignedLong.
Returns:
The unsignedLong Item.
Item ItemFactory::createUnsignedShort ( unsigned short  aValue)

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

Parameters:
aValueunsigned short representation of the unsignedShort.
Returns:
The unsignedShort Item.
Item ItemFactory::createYearMonthDuration ( const std::string &  aValue)

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

Parameters:
aValueString lexical representation of the duration.
Returns:
the yearMonthDuration Item.

The documentation for this class was generated from the following file:
blog comments powered by Disqus