Public Member Functions | List of all members
zorba::ItemFactory Class Referenceabstract

ItemFactory to create Items. More...

#include <zorba/item_factory.h>

Public Member Functions

virtual void assignElementTypedValue (Item &aElement, Item aTypedValue)=0
 Assigns a simple typed value to an element node. More...
 
virtual void assignElementTypedValue (Item &aElement, std::vector< Item > &aTypedValue)=0
 Assigns a simple typed value to an element node. More...
 
virtual Item createAnyURI (const String &aURI)=0
 Creates an AnyURI Item see [http://www.w3.org/TR/xmlschema-2/#anyURI]. More...
 
virtual Item createAttributeNode (Item aParent, Item aNodeName, Item aTypeName, Item aTypedValue)=0
 Create a new attribute node N and place it among the attributes of a given parent node. More...
 
virtual Item createAttributeNode (Item aParent, Item aNodeName, Item aTypeName, std::vector< Item > aTypedValue)=0
 
virtual Item createBase64Binary (const char *aBinData, size_t aLength)=0
 Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary]. More...
 
virtual Item createBase64Binary (std::istream &aStream)=0
 Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary]. More...
 
virtual Item createBase64Binary (const unsigned char *aBinData, size_t aLength)=0
 Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary]. More...
 
virtual Item createBoolean (bool aValue)=0
 Creates a Boolean Item see [http://www.w3.org/TR/xmlschema-2/#bool]. More...
 
virtual Item createByte (char aByte)=0
 Creates a Byte Item see [http://www.w3.org/TR/xmlschema-2/#byte]. More...
 
virtual Item createCommentNode (Item aParent, String &aContent)=0
 Create a new comment node N and place it as the last child of a given parent node. More...
 
virtual Item createDate (const String &aDate)=0
 Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date]. More...
 
virtual Item createDate (short aYear, short aMonth, short aDay)=0
 Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date]. More...
 
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]. More...
 
virtual Item createDateTime (short aYear, short aMonth, short aDay, short aHour, short aMinute, double aSecond)=0
 Creates a DateTime Item without setting a time zone. More...
 
virtual Item createDateTime (const String &aDateTimeValue)=0
 Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime]. More...
 
virtual Item createDateTimeStamp (short aYear, short aMonth, short aDay, short aHour, short aMinute, double aSecond, short aTimeZone_hours)=0
 Creates a DateTimeStamp Item see [www.w3.org/TR/xmlschema11-2/#dateTimeStamp]. More...
 
virtual Item createDateTimeStamp (const String &aDateTimeStampValue)=0
 Creates a DateTimeStamp Item see [www.w3.org/TR/xmlschema11-2/#dateTimeStamp]. More...
 
virtual Item createDayTimeDuration (const String &aValue)=0
 Creates a dayTimeDuration Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes]. More...
 
virtual Item createDecimal (const String &aValue)=0
 Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal]. More...
 
virtual Item createDecimalFromDouble (double aValue)=0
 Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal]. More...
 
virtual Item createDecimalFromLong (unsigned long aValue)=0
 Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal]. More...
 
virtual Item createDocumentNode (const String &aBaseUri, const String &aDocUri)=0
 Creates a documentNode Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes]. More...
 
virtual Item createDouble (double aValue)=0
 Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double]. More...
 
virtual Item createDouble (const String &aValue)=0
 Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double]. More...
 
virtual Item createDuration (const String &aValue)=0
 Creates a Duration Item see [http://www.w3.org/TR/xmlschema-2/#duration]. More...
 
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]. More...
 
virtual Item createElementNode (Item &aParent, Item aNodeName, Item aTypeName, bool aHasTypedValue, bool aHasEmptyValue, NsBindings aNsBindings)=0
 Creates a new element node. More...
 
virtual Item createFloat (const String &aValue)=0
 creates a float item see [http://www.w3.org/tr/xmlschema-2/#float] More...
 
virtual Item createFloat (float aValue)=0
 creates a float item see [http://www.w3.org/tr/xmlschema-2/#float] More...
 
virtual Item createGDay (const String &aValue)=0
 Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay]. More...
 
virtual Item createGDay (short aDay)=0
 Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay]. More...
 
virtual Item createGMonth (const String &aValue)=0
 Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth]. More...
 
virtual Item createGMonth (short aMonth)=0
 Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth]. More...
 
virtual Item createGMonthDay (const String &aValue)=0
 Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay]. More...
 
