public interface DslSyntaxResolver
DslElementSyntax of any Component, Parameter or
Type within the context of the Extension model where the Component was declared.| Modifier and Type | Method and Description |
|---|---|
static DslSyntaxResolver |
getDefault(org.mule.runtime.api.meta.model.ExtensionModel model,
org.mule.runtime.api.dsl.DslResolvingContext context)
Creates an instance using the default implementation
|
static DslSyntaxResolver |
getDefault(org.mule.runtime.api.meta.model.ExtensionModel model,
ImportTypesStrategy importTypesStrategy)
Creates an instance using the default implementation
|
Optional<DslElementSyntax> |
resolve(org.mule.metadata.api.model.MetadataType type)
Resolves the
DslElementSyntax for the standalone xml element for the given MetadataType |
DslElementSyntax |
resolve(org.mule.runtime.api.meta.NamedObject component)
Resolves the
DslElementSyntax for the given component. |
DslElementSyntax |
resolve(org.mule.runtime.api.meta.model.parameter.ParameterModel parameter)
Resolves the
DslElementSyntax for the given parameter, providing all the required information
for representing this parameter element in the DSL. |
DslElementSyntax |
resolveInline(org.mule.runtime.api.meta.model.parameter.ParameterGroupModel group)
Resolves the
DslElementSyntax for a ParameterGroupModel that has
to be shown as an inline element of the DSL |
DslElementSyntax resolve(org.mule.runtime.api.meta.NamedObject component)
DslElementSyntax for the given component.component - the NamedObject element to be described in the DslElementSyntaxDslElementSyntax for the modelDslElementSyntax resolve(org.mule.runtime.api.meta.model.parameter.ParameterModel parameter)
DslElementSyntax for the given parameter, providing all the required information
for representing this parameter element in the DSL.parameter - the ParameterModel to be described in the DslElementSyntaxDslElementSyntax for the parameterOptional<DslElementSyntax> resolve(org.mule.metadata.api.model.MetadataType type)
DslElementSyntax for the standalone xml element for the given MetadataTypetype - the MetadataType to be described in the DslElementSyntaxDslElementSyntax for the top level element associated to the MetadataType or
Optional.empty() if the type is not supported as an standalone elementDslElementSyntax resolveInline(org.mule.runtime.api.meta.model.parameter.ParameterGroupModel group)
DslElementSyntax for a ParameterGroupModel that has
to be shown as an inline element of the DSLgroup - the ParameterGroupModel to be described in the DslElementSyntaxDslElementSyntax for the groupstatic DslSyntaxResolver getDefault(org.mule.runtime.api.meta.model.ExtensionModel model, org.mule.runtime.api.dsl.DslResolvingContext context)
model - the ExtensionModel that provides context for resolving the component's DslElementSyntaxcontext - the DslResolvingContext in which the Dsl resolution takes placeDslSyntaxResolverIllegalArgumentException - if the ExtensionModel declares an imported type from an ExtensionModel not
present in the provided DslResolvingContext or if the imported ExtensionModel doesn't have any
ImportedTypeModelstatic DslSyntaxResolver getDefault(org.mule.runtime.api.meta.model.ExtensionModel model, ImportTypesStrategy importTypesStrategy)
model - the ExtensionModel that provides context for resolving the component's DslElementSyntaximportTypesStrategy - the ImportTypesStrategy used for external types resolutionDslSyntaxResolverIllegalArgumentException - if the ExtensionModel declares an imported type from an ExtensionModel not
present in the provided DslResolvingContext or if the imported ExtensionModel doesn't have any
ImportedTypeModelCopyright © 2017 MuleSoft, Inc.. All rights reserved.