| Modifier and Type | Method and Description |
|---|---|
Optional<DataType> |
ExpressionFunction.returnType()
Indicates the return type, if any.
|
| Modifier and Type | Method and Description |
|---|---|
TypedValue<?> |
ExpressionLanguage.evaluate(String expression,
DataType expectedOutputType,
BindingContext context)
Evaluates an expression according to a given
BindingContext, the global one and the DataType of the expected
result. |
| Modifier and Type | Method and Description |
|---|---|
InputEvent |
InputEvent.addParameter(String key,
Object value,
DataType dataType)
Add a parameter.
|
InputEvent |
InputEvent.addVariable(String key,
Object value,
DataType dataType)
Add a variable.
|
| Modifier and Type | Method and Description |
|---|---|
InterceptionEvent |
InterceptionEvent.addVariable(String key,
Object value,
DataType mediaType)
Add a variable.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
CollectionDataType
A data type that represents a generified collection.
|
interface |
FunctionDataType
A data type that represents a function, with it's optional return type and parameter types.
|
interface |
MapDataType
A data type that represents a generified map.
|
| Modifier and Type | Field and Description |
|---|---|
static DataType |
DataType.ATOM_STRING |
static DataType |
DataType.BOOLEAN |
static DataType |
DataType.BYTE_ARRAY |
static DataType |
DataType.CURSOR_ITERATOR_PROVIDER |
static DataType |
DataType.CURSOR_STREAM_PROVIDER |
static DataType |
DataType.HTML_STRING |
static DataType |
DataType.INPUT_STREAM |
static DataType |
DataType.ITERATOR |
static DataType |
DataType.JSON_STRING |
static DataType |
DataType.MULE_MESSAGE |
static DataType |
DataType.NUMBER |
static DataType |
DataType.OBJECT |
static DataType |
DataType.RSS_STRING |
static DataType |
DataType.STRING |
static DataType |
DataType.TEXT_STRING |
static DataType |
DataType.XML_STRING |
| Modifier and Type | Method and Description |
|---|---|
DataType |
DataTypeParamsBuilder.build()
Builds a new
DataType with the values set in this builder. |
static DataType |
DataType.fromFunction(ExpressionFunction function)
Shortcut to create the
DataType from an ExpressionFunction instance. |
static DataType |
DataType.fromObject(Object value)
Shortcut to create the
DataType from an Object instance. |
static DataType |
DataType.fromType(Class<?> type)
Shortcut to create a
DataType using just a Java type. |
DataType |
TypedValue.getDataType()
Returns the data type (if any) associated with this
TypedValue's content. |
DataType |
CollectionDataType.getItemDataType()
Obtains the
DataType of the items in the collection. |
DataType |
MapDataType.getKeyDataType()
Obtains the
DataType of the keys in the map. |
DataType |
FunctionParameter.getType() |
DataType |
MapDataType.getValueDataType()
Obtains the
DataType of the values in the map. |
| Modifier and Type | Method and Description |
|---|---|
Optional<DataType> |
FunctionDataType.getReturnType() |
| Modifier and Type | Method and Description |
|---|---|
static DataTypeBuilder |
DataType.builder(DataType dataType)
|
protected abstract DataTypeBuilder |
AbstractDataTypeBuilderFactory.create(DataType dataType) |
boolean |
DataType.isCompatibleWith(DataType dataType)
Used to determine if this data type is compatible with the data type passed in.
|
DataTypeBuilder.DataTypeFunctionTypeBuilder |
DataTypeBuilder.DataTypeFunctionTypeBuilder.returnType(DataType returnType)
Sets the return type of the function,
null indicates there's none and is the default value. |
| Constructor and Description |
|---|
FunctionParameter(String name,
DataType type) |
FunctionParameter(String name,
DataType type,
FunctionParameter.DefaultValueResolver defaultValueResolver) |
TypedValue(T value,
DataType dataType)
Constructs a new
TypedValue with the given parameters. |
TypedValue(T value,
DataType dataType,
Optional<Long> length)
Constructs a new
TypedValue with the given parameters. |
| Modifier and Type | Method and Description |
|---|---|
Message |
TransformationService.transform(Message message,
DataType outputDataType)
Attempts to obtain the payload of this message with the desired Class type.
|
Object |
TransformationService.transform(Object value,
DataType valueDataType,
DataType expectedDataType)
Given a value) it will try to transform it to the expected type defined in the {@code expectedDataType}
|
| Modifier and Type | Method and Description |
|---|---|
InputEvent |
DefaultInputEvent.addParameter(String key,
Object value,
DataType dataType) |
InputEvent |
DefaultInputEvent.addVariable(String key,
Object value,
DataType dataType) |
Copyright © 2017 MuleSoft, Inc.. All rights reserved.