public class DslSyntaxResolver extends Object
DslElementSyntax of any Component, Parameter or Type within the context of the Extension model where the Component was declared.| Constructor and Description |
|---|
DslSyntaxResolver(ExtensionModel model,
DslResolvingContext context) |
| Modifier and Type | Method and Description |
|---|---|
DslElementSyntax |
resolve(org.mule.metadata.api.model.MetadataType type)
Resolves the xml top level element
DslElementSyntax for the given MetadataType |
DslElementSyntax |
resolve(Named component)
Resolves the
DslElementSyntax for the given component. |
DslElementSyntax |
resolve(ParameterModel parameter)
Resolves the
DslElementSyntax for the given parameter, providing all the required information
for representing this parameter element in the DSL. |
public static final String EMPTY
public DslSyntaxResolver(ExtensionModel model, 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 doesn't have an XmlModelProperty, if the
ExtensionModel declares an imported type from an ExtensionModel not present in the provided
DslResolvingContext or if the imported ExtensionModel doesn't have an
ImportedTypesModelPropertypublic DslElementSyntax resolve(Named component)
DslElementSyntax for the given component.component - the Named element to be described in the DslElementSyntaxDslElementSyntax for the modelpublic DslElementSyntax resolve(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 parameterpublic DslElementSyntax resolve(org.mule.metadata.api.model.MetadataType type)
DslElementSyntax for the given MetadataTypetype - the MetadataType to be described in the DslElementSyntaxDslElementSyntax for the top level element associated to the MetadataTypeCopyright © 2016 MuleSoft, Inc.. All rights reserved.