17 #ifndef API_ITEM_FACTORY_H
18 #define API_ITEM_FACTORY_H
32 zorba::ItemFactory* theItemFactory;
34 ItemFactory(zorba::ItemFactory* aItemFactory) : theItemFactory(aItemFactory) {}
156 Item createDateTime (
short aYear,
short aMonth,
short aDay,
short aHour,
short aMinute,
double aSecond,
short aTimeZone_hours);
217 Item createDuration (
short aYear,
short aMonths,
short aDays,
short aHours,
short aMinutes,
double aSeconds);
266 Item createElementNode (
Item &aParent,
Item &aNodeName,
Item &aTypeName,
bool aHasTypedValue,
bool aHasEmptyValue, std::vector< std::pair< std::string, std::string > > aNsBindings);
412 #ifndef SWIGPHP // Seems that this kind of overloading is causing conflinct among some versions of SWIG/PHP
473 Item createPiNode (
Item &aParent,
const std::string &aTarget,
const std::string &aContent,
const std::string &aBaseUri);
492 Item createQName (
const std::string &aNamespace,
const std::string &aPrefix,
const std::string &aLocalname);
501 Item createQName (
const std::string &aNamespace,
const std::string &aLocalname);
551 Item createTime (
short aHour,
short aMinute,
double aSecond,
short aTimeZone_hours);
663 short aHour,
short aMinute,
double aSecond,
664 short aTimeZone_hours);
ItemFactory(zorba::ItemFactory *aItemFactory)
Item createGDay(const std::string &aValue)
Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay].
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 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 createShort(short aShort)
Creates a Short Item see [http://www.w3.org/TR/xmlschema-2/#short].
Item createGYearMonth(const std::string &aValue)
Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth].
Item createJSONObject(std::vector< std::pair< Item, Item > > &aNames)
Create a JSON Object containing the specified JSON Pairs.
Item createAnyURI(const std::string &aURI)
Creates an AnyURI Item see [http://www.w3.org/TR/xmlschema-2/#anyURI].
Item createGMonthDay(const std::string &aValue)
Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay].
Item createDecimalFromLong(unsigned long aValue)
Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].
Item createGMonth(const std::string &aValue)
Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth].
Item createYearMonthDuration(const std::string &aValue)
Creates a yearMonthDuration Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes].
Item createBase64Binary(const char *aBinData, size_t aLength)
Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary]. ...
Item createJSONNull()
Create a JSON null item.
Item createNonPositiveInteger(long long aValue)
Creates a nonPositiveInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonPositiveInteger].
Item createBoolean(bool aValue)
Creates a Boolean Item see [http://www.w3.org/TR/xmlschema-2/#bool].
ItemFactory(const ItemFactory &aItemFactory)
Item createUnsignedShort(unsigned short aValue)
Creates a unsignedShort Item see [http://www.w3.org/TR/xmlschema-2/#unsignedShort].
Item createNegativeInteger(long long aValue)
Creates a negativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#negativeInteger].
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 createByte(char aByte)
Creates a Byte Item see [http://www.w3.org/TR/xmlschema-2/#byte].
Item createDuration(const std::string &aValue)
Creates a Duration Item see [http://www.w3.org/TR/xmlschema-2/#duration].
Item createJSONNumber(std::string aString)
Create a JSON Number item from a string.
Item createDayTimeDuration(const std::string &aValue)
Creates a dayTimeDuration Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes].
Item createUnsignedLong(unsigned long long aValue)
Creates an unsignedLong Item see [http://www.w3.org/TR/xmlschema-2/#unsignedLong].
Item createFloat(const std::string &aValue)
creates a float item see [http://www.w3.org/tr/xmlschema-2/#float]
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 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 createDouble(const std::string &aValue)
Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double].
The Zorba Item interface.
Item createNCName(const std::string &aValue)
Creates a NCName Item see [http://www.w3.org/TR/xmlschema-2/#NCName].
Item createDateTime(const std::string &aDateTimeValue)
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 createInt(int aInt)
Creates a Int Item see [http://www.w3.org/TR/xmlschema-2/#int].
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 createPositiveInteger(unsigned long long aValue)
Creates a positiveInteger\ Item see [http://www.w3.org/TR/xmlschema-2/#positiveInteger].
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 createUnsignedByte(const unsigned char aValue)
Creates an Unsigned Byte Item see [http://www.w3.org/TR/xmlschema-2/#unsignedByte].
Item createJSONArray(std::vector< Item > &aItems)
Create a JSON Array containing the specified items.
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 createGYear(short aYear)
Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear].
Item createDate(const std::string &aDate)
Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date].
Item createUnsignedInt(unsigned int aValue)
Creates an unsigned int Item see [http://www.w3.org/TR/xmlschema-2/#unsignedInt]. ...
ItemFactory to create Items.
Item createString(const std::string &aString)
Creates a String Item see [http://www.w3.org/TR/xmlschema-2/#string].
Item createLong(long long aLong)
Creates a Long Item see [http://www.w3.org/TR/xmlschema-2/#long].
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 createHexBinary(const char *aHexData, size_t aSize)
Creates a HexBinary Item see [http://www.w3.org/TR/xmlschema-2/#hexBinary].
Item createInteger(const std::string &aInteger)
Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer].
Item createNonNegativeInteger(unsigned long long aValue)
Creates a nonNegativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger].