6.2.3 Primitive Data Types
Within this standard the following primitive data types are used.
Data Type | Definition | Example |
---|---|---|
String | A sequence of characters with a length of at least one character. This standard does not define a maximum length. Strings may not contain non-printable characters (Unicode U+0000 to U+001F). | Johannes Brahms |
Boolean | A string containing either “true” or “false”. | true |
Integer | A sequence of digits to represent positive or negative integer numbers, or zero. | 142356 |
Decimal | A sequence of digits to represent positive or negative integer numbers, positive or negative decimal fractions or zero. The character used to separate the integers from fractions is the dot (“.”, Unicode U+002E). Thousands separators or any other digit grouping shall not be used. | 123 123.567 -5.25 0 |
ISO Date | A date in the ISO 8601 format to indicate a single year (YYYY), month (YYYY-MM) or day (YYYY-MM-DD). | 2015-01-09 |
Duration | A duration in the ISO 8601 format (P[nY][nM][nD][T[nH][nM]nS]). Elements including their designator may be omitted if their value is zero. The expressions “PT3M2S” (three minutes and two seconds) and “PT182S” (182 seconds) are both permitted and are equivalent. | PT3M2S |
DPID | A string of 18 characters in accordance with the DDEX Party ID standard. The DDEX Party ID standard defines that DDEX Party IDs do not contain dashes in computer-to-computer communications. Therefore, DDEX Party IDs, when included in a Feed, shall not contain dashes. | PADPIDA2014122301Q |
AVS | A string from a set of allowed values as defined in Clause 7. | Work |
Multiple String | A sequence of 0-n strings in accordance with a defined data type separated by Secondary Delimiters. If the Feed provider has only one data item to provide, the value shall be included without any Secondary Delimiters. The same applies to cases where the Feed provider has multiple data elements but only wishes to communicate one in accordance with the bilateral agreement between Feed provider and Feed recipient. If the cardinality of such an element is "M", at least one such data item must be provided. The same concept can also be used for all other primitive data types listed above. | "12" or "12|54|123" or "12||123" (without the quotes) |