virtual Item createGMonthDay (short aMonth, short aDay)=0
 Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay]. More...
 
virtual Item createGYear (const String &aValue)=0
 Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear]. More...
 
virtual Item createGYear (short aYear)=0
 Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear]. More...
 
virtual Item createGYearMonth (const String &aValue)=0
 Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth]. More...
 
virtual Item createGYearMonth (short aYear, short aMonth)=0
 Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth]. More...
 
virtual Item createHexBinary (const char *aData, size_t aSize, bool aIsEncoded=true)=0
 Creates a HexBinary Item see [http://www.w3.org/TR/xmlschema-2/#hexBinary]. More...
 
virtual Item createInt (int aInt)=0
 Creates a Int Item see [http://www.w3.org/TR/xmlschema-2/#int]. More...
 
virtual Item createInteger (long long aInteger)=0
 Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer]. More...
 
virtual Item createInteger (const String &aInteger)=0
 Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer]. More...
 
virtual Item createLong (long long aLong)=0
 Creates a Long Item see [http://www.w3.org/TR/xmlschema-2/#long]. More...
 
virtual Item createNCName (const String &aValue)=0
 Creates a NCName Item see [http://www.w3.org/TR/xmlschema-2/#NCName]. More...
 
virtual Item createNegativeInteger (long long aValue)=0
 Creates a negativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#negativeInteger]. More...
 
virtual Item createNonNegativeInteger (unsigned long long aValue)=0
 Creates a nonNegativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger]. More...
 
virtual Item createNonPositiveInteger (long long aValue)=0
 Creates a nonPositiveInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonPositiveInteger]. More...
 
virtual Item createPiNode (Item aParent, String &aTarget, String &aContent, String &aBaseUri)=0
 Create a new Processing Instruction node N and place it among the children of a given parent node. More...
 
virtual Item createPositiveInteger (unsigned long long aValue)=0
 Creates a positiveInteger\ Item see [http://www.w3.org/TR/xmlschema-2/#positiveInteger]. More...
 
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]. More...
 
virtual Item createQName (const String &aNamespace, const String &aLocalname)=0
 Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName]. More...
 
virtual Item createQName (const String &aQNameString)=0
 Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName]. More...
 
virtual Item createShort (short aShort)=0
 Creates a Short Item see [http://www.w3.org/TR/xmlschema-2/#short]. More...
 
virtual Item createStreamableBase64Binary (std::istream &stream, StreamReleaser streamReleaser, bool seekable=false, bool encoded=false)=0
 Creates a streamable Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary]. More...
 
virtual Item createStreamableBase64Binary (std::istream &stream, StreamReleaser streamReleaser, char const *uri, bool seekable=false, bool encoded=false)=0
 Creates a streamable Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary]. More...
 
virtual Item createStreamableString (std::istream &stream, StreamReleaser streamReleaser, bool seekable=false)=0
 Creates a streamable String Item see [http://www.w3.org/TR/xmlschema-2/#string]. More...
 
virtual Item createStreamableString (std::istream &stream, StreamReleaser streamReleaser, char const *uri, bool seekable=false)=0
 Creates a streamable String Item see [http://www.w3.org/TR/xmlschema-2/#string]. More...
 
virtual Item createString (const String &aString)=0
 Creates a String Item see [http://www.w3.org/TR/xmlschema-2/#string]. More...
 
virtual Item createTextNode (Item parent, String content)=0
 Create a new text node N and place it among the children of a given parent node. More...
 
virtual Item createTime (const String &aValue)=0
 Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time]. More...
 
virtual Item createTime (short aHour, short aMinute, double aSecond)=0
 Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time]. More...
 
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]. More...
 
