public class XmlDslSyntaxResolver extends Object implements DslSyntaxResolver
DslSyntaxResolver based on XML.
Provides the DslElementSyntax of any Component, Parameter or
Type within the context of the Extension model where the Component was declared.
| Constructor and Description |
|---|
XmlDslSyntaxResolver(org.mule.runtime.api.meta.model.ExtensionModel model,
org.mule.runtime.api.dsl.DslResolvingContext context)
Creates an instance using the default implementation
|
XmlDslSyntaxResolver(org.mule.runtime.api.meta.model.ExtensionModel model,
ImportTypesStrategy importTypesStrategy)
Creates an instance using the default implementation
|
| Modifier and Type | Method and Description |
|---|---|
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefault, getDefaultpublic XmlDslSyntaxResolver(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 placeIllegalArgumentException - 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
ImportedTypeModelpublic XmlDslSyntaxResolver(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 resolutionIllegalArgumentException - 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
ImportedTypeModelpublic DslElementSyntax resolve(org.mule.runtime.api.meta.NamedObject component)
DslElementSyntax for the given component.resolve in interface DslSyntaxResolvercomponent - the NamedObject element to be described in the DslElementSyntaxDslElementSyntax for the modelpublic DslElementSyntax 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.resolve in interface DslSyntaxResolverparameter - the ParameterModel to be described in the DslElementSyntaxDslElementSyntax for the parameterpublic DslElementSyntax 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 DSLresolveInline in interface DslSyntaxResolvergroup - the ParameterGroupModel to be described in the DslElementSyntaxDslElementSyntax for the grouppublic Optional<DslElementSyntax> resolve(org.mule.metadata.api.model.MetadataType type)
DslElementSyntax for the standalone xml element for the given MetadataTyperesolve in interface DslSyntaxResolvertype - 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 elementCopyright © 2017 MuleSoft, Inc.. All rights reserved.