public interface ExpressionLanguageMetadataTypeResolver
Modifier and Type | Interface and Description |
---|---|
static interface |
ExpressionLanguageMetadataTypeResolver.MessageCallback
Callback from the resolver
|
static class |
ExpressionLanguageMetadataTypeResolver.MessageLocation
Represents a message location
|
static class |
ExpressionLanguageMetadataTypeResolver.MessagePosition
A position with the line , column and offset in a document
|
Modifier and Type | Method and Description |
---|---|
void |
getInputType(String expression,
MetadataType output,
MuleEventMetadataTypeBuilder builder,
ExpressionLanguageMetadataTypeResolver.MessageCallback callback)
Infers the expected input mule event type
MuleEventMetadataType for specified output type with the given script. |
static ExpressionLanguageMetadataTypeResolver |
getInstance()
Returns the default instance for this Type Resolver
|
static ExpressionLanguageMetadataTypeResolver |
getInstance(ClassLoader loader) |
MetadataType |
getMetadataFromSample(InputStream sample,
Map<String,Object> readerProperties,
String mimeType)
Infers the metadata out of a sample data
|
MetadataType |
getOutputType(TypeBindings typeBindings,
String expression,
ExpressionLanguageMetadataTypeResolver.MessageCallback callback)
Returns the result type expression when invoked with the given
TypeBindings . |
MetadataType |
getOutputType(TypeBindings typeBindings,
String expression,
String outputMimeType,
ExpressionLanguageMetadataTypeResolver.MessageCallback callback)
Returns the result type expression when invoked with the given
TypeBindings . |
boolean |
isAssignable(MetadataType assignment,
MetadataType expected,
ExpressionLanguageMetadataTypeResolver.MessageCallback callback)
Returns if the assignment type can be assigned to the expected type
|
Map<String,MetadataType> |
resolveAssignment(MetadataType assignment,
MetadataType expected,
ExpressionLanguageMetadataTypeResolver.MessageCallback callback)
Returns the substitution that needs to be done in order for this two types can be assigned
|
MetadataType |
substitute(MetadataType assignment,
Map<String,MetadataType> substitution)
Returns a new type with the substitution being applied
|
MetadataType |
unify(List<MetadataType> metadataTypes)
Unify all the specified types into one type.
|
void getInputType(String expression, MetadataType output, MuleEventMetadataTypeBuilder builder, ExpressionLanguageMetadataTypeResolver.MessageCallback callback)
MuleEventMetadataType
for specified output type with the given script.expression
- The scripting text.output
- The expected output typebuilder
- The builder to be used to build the event typecallback
- The callbackMetadataType getOutputType(TypeBindings typeBindings, String expression, ExpressionLanguageMetadataTypeResolver.MessageCallback callback)
TypeBindings
.typeBindings
- The script bindingsexpression
- The scripting text.callback
- The callbackMetadataType getOutputType(TypeBindings typeBindings, String expression, String outputMimeType, ExpressionLanguageMetadataTypeResolver.MessageCallback callback)
TypeBindings
.typeBindings
- The script bindingsexpression
- The scripting text.outputMimeType
- The output mimeType of the expressioncallback
- The callbackMetadataType getMetadataFromSample(InputStream sample, Map<String,Object> readerProperties, String mimeType)
sample
- The sample data to be usereaderProperties
- The configuration properties to read the sample datamimeType
- The mimeType of the sample databoolean isAssignable(MetadataType assignment, MetadataType expected, ExpressionLanguageMetadataTypeResolver.MessageCallback callback)
assignment
- The type to be assignedexpected
- The expected typecallback
- Callback for error messages. All the reasons of why it was not able to assignMap<String,MetadataType> resolveAssignment(MetadataType assignment, MetadataType expected, ExpressionLanguageMetadataTypeResolver.MessageCallback callback)
assignment
- The assignment typeexpected
- The expected typecallback
- The callback for errors and warningsMetadataType substitute(MetadataType assignment, Map<String,MetadataType> substitution)
assignment
- The type to be substitutedsubstitution
- The substitutionMetadataType unify(List<MetadataType> metadataTypes)
metadataTypes
- The types to be unifiedstatic ExpressionLanguageMetadataTypeResolver getInstance()
static ExpressionLanguageMetadataTypeResolver getInstance(ClassLoader loader)
Copyright © 2018. All rights reserved.