virtual Item createUnsignedByte (const unsigned char aValue)=0
 Creates an Unsigned Byte Item see [http://www.w3.org/TR/xmlschema-2/#unsignedByte]. More...
 
virtual Item createUnsignedInt (unsigned int aValue)=0
 Creates an unsigned int Item see [http://www.w3.org/TR/xmlschema-2/#unsignedInt]. More...
 
virtual Item createUnsignedLong (unsigned long long aValue)=0
 Creates an unsignedLong Item see [http://www.w3.org/TR/xmlschema-2/#unsignedLong]. More...
 
virtual Item createUnsignedShort (unsigned short aValue)=0
 Creates a unsignedShort Item see [http://www.w3.org/TR/xmlschema-2/#unsignedShort]. More...
 
virtual Item createUntypedAtomic (const String &value)=0
 Creates a UntypedAtomic Item. More...
 
virtual Item createUserTypedAtomicItem (Item &aBaseItem, Item &aTypeName)=0
 Create an atomic item having a user-defined atomic type. More...
 
virtual Item createYearMonthDuration (const String &aValue)=0
 Creates a yearMonthDuration Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes]. More...
 
virtual ~ItemFactory ()
 Destructor. More...
 

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.

Examples:
context.cpp, and external_functions.cpp.

Definition at line 38 of file item_factory.h.

Constructor & Destructor Documentation

virtual zorba::ItemFactory::~ItemFactory ( )
inlinevirtual

Destructor.

Definition at line 43 of file item_factory.h.

Member Function Documentation

virtual void zorba::ItemFactory::assignElementTypedValue ( Item aElement,
Item  aTypedValue 
)
pure virtual

Assigns a simple typed value to an element node.

Creates a simple typed value for an element. Note that this may only be done once per element. This method should only be used during creation of a new tree. Using this method to modify elements after processing has begun has undefined results.

Parameters
aElementThe element for the typed value; may not be NULL.
aTypedValueThe typed value for the element.
virtual void zorba::ItemFactory::assignElementTypedValue ( Item aElement,
std::vector< Item > &  aTypedValue 
)
pure virtual

Assigns a simple typed value to an element node.

Creates a simple typed value for an element. Note that this may only be done once per element. This method should only be used during creation of a new tree. Using this method to modify elements after processing has begun has undefined results.

Parameters
aElementThe element for the typed value; may not be NULL.
aTypedValueThe typed value for the element.
virtual Item zorba::ItemFactory::createAnyURI ( const String aURI)
pure virtual

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

Parameters
aURIString representation of the AnyURI.
Returns
The AnyURI Item.
virtual Item zorba::ItemFactory::createAttributeNode ( Item  aParent,
Item  aNodeName,
Item  aTypeName,
Item  aTypedValue 
)
pure virtual

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
virtual Item zorba::ItemFactory::createAttributeNode ( Item  aParent,
Item  aNodeName,
Item  aTypeName,
std::vector< Item aTypedValue 
)
pure virtual
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].

Parameters
aBinDataa pointer to the base64 encoded data. The data is copied from aBinData.
aLengththe length of the base64 encoded data.
Returns
The Base64Binary Item.
virtual Item zorba::ItemFactory::createBase64Binary ( std::istream &  aStream)
pure virtual

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

Parameters
aStreamA stream containing the Base64 encoded data. The data is copied from aStream imediately.
Returns
the Base64Binary Item.
virtual Item zorba::ItemFactory::createBase64Binary ( const unsigned char *  aBinData,
size_t  aLength 
)
pure virtual

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

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

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

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

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

Parameters
aBytechar representation of the Byte.
Returns
The Byte Item.
virtual Item zorba::ItemFactory::createCommentNode ( Item  aParent,
String aContent 
)
pure virtual

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
virtual Item zorba::ItemFactory::createDate ( const String aDate)
pure virtual

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.
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].

Parameters
aYearshort-valued representation of the year.
aMonthshort-valued representation of the month.
aDayshort-valued representation of the day.
Returns
The Date Item.
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].

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.
Examples:
context.cpp.
virtual Item zorba::ItemFactory::createDateTime ( short  aYear,
short  aMonth,
short  aDay,
short  aHour,
short  aMinute,
double  aSecond 
)
pure virtual

Creates a DateTime Item without setting a time zone.

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.
Returns
The DateTime Item.
virtual Item zorba::ItemFactory::createDateTime ( const String aDateTimeValue)
pure virtual

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.
virtual Item zorba::ItemFactory::createDateTimeStamp ( short  aYear,
short  aMonth,
short  aDay,
short  aHour,
short  aMinute,
double  aSecond,
short  aTimeZone_hours 
)
pure virtual

