ItemFactory to create Items. More...
Public Member Functions | |
Item | createAnyURI (const std::string &aURI) |
Creates an AnyURI Item see [http://www.w3.org/TR/xmlschema-2/#anyURI]. More... | |
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. More... | |
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]. More... | |
Item | createBase64Binary (std::istream &aStream) |
Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary]. More... | |
Item | createBase64Binary (const unsigned char *aBinData, size_t aLength) |
Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary]. More... | |
Item | createBoolean (bool aValue) |
Creates a Boolean Item see [http://www.w3.org/TR/xmlschema-2/#bool]. More... | |
Item | createByte (char aByte) |
Creates a Byte Item see [http://www.w3.org/TR/xmlschema-2/#byte]. More... | |
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. More... | |
Item | createDate (const std::string &aDate) |
Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date]. More... | |
Item | createDate (short aYear, short aMonth, short aDay) |
Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date]. More... | |
Item | createDateTime (const std::string &aDateTimeValue) |
Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime]. More... | |
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]. More... | |
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]. More... | |
Item | createDateTimeStamp (const std::string &aValue) |
Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime]. More... | |
Item | createDayTimeDuration (const std::string &aValue) |
Creates a dayTimeDuration Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes]. More... | |
Item | createDecimal (const std::string &aValue) |
Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal]. More... | |
Item | createDecimalFromDouble (double aValue) |
Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal]. More... | |
Item | createDecimalFromLong (unsigned long aValue) |
Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal]. More... | |
Item | createDocumentNode (const std::string &aBaseUri, const std::string &aDocUri) |
Creates a documentNode Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes]. More... | |
Item | createDouble (const std::string &aValue) |
Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double]. More... | |
Item | createDouble (double aValue) |
Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double]. More... | |
Item | createDuration (const std::string &aValue) |
Creates a Duration Item see [http://www.w3.org/TR/xmlschema-2/#duration]. More... | |
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]. More... | |
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. More... | |
Item | createElementNode (Item &aParent, Item &aNodeName, Item &aTypeName, bool aHasTypedValue, bool aHasEmptyValue) |
Creates a new element node. More... | |
Item | createFloat (const std::string &aValue) |
creates a float item see [http://www.w3.org/tr/xmlschema-2/#float] More... | |
Item | createFloat (float aValue) |
creates a float item see [http://www.w3.org/tr/xmlschema-2/#float] More... | |
Item | createGDay (const std::string &aValue) |
Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay]. More... | |
Item | createGDay (short aDay) |
Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay]. More... | |
Item | createGMonth (const std::string &aValue) |
Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth]. More... | |
Item | createGMonth (short aMonth) |
Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth]. More... | |
Item | createGMonthDay (const std::string &aValue) |
Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay]. More... | |
Item | createGMonthDay (short aMonth, short aDay) |
Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay]. More... | |
Item | createGYear (short aYear) |
Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear]. More... | |
Item | createGYear (const std::string &aValue) |
Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear]. More... | |
Item | createGYearMonth (const std::string &aValue) |
Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth]. More... | |
Item | createGYearMonth (short aYear, short aMonth) |
Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth]. More... | |
Item | createHexBinary (const char *aHexData, size_t aSize) |
Creates a HexBinary Item see [http://www.w3.org/TR/xmlschema-2/#hexBinary]. More... | |
Item | createInt (int aInt) |
Creates a Int Item see [http://www.w3.org/TR/xmlschema-2/#int]. More... | |
Item | createInteger (const std::string &aInteger) |
Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer]. More... | |
Item | createInteger (long long aInteger) |
Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer]. More... | |
Item | createJSONArray (std::vector< Item > &aItems) |
Create a JSON Array containing the specified items. More... | |
Item | createJSONArray (std::vector< std::string > &aItems) |
Create a JSON Array containing the specified items. More... | |
Item | createJSONNull () |
Create a JSON null item. More... | |
Item | createJSONNumber (std::string aString) |
Create a JSON Number item from a string. More... | |
Item | createJSONObject (std::vector< std::pair< Item, Item > > &aNames) |
Create a JSON Object containing the specified JSON Pairs. More... | |
Item | createJSONObject (std::vector< std::pair< std::string, std::string > > &aNames) |
Create a JSON Object containing the specified string Pairs. More... | |
Item | createLong (long long aLong) |
Creates a Long Item see [http://www.w3.org/TR/xmlschema-2/#long]. More... | |
Item | createNCName (const std::string &aValue) |
Creates a NCName Item see [http://www.w3.org/TR/xmlschema-2/#NCName]. More... | |
Item | createNegativeInteger (long long aValue) |
Creates a negativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#negativeInteger]. More... | |
Item | createNonNegativeInteger (unsigned long long aValue) |
Creates a nonNegativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger]. More... | |
Item | createNonPositiveInteger (long long aValue) |
Creates a nonPositiveInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonPositiveInteger]. More... | |
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. More... | |
Item | createPositiveInteger (unsigned long long aValue) |
Creates a positiveInteger\ Item see [http://www.w3.org/TR/xmlschema-2/#positiveInteger]. More... | |
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]. More... | |
Item | createQName (const std::string &aNamespace, const std::string &aLocalname) |
Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName]. More... | |
Item | createQName (const std::string &aQNameString) |
Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName]. More... | |
Item | createShort (short aShort) |
Creates a Short Item see [http://www.w3.org/TR/xmlschema-2/#short]. More... | |
Item | createString (const std::string &aString) |
Creates a String Item see [http://www.w3.org/TR/xmlschema-2/#string]. More... | |
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. More... | |
Item | createTime (short aHour, short aMinute, double aSecond, short aTimeZone_hours) |
Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time]. More... | |
Item | createTime (short aHour, short aMinute, double aSecond) |
Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time]. More... | |
Item | createTime (const std::string &aValue) |
Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time]. More... | |
Item | createUnsignedByte (const unsigned char aValue) |
Creates an Unsigned Byte Item see [http://www.w3.org/TR/xmlschema-2/#unsignedByte]. More... | |
Item | createUnsignedInt (unsigned int aValue) |
Creates an unsigned int Item see [http://www.w3.org/TR/xmlschema-2/#unsignedInt]. More... | |
Item | createUnsignedLong (unsigned long long aValue) |
Creates an unsignedLong Item see [http://www.w3.org/TR/xmlschema-2/#unsignedLong]. More... | |
Item | createUnsignedShort (unsigned short aValue) |
Creates a unsignedShort Item see [http://www.w3.org/TR/xmlschema-2/#unsignedShort]. More... | |
Item | createYearMonthDuration (const std::string &aValue) |
Creates a yearMonthDuration Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes]. More... | |
ItemFactory (zorba::ItemFactory *aItemFactory) | |
ItemFactory (const ItemFactory &aItemFactory) | |
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.
ItemFactory::ItemFactory | ( | zorba::ItemFactory * | aItemFactory | ) |
Definition at line 34 of file ItemFactory.h.
ItemFactory::ItemFactory | ( | const ItemFactory & | aItemFactory | ) |
Definition at line 35 of file ItemFactory.h.
Item ItemFactory::createAnyURI | ( | const std::string & | aURI | ) |
Creates an AnyURI Item see [http://www.w3.org/TR/xmlschema-2/#anyURI].
aURI | String representation of the AnyURI. |
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.
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. |
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].
aBinData | a pointer to the base64 binary data. |
aLength | the length of the base64 binary data. |
Item ItemFactory::createBase64Binary | ( | std::istream & | aStream | ) |
Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary].
aStream | A stream containing the Base64 encoded data. |
Item ItemFactory::createBase64Binary | ( | const unsigned char * | aBinData, |
size_t | aLength | ||
) |
Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary].
aBinData | the data in binary form. The data is copied from aBinData. |
aLength | the length of the data |
Item ItemFactory::createBoolean | ( | bool | aValue | ) |
Creates a Boolean Item see [http://www.w3.org/TR/xmlschema-2/#bool].
aValue | bool representation of the Boolean. |
Item ItemFactory::createByte | ( | char | aByte | ) |
Creates a Byte Item see [http://www.w3.org/TR/xmlschema-2/#byte].
aByte | char representation of the Byte. |
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.
aParent | The parent P of the new node; may be NULL. |
aContent | The content of the new node. |
Item ItemFactory::createDate | ( | const std::string & | aDate | ) |
Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date].
aDate | String representation of the Date (e.g. 2002-10-10). |
Item ItemFactory::createDate | ( | short | aYear, |
short | aMonth, | ||
short | aDay | ||
) |
Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date].
aYear | short-valued representation of the year. |
aMonth | short-valued representation of the month. |
aDay | short-valued representation of the day. |
Item ItemFactory::createDateTime | ( | const std::string & | aDateTimeValue | ) |
Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime].
aDateTimeValue | String representation of the datetime value (for example, 2002-10-10T12:00:00-05:00). |
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].
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. |
Item ItemFactory::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].
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. |
Item ItemFactory::createDateTimeStamp | ( | const std::string & | aValue | ) |
Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime].
aDateTimeValue | String representation of the datetime value (for example, 2002-10-10T12:00:00-05:00). |
Item ItemFactory::createDayTimeDuration | ( | const std::string & | aValue | ) |
Creates a dayTimeDuration Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes].
aValue | String lexical representation of the duration. |
Item ItemFactory::createDecimal | ( | const std::string & | aValue | ) |
Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].
aValue | String representation of the Decimal (e.g. 12678967.543233). |
Item ItemFactory::createDecimalFromDouble | ( | double | aValue | ) |
Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].
aValue | double representation of the Decimal. |
Item ItemFactory::createDecimalFromLong | ( | unsigned long | aValue | ) |
Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].
aValue | unsigned long representation of the Decimal. |
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].
aBaseUri | String representation of the Base URI. |
aDocUri | String representation of the Document URI. |
Item ItemFactory::createDouble | ( | const std::string & | aValue | ) |
Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double].
aValue | String representation of the Double. |
Item ItemFactory::createDouble | ( | double | aValue | ) |
Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double].
aValue | double representation of the Double. |
Item ItemFactory::createDuration | ( | const std::string & | aValue | ) |
Creates a Duration Item see [http://www.w3.org/TR/xmlschema-2/#duration].
aValue | String representation of the NCName. |
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].
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. |
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.
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. |
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.
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. |
Item ItemFactory::createFloat | ( | const std::string & | aValue | ) |
creates a float item see [http://www.w3.org/tr/xmlschema-2/#float]
aValue | string representation of the float. |
Item ItemFactory::createFloat | ( | float | aValue | ) |
creates a float item see [http://www.w3.org/tr/xmlschema-2/#float]
aValue | float representation of the float. |
Item ItemFactory::createGDay | ( | const std::string & | aValue | ) |
Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay].
aValue | String representation of the gDay. |
Item ItemFactory::createGDay | ( | short | aDay | ) |
Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay].
aDay | short representation of the gDay. |
Item ItemFactory::createGMonth | ( | const std::string & | aValue | ) |
Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth].
aValue | String representation of the gMonth. |
Item ItemFactory::createGMonth | ( | short | aMonth | ) |
Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth].
aMonth | short representation of the gMonth. |
Item ItemFactory::createGMonthDay | ( | const std::string & | aValue | ) |
Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay].
aValue | String representation of the gMonthDay. |
Item ItemFactory::createGMonthDay | ( | short | aMonth, |
short | aDay | ||
) |
Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay].
aMonth | short representation of the month. |
aDay | short representation of the day. |
Item ItemFactory::createGYear | ( | short | aYear | ) |
Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear].
aYear | short representation of the gYear. |
Item ItemFactory::createGYear | ( | const std::string & | aValue | ) |
Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear].
aValue | String representation of the gYear. |
Item ItemFactory::createGYearMonth | ( | const std::string & | aValue | ) |
Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth].
aValue | String representation of the gYearMonth. |
Item ItemFactory::createGYearMonth | ( | short | aYear, |
short | aMonth | ||
) |
Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth].
aYear | short representation of the year. |
aMonth | short representation of the month. |
Item ItemFactory::createHexBinary | ( | const char * | aHexData, |
size_t | aSize | ||
) |
Creates a HexBinary Item see [http://www.w3.org/TR/xmlschema-2/#hexBinary].
aHexData | pointer to the hexdata. |
aSize | size of the hexdata. |
Item ItemFactory::createInt | ( | int | aInt | ) |
Creates a Int Item see [http://www.w3.org/TR/xmlschema-2/#int].
aInt | int representation of the Int. |
Item ItemFactory::createInteger | ( | const std::string & | aInteger | ) |
Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer].
aInteger | String representation of the Integer. |
Item ItemFactory::createInteger | ( | long long | aInteger | ) |
Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer].
aInteger | unsigned long representation of the Integer. |
Create a JSON Array containing the specified items.
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). |
Item ItemFactory::createJSONArray | ( | std::vector< std::string > & | aItems | ) |
Create a JSON Array containing the specified items.
aItems | a Vector<String> containing strings which may be stored in a JSON Array. |
Item ItemFactory::createJSONNull | ( | ) |
Create a JSON null item.
Item ItemFactory::createJSONNumber | ( | std::string | aString | ) |
Create a JSON Number item from a string.
This will actually be an xs:integer, xs:double, or xs:decimal, depending on the content of the string.
aString | The input string. |
Create a JSON Object containing the specified JSON Pairs.
aNames | A vector containing the name and value of each pair. |
Item ItemFactory::createJSONObject | ( | std::vector< std::pair< std::string, std::string > > & | aNames | ) |
Create a JSON Object containing the specified string Pairs.
aNames | A vector containing the name and value of each pair. |
Item ItemFactory::createLong | ( | long long | aLong | ) |
Creates a Long Item see [http://www.w3.org/TR/xmlschema-2/#long].
aLong | long long representation of the Long. |
Item ItemFactory::createNCName | ( | const std::string & | aValue | ) |
Creates a NCName Item see [http://www.w3.org/TR/xmlschema-2/#NCName].
aValue | String representation of the NCName. |
Item ItemFactory::createNegativeInteger | ( | long long | aValue | ) |
Creates a negativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#negativeInteger].
aValue | long long representation of the negativeInteger. |
Item ItemFactory::createNonNegativeInteger | ( | unsigned long long | aValue | ) |
Creates a nonNegativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger].
aValue | unsigned long representation of the nonNegativeInteger. |
Item ItemFactory::createNonPositiveInteger | ( | long long | aValue | ) |
Creates a nonPositiveInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonPositiveInteger].
aValue | long long representation of the NCName. |
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.
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. |
Item ItemFactory::createPositiveInteger | ( | unsigned long long | aValue | ) |
Creates a positiveInteger\ Item see [http://www.w3.org/TR/xmlschema-2/#positiveInteger].
aValue | unsigned long representation of the positiveInteger. |
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].
aNamespace | String representation of the namespace. |
aPrefix | String representation of the prefix. |
aLocalname | String representation of the localname. |
Item ItemFactory::createQName | ( | const std::string & | aNamespace, |
const std::string & | aLocalname | ||
) |
Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName].
aNamespace | String representation of the namespace. |
aLocalname | String representation of the localname. * |
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).
aQNameString | String in the QName notation by James Clark. |
Item ItemFactory::createShort | ( | short | aShort | ) |
Creates a Short Item see [http://www.w3.org/TR/xmlschema-2/#short].
aShort | short representation of the Short. |
Item ItemFactory::createString | ( | const std::string & | aString | ) |
Creates a String Item see [http://www.w3.org/TR/xmlschema-2/#string].
aString | String representation of the String Item. |
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.
aParent | The parent P of the new node; may be NULL. |
aContent | The content of the new node. |
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].
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. |
Item ItemFactory::createTime | ( | short | aHour, |
short | aMinute, | ||
double | aSecond | ||
) |
Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].
aHour | short representation of the hour. |
aMinute | short representation of the minute. |
aSecond | double representation of the seconds and fractional seconds. |
Item ItemFactory::createTime | ( | const std::string & | aValue | ) |
Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].
aValue | String representation of the Time. |
Item ItemFactory::createUnsignedByte | ( | const unsigned char | aValue | ) |
Creates an Unsigned Byte Item see [http://www.w3.org/TR/xmlschema-2/#unsignedByte].
aValue | unsignedByte unsigned char representation of the unsigned byte. |
Item ItemFactory::createUnsignedInt | ( | unsigned int | aValue | ) |
Creates an unsigned int Item see [http://www.w3.org/TR/xmlschema-2/#unsignedInt].
aValue | unsigned int representation of the unsignedInt. |
Item ItemFactory::createUnsignedLong | ( | unsigned long long | aValue | ) |
Creates an unsignedLong Item see [http://www.w3.org/TR/xmlschema-2/#unsignedLong].
aValue | unsignedLong long long representation of the unsignedLong. |
Item ItemFactory::createUnsignedShort | ( | unsigned short | aValue | ) |
Creates a unsignedShort Item see [http://www.w3.org/TR/xmlschema-2/#unsignedShort].
aValue | unsigned short representation of the unsignedShort. |
Item ItemFactory::createYearMonthDuration | ( | const std::string & | aValue | ) |
Creates a yearMonthDuration Item see [http://www.w3.org/TR/xpath-functions/#duration-subtypes].
aValue | String lexical representation of the duration. |