Designer 10.7 | webMethods Service Development Help | Validation Content Constraints | Content Types
 
Content Types
The following table identifies the content types you can apply to String, String list, or String table variables. Each of these content types corresponds to a built-in simple type defined in the specification XML Schema Part 2: Datatypes.
Note:
For details about constraints for Objects and Object lists, see Data Types.
Content Types
Description
anyURI
A Uniform Resource Identifier Reference. The value of anyURI may be absolute or relative.
Constraining Facets
enumeration, length, maxLength, minLength, pattern
Note:
The anyURI type indicates that the variable value plays the role of a URI and is defined like a URI. webMethods Integration Server does not validate URI references because it is impractical for applications to check the validity of a URI reference.
base64Binary
Base64-encoded binary data.
Constraining Facets
enumeration, length, maxLength, minLength, pattern
boolean
True or false.
Constraining Facets
pattern
Example
true, 1, false, 0
byte
A whole number whose value is greater than or equal to –128 but less than or equal to 127.
Constraining Facets
enumeration, fractionDigits, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern, totalDigits
Example
-128, -26, 0, 15, 125
date
A calendar date from the Gregorian calendar. Values need to match the following pattern:
CCYY-MM-DD
Where CC represents the century, YY the year, MM the month, DD the day. The pattern can include a Z at the end to indicate Coordinated Universal Time or to indicate the difference between the time zone and coordinated universal time.
Constraining Facets
enumeration, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern
Example
1997-08-09 (August 9, 1997)
dateTime
A specific instant of time (a date and time of day). Values need to match the following pattern:
CCYY-MM-DDThh:mm:ss.sss
Where CC represents the century, YY the year, MM the month, DD the day, T the date/time separator, hh the hour, mm the minutes, and ss the seconds. The pattern can include a Z at the end to indicate Coordinated Universal Time or to indicate the difference between the time zone and coordinated universal time.
Constraining Facets
enumeration, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern
Example
2000-06-29T17:30:00-05:00 represents 5:30 pm Eastern Standard time on June 29, 2000. (Eastern Standard Time is 5 hours behind Coordinated Universal Time.)
decimal
A number with an optional decimal point.
Constraining Facets
enumeration, fractionDigits, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern, totalDigits
Example
8.01, 290, -47.24
double
Double-precision 64-bit floating point type.
Constraining Facets
enumeration, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern
Example
6.02E23, 3.14, -26, 1.25e-2
duration
A length of time. Values need to match the following pattern:
PnYnMnDTnHnMnS
Where nY represents the number of years, nM the number of months, nD the number of days, T separates the date and time, nH the number of hours, nM the number of minutes and nS the number of seconds. Precede the duration with a minus (-) sign to indicate a negative duration.
Constraining Facets
enumeration, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern
Example
P2Y10M20DT5H50M represents a duration of 2 years, 10 months, 20 days, 5 hours, and 50 minutes
ENTITIES
Sequence of whitespace-separated ENTITY values declared in the DTD. Represents the ENTITIES attribute type from the XML 1.0 Recommendation.
Constraining Facets
enumeration, length, maxLength, minLength
ENTITY
Name associated with an unparsed entity of the DTD. Represents the ENTITY attribute type from the XML 1.0 Recommendation.
Constraining Facets
enumeration, length, maxLength, minLength, pattern, whiteSpace
float
A number with a fractional part.
Constraining Facets
enumeration, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern
Example
8.01, 25, 6.02E23, -5.5
gDay
A specific day that recurs every month. Values must match the following pattern:
---DD
Where DD represents the day. The pattern can include a Z at the end to indicate Coordinated Universal Time or to indicate the difference between the time zone and coordinated universal time.
Constraining Facets
enumeration, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern
Example
---24 indicates the 24th of each month
gMonth
A Gregorian month that occurs every year. Values must match the following pattern:
--MM
Where MM represents the month. The pattern can include a Z at the end to indicate Coordinated Universal Time or to indicate the difference between the time zone and coordinated universal time.
Constraining Facets
enumeration, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern
Example
--11 represents November
gMonthDay
A specific day and month that recurs every year in the Gregorian calendar. Values must match the following pattern:
--MM-DD
Where MM represents the month and DD represents the day. The pattern can include a Z at the end to indicate Coordinated Universal Time or to indicate the difference between the time zone and coordinated universal time.
Constraining Facets
enumeration, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern
Example
--09-24 represents September 24th
gYear
A specific year in the Gregorian calendar. Values must match the following pattern:
CCYY
Where CC represents the century, and YY the year. The pattern can include a Z at the end to indicate Coordinated Universal Time or to indicate the difference between the time zone and coordinated universal time.
Constraining Facets
enumeration, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern
Example
2001 indicates 2001
gYearMonth
A specific month and year in the Gregorian calendar. Values must match the following pattern:
CCYY-MM
Where CC represents the century, YY the year, and MM the month. The pattern can include a Z at the end to indicate Coordinated Universal Time or to indicate the difference between the time zone and coordinated universal time.
Constraining Facets
enumeration, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern
Example
2001-04 indicates April 2001
hexBinary
Hex-encoded binary data.
Constraining Facets
enumeration, length, maxLength, minLength, pattern
ID
A name that uniquely identifies an individual element in an instance document. The value for ID needs to be a valid XML name. The ID datatype represents the ID attribute type from the XML 1.0 Recommendation.
Constraining Facets
enumeration, length, maxLength, minLength, pattern, whiteSpace
IDREF
A reference to an element with a unique ID. The value of IDREF is the same as the ID value. The IDREF datatype represents the IDREF attribute type from the XML 1.0 Recommendation.
Constraining Facets
enumeration, length, maxLength, minLength, pattern, whiteSpace
IDREFS
Sequence of white space separated IDREFs used in an XML document. The IDREFS datatype represents the IDREFS attribute type from the XML 1.0 Recommendation.
Constraining Facets
enumeration, length, maxLength, minLength
int
A whole number with a value greater than or equal to -2147483647 but less than or equal to 2147483647.
Constraining Facets
enumeration, fractionDigits, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern, totalDigits
Example
-21474836, -55500, 0, 33123, 4271974
integer
A positive or negative whole number.
Constraining Facets
enumeration, fractionDigits, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern, totalDigits
Example
-2500, -5, 0, 15, 365
language
Language identifiers used to indicate the language in which the content is written. Natural language identifiers are defined in IETF RFC 1766.
Constraining Facets
enumeration, length, maxLength, minLength, pattern, whiteSpace
long
A whole number with a value greater than or equal to -9223372036854775808 but less than or equal to 9223372036854775807.
Constraining Facets
enumeration, fractionDigits, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern, totalDigits
Example
-55600, -23, 0, 256, 3211569432
Name
XML names that match the Name production of XML 1.0 (Second Edition).
Constraining Facets
enumeration, length, maxLength, minLength, pattern, whiteSpace
NCName
Non-colonized XML names. Set of all strings that match the NCName production of Namespaces in XML.
Constraining Facets
enumeration, length, maxLength, minLength, pattern, whiteSpace
negativeInteger
An integer with a value less than or equal to –1.
Constraining Facets
enumeration, fractionDigits, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern, totalDigits
Example
-255556, -354, -3, -1
NMTOKEN
Any mixture of name characters. Represents the NMTOKEN attribute type from the XML 1.0 Recommendation.
Constraining Facets
enumeration, length, maxLength, minLength, pattern, whiteSpace
NMTOKENS
Sequences of NMTOKENS. Represents the NMTOKENS attribute type from the XML 1.0 Recommendation.
Constraining Facets
enumeration, length, maxLength, minLength
nonNegativeInteger
An integer with a value greater than or equal to 0.
Constraining Facets
enumeration, fractionDigits, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern, totalDigits
Example
0, 15, 32123
nonPositiveInteger
An integer with a value less than or equal to 0.
Constraining Facets
enumeration, fractionDigits, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern, totalDigits, whiteSpace
Example
-256453, -357, -1, 0
normalizedString
Represents white space normalized strings. Set of strings (sequence of UCS characters) that do not contain the carriage return (#xD), line feed (#xA), or tab (#x9) characters.
Constraining Facets
enumeration, length, maxLength, minLength, pattern, whiteSpace
Example
MAB-0907
positiveInteger
An integer with a value greater than or equal to 1.
Constraining Facets
enumeration, fractionDigits, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern, totalDigits
Example
1, 1500, 23000
short
A whole number with a value greater than or equal to -32768 but less than or equal to 32767.
Constraining Facets
enumeration, fractionDigits, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern, totalDigits
Example
-32000, -543, 0, 456, 3265
string
Character strings in XML. A sequence of UCS characters (ISO 10646 and Unicode). By default, all white space is preserved for variables with a string content constraint.
Constraining Facets
enumeration, length, maxLength, minLength, pattern, whiteSpace
Example
MAB-0907
time
An instant of time that occurs every day. Values must match the following pattern:
hh:mm:ss.sss
Where hh indicates the hour, mm the minutes, and ss the seconds. The pattern can include a Z at the end to indicate Coordinated Universal Time or to indicate the difference between the time zone and coordinated universal time.
Constraining Facets
enumeration, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern
Example
18:10:00-05:00 (6:10 pm, Eastern Standard Time) Eastern Standard Time is 5 hours behind Coordinated Universal Time.
token
Represents tokenized strings. Set of strings that do not contain the carriage return (#xD), line feed (#xA), or tab (#x9) characters, leading or trailing spaces (#x20), or sequences of two or more spaces.
Constraining Facets
enumeration, length, maxLength, minLength, pattern, whiteSpace
unsignedByte
A whole number greater than or equal to 0, but less than or equal to 255.
Constraining Facets
enumeration, fractionDigits, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern, totalDigits
Example
0, 112, 200
unsignedInt
A whole number greater than or equal to 0, but less than or equal to 4294967295.
Constraining Facets
enumeration, fractionDigits, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern, totalDigits
Example
0, 22335, 123223333
unsignedLong
A whole number greater than or equal to 0, but less than or equal to 18446744073709551615.
Constraining Facets
enumeration, fractionDigits, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern, totalDigits
Example
0, 2001, 3363124
unsignedShort
A whole number greater then or equal to 0, but less than or equal to 65535.
Constraining Facets
enumeration, fractionDigits, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern, totalDigits
Example
0, 1000, 65000
Related Topics
Validation Content Constraints
Constraining Facets
Performing Data Validation