Creates a DateTimeStamp Item see [www.w3.org/TR/xmlschema11-2/#dateTimeStamp].

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 DateTimeStamp Item.
virtual Item zorba::ItemFactory::createDateTimeStamp ( const String aDateTimeStampValue)
pure virtual

Creates a DateTimeStamp Item see [www.w3.org/TR/xmlschema11-2/#dateTimeStamp].

Parameters
aDateTimeStampValueString representation of the datetimeStamp value (for example, 2002-10-10T12:00:00-05:00).
Returns
The DateTimeStamp Item.
virtual Item zorba::ItemFactory::createDayTimeDuration ( const String aValue)
pure virtual

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.
virtual Item zorba::ItemFactory::createDecimal ( const String aValue)
pure virtual

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.
virtual Item zorba::ItemFactory::createDecimalFromDouble ( double  aValue)
pure virtual

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

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

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

Parameters
aValueunsigned long representation of the Decimal.
Returns
The Decimal Item.
virtual Item zorba::ItemFactory::createDocumentNode ( const String aBaseUri,
const String aDocUri 
)
pure virtual

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.
virtual Item zorba::ItemFactory::createDouble ( double  aValue)
pure virtual

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

Parameters
aValuedouble representation of the Double.
Returns
The Double Item.
virtual Item zorba::ItemFactory::createDouble ( const String aValue)
pure virtual

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

Parameters
aValueString representation of the Double.
Returns
The Double Item.
virtual Item zorba::ItemFactory::createDuration ( const String aValue)
pure virtual

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

Parameters
aValueString representation of the NCName.
Returns
The Duration Item.
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].

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.
virtual Item zorba::ItemFactory::createElementNode ( Item aParent,
Item  aNodeName,
Item  aTypeName,
bool  aHasTypedValue,
bool  aHasEmptyValue,
NsBindings  aNsBindings 
)
pure virtual

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
virtual Item zorba::ItemFactory::createFloat ( const String aValue)
pure virtual

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

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

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

Parameters
aValuefloat representation of the float.
Returns
the float item.
virtual Item zorba::ItemFactory::createGDay ( const String aValue)
pure virtual

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

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

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

Parameters
aDayshort representation of the gDay.
Returns
The gDay Item.
virtual Item zorba::ItemFactory::createGMonth ( const String aValue)
pure virtual

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

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

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

Parameters
aMonthshort representation of the gMonth.
Returns
The gMonth Item.
virtual Item zorba::ItemFactory::createGMonthDay ( const String aValue)
pure virtual

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

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

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.
virtual Item zorba::ItemFactory::createGYear ( const String aValue)
pure virtual

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

Parameters
aValueString representation of the gYear.
Returns
The gYear Item.
virtual Item zorba::ItemFactory::createGYear ( short  aYear)
pure virtual

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

Parameters
aYearshort representation of the gYear.
Returns
The gYear Item.
virtual Item zorba::ItemFactory::createGYearMonth ( const String aValue)
pure virtual

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

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

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.
virtual Item zorba::ItemFactory::createHexBinary ( const char *  aData,
size_t  aSize,
bool  aIsEncoded = true 
)
pure virtual

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

Parameters
aDatapointer to the data.
aSizesize of the data in bytes.
aIsEncodedif true, the aData is already HexBinary encoded.
Returns
The HexBinary Item.
virtual Item zorba::ItemFactory::createInt ( int  aInt)
pure virtual

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

Parameters
aIntint representation of the Int.
Returns
The NCName Item.
virtual Item zorba::ItemFactory::createInteger ( long long  aInteger)
pure virtual

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

Parameters
aIntegerunsigned long representation of the Integer.
Returns
The Integer Item.
Examples:
context.cpp, and simple.cpp.
virtual Item zorba::ItemFactory::createInteger ( const String aInteger)
pure virtual

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

Parameters
aIntegerString representation of the Integer.
Returns
The Integer Item.
virtual Item zorba::ItemFactory::createLong ( long long  aLong)
pure virtual

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

Parameters
aLonglong long representation of the Long.
Returns
The Long Item.
virtual Item zorba::ItemFactory::createNCName ( const String aValue)
pure virtual

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

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

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

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

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

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

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

Parameters
aValuelong long representation of the NCName.
Returns
The nonPositiveInteger Item.
virtual Item zorba::ItemFactory::createPiNode ( Item  aParent,
String aTarget,
String aContent,
String aBaseUri 
)
pure virtual

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
virtual Item zorba::ItemFactory::createPositiveInteger ( unsigned long long  aValue)
pure virtual

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

Parameters
aValueunsigned long representation of the positiveInteger.
Returns
The positiveInteger Item.
virtual Item zorba::ItemFactory::createQName ( const String aNamespace,
const String aPrefix,
const String aLocalname 
)
pure virtual

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.
Examples:
context.cpp, datamanager.cpp, and errors.cpp.
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].

