Interface MappingService
- All Superinterfaces:
org.mule.dx.platform.api.component.ComponentLifecycle,LanguageServerLifecycle,WeaveService
This service should be injected and provides the capability of generating graphical model
for a mapping.
-
Method Summary
Modifier and TypeMethodDescriptionGiven a URI of a DataWeave mapping document it creates a mapping editor for it that enables retrieval and interaction with the Expression model.Methods inherited from interface org.mule.weave.extension.api.lifecycle.LanguageServerLifecycle
initialize, initialized, shutdownMethods inherited from interface org.mule.weave.extension.api.services.WeaveService
start, stop
-
Method Details
-
open
Given a URI of a DataWeave mapping document it creates a mapping editor for it that enables retrieval and interaction with the Expression model. The mapping editor returned does not keep track of script changes, the model is generated once. Script changes need to be tracked from outside and a new open has to be called to generate an updated model.- Parameters:
uri- URI of the document that contains the DW mappinginputBindings- list of names of the inputs for the mapping- Returns:
- returns a MappingEditor with methods for interacting with the Expression model of the mapping
- Throws:
Exception- if document cannot be opened from URI
-