Core Types (dw::Core)
DataWeave 2.2 is compatible and bundled with Mule 4.2. Standard Support for Mule 4.2 ended on May 2, 2021, and this version of Mule will reach its End of Life on May 2, 2023, when Extended Support ends. Deployments of new applications to CloudHub that use this version of Mule are no longer allowed. Only in-place updates to applications are permitted. MuleSoft recommends that you upgrade to the latest version of Mule 4 that is in Standard Support so that your applications run with the latest fixes and security enhancements. |
Type | Definition | Description |
---|---|---|
Any |
|
The top-level type. |
Array |
|
Array type that requires a Example: |
Binary |
|
A blob. |
Boolean |
|
A |
CData |
|
XML defines a It can be used to tell the writer to wrap the content inside CDATA or to
check if the string arrives inside a CDATA block. Source:
Output:
|
Comparable |
|
A union type that represents all the types that can be compared to each other. |
Date |
|
A date represented by a year, month, and day. For example: |
DateTime |
|
A |
Dictionary |
|
Generic dictionary interface. |
Enum |
|
This type is based on the Enum Java class. It must always be used with the Source:
|
Iterator |
|
This type is based on the iterator Java class. The iterator contains a collection and includes methods to iterate through and filter it. Just like the Java class, |
Key |
|
A key of an Examples: |
LocalDateTime |
|
A |
LocalTime |
|
A |
NaN |
|
|
Namespace |
|
A |
Nothing |
|
Bottom type. This type can be assigned to all the types. |
Null |
|
A Null type. |
Number |
|
A number type: Any number, decimal, or integer is represented by the Number` type. |
Object |
|
Type that represents any object, which is a collection of Examples: |
Pair |
|
A type used to represent a pair of values. Introduced in DataWeave 2.2.0. Supported by Mule 4.2 and later. |
Period |
|
A period. |
Range |
|
A |
Regex |
|
A Java regular expression (regex) type. |
SimpleType |
|
A union type that represents all the simple types. |
String |
|
|
Time |
|
A time in a specific |
TimeZone |
|
A time zone. |
Type |
|
A type in the DataWeave type system. |
Uri |
|
A URI. |