Parameters
aNamespaceString representation of the namespace.
aLocalnameString representation of the localname. *
Returns
The QName Item.
virtual Item zorba::ItemFactory::createQName ( const String aQNameString)
pure virtual

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.
virtual Item zorba::ItemFactory::createShort ( short  aShort)
pure virtual

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

Parameters
aShortshort representation of the Short.
Returns
The Short Item.
virtual Item zorba::ItemFactory::createStreamableBase64Binary ( std::istream &  stream,
StreamReleaser  streamReleaser,
bool  seekable = false,
bool  encoded = false 
)
pure virtual

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

Parameters
streamAn istream from where to read the binary's content.
streamReleaserA function pointer which is invoked once the StreamableBase64Binary is destroyed. Normally this function will delete the std::istream object passed to it.
seekableis the given stream seekable
encodedis the contents of the given stream already base64 encoded
Returns
The streamable String Item
virtual Item zorba::ItemFactory::createStreamableBase64Binary ( std::istream &  stream,
StreamReleaser  streamReleaser,
char const *  uri,
bool  seekable = false,
bool  encoded = false 
)
pure virtual

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

Parameters
streamAn istream from where to read the binary's content.
streamReleaserA function pointer which is invoked once the StreamableBase64Binary is destroyed. Normally this function will delete the std::istream object passed to it.
uriThe URI is intended to be used to note the origination URI (e.g., file) that data is coming from.
seekableis the given stream seekable
encodedis the contents of the given stream already base64 encoded
Returns
The streamable String Item
virtual Item zorba::ItemFactory::createStreamableString ( std::istream &  stream,
StreamReleaser  streamReleaser,
bool  seekable = false 
)
pure virtual

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

Parameters
streamAn istream from where to read the string's content.
streamReleaserA function pointer which is invoked once the StreamableStringItem is destroyed. Normally this function will delete the std::istream object passed to it.
seekable
Returns
The streamable String Item
virtual Item zorba::ItemFactory::createStreamableString ( std::istream &  stream,
StreamReleaser  streamReleaser,
char const *  uri,
bool  seekable = false 
)
pure virtual

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

Parameters
streamAn istream from where to read the string's content.
streamReleaserA function pointer which is invoked once the StreamableStringItem is destroyed. Normally this function will delete the std::istream object passed to it.
uriThe URI is intended to be used to note the origination URI (e.g., file) that data is coming from.
seekable
Returns
The streamable String Item
virtual Item zorba::ItemFactory::createString ( const String aString)
pure virtual

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

Parameters
aStringString representation of the String Item.
Returns
The String Item
Examples:
datamanager.cpp.
virtual Item zorba::ItemFactory::createTextNode ( Item  parent,
String  content 
)
pure virtual

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
parentThe parent P of the new node; may be NULL.
contentThe content of the new node.
Returns
The new node N created by this method
virtual Item zorba::ItemFactory::createTime ( const String aValue)
pure virtual

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

Parameters
aValueString representation of the Time.
Returns
The Time Item
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].

Parameters
aHourshort representation of the hour.
aMinuteshort representation of the minute.
aSeconddouble representation of the seconds and fractional seconds.
Returns
The Time Item.
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].

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.
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].

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

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.
virtual Item zorba::ItemFactory::createUnsignedLong ( unsigned long long  aValue)
pure virtual

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.
virtual Item zorba::ItemFactory::createUnsignedShort ( unsigned short  aValue)
pure virtual

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

Parameters
aValueunsigned short representation of the unsignedShort.
Returns
The unsignedShort Item.
virtual Item zorba::ItemFactory::createUntypedAtomic ( const String value)
pure virtual

Creates a UntypedAtomic Item.

Parameters
valueString representation of the UntypedAtomic Item.
Returns
The UntypedAtomic Item
virtual Item zorba::ItemFactory::createUserTypedAtomicItem ( Item aBaseItem,
Item aTypeName 
)
pure virtual

Create an atomic item having a user-defined atomic type.

Parameters
aBaseItemthe base item of the item to create.
aTypeNamethe name of the type of the item to create.
Returns
a new atomic item having the given user-defined atomic type.
virtual Item zorba::ItemFactory::createYearMonthDuration ( const String aValue)
pure virtual

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: