public interface ExpressionLanguageMetadataService extends Service
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ExpressionLanguageMetadataService.MessageCallback
Callback from the resolver
|
static class |
ExpressionLanguageMetadataService.MessageLocation
Represents a message location
|
static class |
ExpressionLanguageMetadataService.MessagePosition
A position with the line , column and offset in a document
|
static interface |
ExpressionLanguageMetadataService.MetadataTypeSerializer
Serialize MetadataTypes in the type system of the given expression language
|
| Modifier and Type | Method and Description |
|---|---|
org.mule.metadata.api.TypeLoader |
createTypeLoader(String content,
org.mule.metadata.api.model.MetadataFormat metadataFormat)
Returns a new type loader.
|
void |
getInputType(String expression,
org.mule.metadata.api.model.MetadataType output,
org.mule.metadata.message.api.MuleEventMetadataTypeBuilder builder,
ExpressionLanguageMetadataService.MessageCallback callback)
Infers the expected input mule event type
MuleEventMetadataType for specified output type with the given script. |
org.mule.metadata.api.model.MetadataType |
getMetadataFromSample(InputStream sample,
Map<String,Object> readerProperties,
String mimeType)
Infers the metadata out of a sample data
|
org.mule.metadata.api.model.MetadataType |
getOutputType(org.mule.metadata.message.api.el.TypeBindings typeBindings,
String expression,
ExpressionLanguageMetadataService.MessageCallback callback)
Returns the result type expression when invoked with the given
TypeBindings. |
org.mule.metadata.api.model.MetadataType |
getOutputType(org.mule.metadata.message.api.el.TypeBindings typeBindings,
String expression,
String outputMimeType,
ExpressionLanguageMetadataService.MessageCallback callback)
Returns the result type expression when invoked with the given
TypeBindings. |
ExpressionLanguageMetadataService.MetadataTypeSerializer |
getTypeSerializer()
Returns the type serializer
|
org.mule.metadata.api.model.MetadataType |
intersect(List<org.mule.metadata.api.model.MetadataType> metadataTypes)
Intersects all the specified types into one type.
|
boolean |
isAssignable(org.mule.metadata.api.model.MetadataType assignment,
org.mule.metadata.api.model.MetadataType expected,
ExpressionLanguageMetadataService.MessageCallback callback)
Returns if the assignment type can be assigned to the expected type
|
Map<String,org.mule.metadata.api.model.MetadataType> |
resolveAssignment(org.mule.metadata.api.model.MetadataType assignment,
org.mule.metadata.api.model.MetadataType expected,
ExpressionLanguageMetadataService.MessageCallback callback)
Returns the substitution that needs to be done in order for this two types can be assigned
|
org.mule.metadata.api.model.MetadataType |
substitute(org.mule.metadata.api.model.MetadataType assignment,
Map<String,org.mule.metadata.api.model.MetadataType> substitution)
Returns a new type with the substitution being applied
|
org.mule.metadata.api.model.MetadataType |
unify(List<org.mule.metadata.api.model.MetadataType> metadataTypes)
Unify all the specified types into one type.
|
getContractName, getSplashMessagegetNamevoid getInputType(String expression, org.mule.metadata.api.model.MetadataType output, org.mule.metadata.message.api.MuleEventMetadataTypeBuilder builder, ExpressionLanguageMetadataService.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 callbackorg.mule.metadata.api.model.MetadataType getOutputType(org.mule.metadata.message.api.el.TypeBindings typeBindings,
String expression,
ExpressionLanguageMetadataService.MessageCallback callback)
TypeBindings.typeBindings - The script bindingsexpression - The scripting text.callback - The callbackorg.mule.metadata.api.model.MetadataType getOutputType(org.mule.metadata.message.api.el.TypeBindings typeBindings,
String expression,
String outputMimeType,
ExpressionLanguageMetadataService.MessageCallback callback)
TypeBindings.typeBindings - The script bindingsexpression - The scripting text.outputMimeType - The output mimeType of the expressioncallback - The callbackorg.mule.metadata.api.model.MetadataType 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(org.mule.metadata.api.model.MetadataType assignment,
org.mule.metadata.api.model.MetadataType expected,
ExpressionLanguageMetadataService.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,org.mule.metadata.api.model.MetadataType> resolveAssignment(org.mule.metadata.api.model.MetadataType assignment, org.mule.metadata.api.model.MetadataType expected, ExpressionLanguageMetadataService.MessageCallback callback)
assignment - The assignment typeexpected - The expected typecallback - The callback for errors and warningsorg.mule.metadata.api.model.MetadataType substitute(org.mule.metadata.api.model.MetadataType assignment,
Map<String,org.mule.metadata.api.model.MetadataType> substitution)
assignment - The type to be substitutedsubstitution - The substitutionorg.mule.metadata.api.model.MetadataType unify(List<org.mule.metadata.api.model.MetadataType> metadataTypes)
metadataTypes - The types to be unifiedorg.mule.metadata.api.model.MetadataType intersect(List<org.mule.metadata.api.model.MetadataType> metadataTypes)
metadataTypes - The types to be intersectedExpressionLanguageMetadataService.MetadataTypeSerializer getTypeSerializer()
org.mule.metadata.api.TypeLoader createTypeLoader(String content, org.mule.metadata.api.model.MetadataFormat metadataFormat)
content - The scriptmetadataFormat - The format that will be used for the loaded typesCopyright © 2021 MuleSoft, Inc.. All rights reserved.