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
Public Functions
Private AttributestheItemFactoryzorba::ItemFactory * theItemFactory
Public FunctionscreateAnyURIItem createAnyURI(const std::string &aURI) Creates an AnyURI Item see [http://www.w3.org/TR/xmlschema-2/#anyURI].
Parameters
ReturnsThe AnyURI Item.createAttributeNodeItem 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
ReturnsThe new node N created by this methodcreateAttributeNodeItem createAttributeNode(Item &aParent, Item &aNodeName, Item &aTypeName, std::vector< Item > aTypedValue)
createBase64BinaryItem createBase64Binary(const char *aData, size_t aLength, bool aIsBase64) Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary].
Parameters
ReturnsThe Base64Binary Item.createBase64BinaryItem createBase64Binary(std::istream &aStream) Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary].
Parameters
Returnsthe Base64Binary Item.createBooleanItem createBoolean(bool aValue) Creates a Boolean Item see [http://www.w3.org/TR/xmlschema-2/#bool].
Parameters
ReturnsThe Boolean Item.createByteItem createByte(char aByte) Creates a Byte Item see [http://www.w3.org/TR/xmlschema-2/#byte].
Parameters
ReturnsThe Byte Item.createCommentNodeItem 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
ReturnsThe new node N created by this methodcreateDateItem createDate(const std::string &aDate) Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date].
Parameters
ReturnsThe Date Item.createDateItem createDate(short aYear, short aMonth, short aDay) Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date].
Parameters
ReturnsThe Date Item.createDateTimeItem createDateTime(const std::string &aDateTimeValue) Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime].
Parameters
ReturnsThe DateTime Item.createDateTimeItem 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
ReturnsThe DateTime Item.createDateTimeStampItem 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
ReturnsThe DateTime Item.createDateTimeStampItem createDateTimeStamp(const std::string &aValue) Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime].
Parameters
ReturnsThe DateTime Item.createDayTimeDurationItem createDayTimeDuration(const std::string &aValue) Creates a dayTimeDuration Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes].
Parameters
Returnsthe dayTimeDuration Item.createDecimalItem createDecimal(const std::string &aValue) Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].
Parameters
ReturnsThe Decimal Item.createDecimalFromDoubleItem createDecimalFromDouble(double aValue) Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].
Parameters
ReturnsThe Decimal Item.createDecimalFromLongItem createDecimalFromLong(unsigned long aValue) Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].
Parameters
ReturnsThe Decimal Item.createDocumentNodeItem createDocumentNode(const std::string &aBaseUri, const std::string &aDocUri) Creates a documentNode Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes].
Parameters
Returnsthe documentNode Item.createDoubleItem createDouble(const std::string &aValue) Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double].
Parameters
ReturnsThe Double Item.createDoubleItem createDouble(double aValue) Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double].
Parameters
ReturnsThe Double Item.createDurationItem createDuration(const std::string &aValue) Creates a Duration Item see [http://www.w3.org/TR/xmlschema-2/#duration].
Parameters
ReturnsThe Duration Item.createDurationItem 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
ReturnsThe Duration Item.createElementNodeItem 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
ReturnsThe new node N created by this methodcreateElementNodeItem 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
ReturnsThe new node N created by this methodcreateFloatItem createFloat(const std::string &aValue) creates a float item see [http://www.w3.org/tr/xmlschema-2/#float]
Parameters
Returnsthe float item.createFloatItem createFloat(float aValue) creates a float item see [http://www.w3.org/tr/xmlschema-2/#float]
Parameters
Returnsthe float item.createGDayItem createGDay(const std::string &aValue) Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay].
Parameters
ReturnsThe gDay Item.createGDayItem createGDay(short aDay) Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay].
Parameters
ReturnsThe gDay Item.createGMonthItem createGMonth(const std::string &aValue) Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth].
Parameters
ReturnsThe gMonth Item.createGMonthItem createGMonth(short aMonth) Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth].
Parameters
ReturnsThe gMonth Item.createGMonthDayItem createGMonthDay(const std::string &aValue) Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay].
Parameters
ReturnsThe gMonthDay Item.createGMonthDayItem createGMonthDay(short aMonth, short aDay) Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay].
Parameters
ReturnsThe gMonthDay Item.createGYearItem createGYear(short aYear) Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear].
Parameters
ReturnsThe gYear Item.createGYearItem createGYear(const std::string &aValue) Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear].
Parameters
ReturnsThe gYear Item.createGYearMonthItem createGYearMonth(const std::string &aValue) Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth].
Parameters
ReturnsThe gYearMonth Item.createGYearMonthItem createGYearMonth(short aYear, short aMonth) Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth].
Parameters
ReturnsThe gYearMonth Item.createHexBinaryItem createHexBinary(const char *aHexData, size_t aSize) Creates a HexBinary Item see [http://www.w3.org/TR/xmlschema-2/#hexBinary].
Parameters
ReturnsThe HexBinary Item.createIntItem createInt(int aInt) Creates a Int Item see [http://www.w3.org/TR/xmlschema-2/#int].
Parameters
ReturnsThe NCName Item.createIntegerItem createInteger(const std::string &aInteger) Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer].
Parameters
ReturnsThe Integer Item.createIntegerItem createInteger(long long aInteger) Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer].
Parameters
ReturnsThe Integer Item.createJSONArrayItem createJSONArray(std::vector< Item > &aItems) Create a JSON Array containing the specified items.
Parameters
createJSONArrayItem createJSONArray(std::vector< std::string > &aItems) Create a JSON Array containing the specified items.
Parameters
createJSONObjectItem createJSONObject(std::vector< std::pair< Item, Item > > &aNames) Create a JSON Object containing the specified JSON Pairs.
Parameters
createJSONObjectItem createJSONObject(std::vector< std::pair< std::string, std::string > > &aNames) Create a JSON Object containing the specified string Pairs.
Parameters
createLongItem createLong(long long aLong) Creates a Long Item see [http://www.w3.org/TR/xmlschema-2/#long].
Parameters
ReturnsThe Long Item.createNCNameItem createNCName(const std::string &aValue) Creates a NCName Item see [http://www.w3.org/TR/xmlschema-2/#NCName].
Parameters
ReturnsThe NCName Item.createNegativeIntegerItem createNegativeInteger(long long aValue) Creates a negativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#negativeInteger].
Parameters
ReturnsThe negativeInteger Item.createNonNegativeIntegerItem createNonNegativeInteger(unsigned long long aValue) Creates a nonNegativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger].
Parameters
ReturnsThe nonNegativeInteger Item.createNonPositiveIntegerItem createNonPositiveInteger(long long aValue) Creates a nonPositiveInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonPositiveInteger].
Parameters
ReturnsThe nonPositiveInteger Item.createPiNodeItem 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
ReturnsThe new node N created by this methodcreatePositiveIntegerItem createPositiveInteger(unsigned long long aValue) Creates a positiveInteger\ Item see [http://www.w3.org/TR/xmlschema-2/#positiveInteger].
Parameters
ReturnsThe positiveInteger Item.createQNameItem 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
ReturnsThe QName Item.createQNameItem createQName(const std::string &aNamespace, const std::string &aLocalname) Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName].
Parameters
ReturnsThe QName Item.createQNameItem 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
ReturnsThe QName Item.createShortItem createShort(short aShort) Creates a Short Item see [http://www.w3.org/TR/xmlschema-2/#short].
Parameters
ReturnsThe Short Item.createStringItem createString(const std::string &aString) Creates a String Item see [http://www.w3.org/TR/xmlschema-2/#string].
Parameters
ReturnsThe String ItemcreateTextNodeItem 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
ReturnsThe new node N created by this methodcreateTimeItem createTime(short aHour, short aMinute, double aSecond, short aTimeZone_hours) Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].
Parameters
ReturnsThe Time Item.createTimeItem createTime(short aHour, short aMinute, double aSecond) Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].
Parameters
ReturnsThe Time Item.createTimeItem createTime(const std::string &aValue) Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].
Parameters
ReturnsThe Time ItemcreateUnsignedByteItem createUnsignedByte(const unsigned char aValue) Creates an Unsigned Byte Item see [http://www.w3.org/TR/xmlschema-2/#unsignedByte].
Parameters
ReturnsThe Unsigned Byte Item.createUnsignedIntItem createUnsignedInt(unsigned int aValue) Creates an unsigned int Item see [http://www.w3.org/TR/xmlschema-2/#unsignedInt].
Parameters
ReturnsThe unsignedInt Item.createUnsignedLongItem createUnsignedLong(unsigned long long aValue) Creates an unsignedLong Item see [http://www.w3.org/TR/xmlschema-2/#unsignedLong].
Parameters
ReturnsThe unsignedLong Item.createUnsignedShortItem createUnsignedShort(unsigned short aValue) Creates a unsignedShort Item see [http://www.w3.org/TR/xmlschema-2/#unsignedShort].
Parameters
ReturnsThe unsignedShort Item.createYearMonthDurationItem createYearMonthDuration(const std::string &aValue) Creates a yearMonthDuration Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes].
Parameters
Returnsthe yearMonthDuration Item.ItemFactory ItemFactory(zorba::ItemFactory *aItemFactory)
ItemFactory ItemFactory(const ItemFactory &aItemFactory)
|