@NoImplement public interface ComponentAstBuilder extends Supplier<ComponentAst>
ComponentAst instances, configuring it and any children it may have.| Modifier and Type | Method and Description |
|---|---|
ComponentAstBuilder |
addChildComponent()
Adds a child component to the component being built with this builder.
|
ComponentAst |
build()
Builds the target component and its children.
|
static ComponentAstBuilder |
builder()
Provides a builder for
ComponentAst that does not belong to an ArtifactAst. |
ComponentAstBuilder |
withAnnotation(String name,
Object value)
Adds an annotation as defined in the DSL to this component builder.
|
ComponentAstBuilder |
withBodyParameter(String parameterRawValue)
Adds a body parameter as defined in the DSL to this component builder.
|
ComponentAstBuilder |
withIdentifier(org.mule.runtime.api.component.ComponentIdentifier identifier) |
ComponentAstBuilder |
withMetadata(ComponentMetadataAst metadata) |
ComponentAstBuilder |
withParameterizedModel(org.mule.runtime.api.meta.model.parameter.ParameterizedModel parameterizedModel)
Sets the model declaration of the target component.
|
ComponentAstBuilder |
withRawParameter(String paramName,
String paramRawValue)
Adds a parameter as defined in the DSL to this component builder.
|
static ComponentAstBuilder builder()
ComponentAst that does not belong to an ArtifactAst.ComponentAstBuilder instance.ComponentAstBuilder addChildComponent()
ComponentAstBuilder withRawParameter(String paramName, String paramRawValue)
When the target component is actually being built, these parameter names are matched to the parameters
defined in the model provided by withParameterizedModel(ParameterizedModel) to create the actual parameters map of
the component.
paramName - the name of the parameter for which a raw value is provided.paramRawValue - the raw value of the parameter, as defined in the DSL.ComponentAstBuilder withBodyParameter(String parameterRawValue)
When the target component is actually being built, these body parameter is matched to the parameters defined
in the model provided by withParameterizedModel(ParameterizedModel) to create the actual parameters map of the
component.
parameterRawValue - the raw value of the body parameter.ComponentAstBuilder withAnnotation(String name, Object value)
qName - the qualified name of the annotation to be added.value - the value of the annotation.ComponentAstBuilder withMetadata(ComponentMetadataAst metadata)
metadata - the parser metadata for this component.ComponentAstBuilder withIdentifier(org.mule.runtime.api.component.ComponentIdentifier identifier)
identifier - the identifier for the configuration element this object represents.ComponentAstBuilder withParameterizedModel(org.mule.runtime.api.meta.model.parameter.ParameterizedModel parameterizedModel)
This method is exclusive with #withComponentModel(ComponentModel),
#withNestableElementModel(NestableElementModel), #withConfigurationModel(ConfigurationModel) and
#withConnectionProviderModel(ConnectionProviderModel); only one of these may be called for a single builder.
parameterizedModel - the model that represents this component.ComponentAst build()
Copyright © 2022 MuleSoft, Inc.. All rights reserved.