Class LightComponentAstBuilder
- All Implemented Interfaces:
Supplier<ComponentAst>,ComponentAstBuilder
ComponentAst that does not belong to an ArtifactAst.- Since:
- 1.0
-
Field Summary
Fields inherited from class org.mule.runtime.ast.internal.builder.BaseComponentAstBuilder
BODY_RAW_PARAM_NAME, componentId, SOURCE_TYPE, TARGET_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionLightComponentAstBuilder(PropertiesResolver propertiesResolver, ParameterModelUtils parameterModelUtils) LightComponentAstBuilder(ParameterModelUtils parameterModelUtils) -
Method Summary
Modifier and TypeMethodDescriptionAdds a child component to the component being built with this builder.build()Builds the target component and its children.get()withComponentModel(org.mule.runtime.api.meta.model.ComponentModel componentModel) Sets the model declaration of the target component.withConfigurationModel(org.mule.runtime.api.meta.model.config.ConfigurationModel configurationModel) Sets the model declaration of the target component.withConnectionProviderModel(org.mule.runtime.api.meta.model.connection.ConnectionProviderModel connectionProviderModel) Sets the model declaration of the target component.withNestableElementModel(org.mule.runtime.api.meta.model.nested.NestableElementModel nestableElementModel) Sets the model declaration of the target component.Methods inherited from class org.mule.runtime.ast.internal.builder.BaseComponentAstBuilder
addChildComponent, childComponentsStream, createParameterAsts, doRemoveParamChild, getAnnotations, getComponentId, getComponentType, getExtensionModel, getGenerationInformation, getIdentifier, getLocation, getMetadata, getModel, getParameterModelUtils, getParamsChildren, getPropertiesResolver, getRawParameters, getType, prepareForBuild, removeChildComponent, removeParamChild, resolveComponentId, setComponentId, validateSingleModelSet, withAnnotation, withBodyParameter, withComponentType, withExtensionModel, withIdentifier, withLocation, withMetadata, withParameter, withParameter, withParameterizedModel, withRawParameter
-
Constructor Details
-
LightComponentAstBuilder
-
LightComponentAstBuilder
public LightComponentAstBuilder(PropertiesResolver propertiesResolver, ParameterModelUtils parameterModelUtils)
-
-
Method Details
-
addChildComponent
Description copied from interface:ComponentAstBuilderAdds a child component to the component being built with this builder.- Returns:
- the builder for the newly added child component
-
withComponentModel
public ComponentAstBuilder withComponentModel(org.mule.runtime.api.meta.model.ComponentModel componentModel) Description copied from class:BaseComponentAstBuilderSets the model declaration of the target component.This method is exclusive with
BaseComponentAstBuilder.withNestableElementModel(NestableElementModel),BaseComponentAstBuilder.withConfigurationModel(ConfigurationModel),BaseComponentAstBuilder.withConnectionProviderModel(ConnectionProviderModel)andBaseComponentAstBuilder.withParameterizedModel(ParameterizedModel); only one of these may be called for a single builder.- Overrides:
withComponentModelin classBaseComponentAstBuilder<LightComponentAstBuilder>- Parameters:
componentModel- the model that represents this component.- Returns:
- this builder
-
withNestableElementModel
public ComponentAstBuilder withNestableElementModel(org.mule.runtime.api.meta.model.nested.NestableElementModel nestableElementModel) Description copied from class:BaseComponentAstBuilderSets the model declaration of the target component.This method is exclusive with
BaseComponentAstBuilder.withComponentModel(ComponentModel),BaseComponentAstBuilder.withConfigurationModel(ConfigurationModel),BaseComponentAstBuilder.withConnectionProviderModel(ConnectionProviderModel)andBaseComponentAstBuilder.withParameterizedModel(ParameterizedModel); only one of these may be called for a single builder.- Overrides:
withNestableElementModelin classBaseComponentAstBuilder<LightComponentAstBuilder>- Parameters:
nestableElementModel- the model that represents this component.- Returns:
- this builder
-
withConfigurationModel
public ComponentAstBuilder withConfigurationModel(org.mule.runtime.api.meta.model.config.ConfigurationModel configurationModel) Description copied from class:BaseComponentAstBuilderSets the model declaration of the target component.This method is exclusive with
BaseComponentAstBuilder.withComponentModel(ComponentModel),BaseComponentAstBuilder.withNestableElementModel(NestableElementModel),BaseComponentAstBuilder.withConnectionProviderModel(ConnectionProviderModel)andBaseComponentAstBuilder.withParameterizedModel(ParameterizedModel); only one of these may be called for a single builder.- Overrides:
withConfigurationModelin classBaseComponentAstBuilder<LightComponentAstBuilder>- Parameters:
configurationModel- the model that represents this component.- Returns:
- this builder
-
withConnectionProviderModel
public ComponentAstBuilder withConnectionProviderModel(org.mule.runtime.api.meta.model.connection.ConnectionProviderModel connectionProviderModel) Description copied from class:BaseComponentAstBuilderSets the model declaration of the target component.This method is exclusive with
BaseComponentAstBuilder.withComponentModel(ComponentModel),BaseComponentAstBuilder.withNestableElementModel(NestableElementModel),BaseComponentAstBuilder.withConfigurationModel(ConfigurationModel)andBaseComponentAstBuilder.withParameterizedModel(ParameterizedModel); only one of these may be called for a single builder.- Overrides:
withConnectionProviderModelin classBaseComponentAstBuilder<LightComponentAstBuilder>- Parameters:
connectionProviderModel- the model that represents this component.- Returns:
- this builder
-
get
-
build
Description copied from interface:ComponentAstBuilderBuilds the target component and its children.- Returns:
- the target component
-