public abstract class ExtensionWalker extends Object
ExtensionModel and invokes methods when important
model components are found.
This is useful to centralize the logic of how to iterate through a
model's structure without coupling to it. For example, the
onOperation(HasOperationModels, OperationModel) method allows
handling operations without requiring to know that they can exist
at global or configuration level. Something similar can be said
about the onParameter(ParameterizedModel, ParameterModel), etc.
| Constructor and Description |
|---|
ExtensionWalker() |
| Modifier and Type | Method and Description |
|---|---|
void |
onConfiguration(ConfigurationModel model)
Invoked when a
ConfigurationModel is found in the
traversed extensionModel |
void |
onConnectionProvider(HasConnectionProviderModels owner,
ConnectionProviderModel model)
Invoked when an
ConnectionProviderModel is found in the
traversed extensionModel |
void |
onOperation(HasOperationModels owner,
OperationModel model)
Invoked when an
OperationModel is found in the
traversed extensionModel |
void |
onParameter(ParameterizedModel owner,
ParameterModel model)
Invoked when an
ParameterModel is found in the
traversed extensionModel |
void |
onSource(HasSourceModels owner,
SourceModel model)
Invoked when an
SourceModel is found in the
traversed extensionModel |
void |
walk(ExtensionModel extensionModel)
Navigates the given
extensionModel and invokes the
other public method's in this class as the navigation
progresses |
public final void walk(ExtensionModel extensionModel)
extensionModel and invokes the
other public method's in this class as the navigation
progressesextensionModel - the model to navigatepublic void onConfiguration(ConfigurationModel model)
ConfigurationModel is found in the
traversed extensionModelmodel - a ConfigurationModelpublic void onOperation(HasOperationModels owner, OperationModel model)
OperationModel is found in the
traversed extensionModelowner - The component that owns the operationmodel - the OperationModelpublic void onConnectionProvider(HasConnectionProviderModels owner, ConnectionProviderModel model)
ConnectionProviderModel is found in the
traversed extensionModelowner - The component that owns the providermodel - the ConnectionProviderModelpublic void onSource(HasSourceModels owner, SourceModel model)
SourceModel is found in the
traversed extensionModelowner - The component that owns the sourcemodel - the SourceModelpublic void onParameter(ParameterizedModel owner, ParameterModel model)
ParameterModel is found in the
traversed extensionModelowner - The component that owns the parametermodel - the ParameterModelCopyright © 2016 MuleSoft, Inc.. All rights reserved.