public class DefaultArtifactAstBuilder extends Object implements ArtifactAstBuilder
| Constructor and Description |
|---|
DefaultArtifactAstBuilder(String artifactName,
ArtifactType artifactType,
Set<org.mule.runtime.api.meta.model.ExtensionModel> extensionsModels,
Optional<ArtifactAst> parentArtifact,
UnaryOperator<String> basePropertiesResolver) |
| Modifier and Type | Method and Description |
|---|---|
ComponentAstBuilder |
addTopLevelComponent()
Adds a top-level component to the artifact being built with this builder.
|
ArtifactAstBuilder |
addTopLevelComponent(ComponentAst topLevelComponent) |
ArtifactAst |
build()
Builds the target artifact and its inner components.
|
ComponentMetadataAstBuilder |
createMetadataBuilder() |
ArtifactAstBuilder |
withImportedResource(ImportedResource resource)
Adds a resource to be imported by the resulting
ArtifactAst. |
void |
withNamespaceDefinition(NamespaceDefinition namespaceDefinition)
Adds a
NamespaceDefinition to the Artifact being built. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilder, builder, builderpublic DefaultArtifactAstBuilder(String artifactName, ArtifactType artifactType, Set<org.mule.runtime.api.meta.model.ExtensionModel> extensionsModels, Optional<ArtifactAst> parentArtifact, UnaryOperator<String> basePropertiesResolver)
public ComponentAstBuilder addTopLevelComponent()
ArtifactAstBuilderaddTopLevelComponent in interface ArtifactAstBuilderpublic ArtifactAstBuilder addTopLevelComponent(ComponentAst topLevelComponent)
public ComponentMetadataAstBuilder createMetadataBuilder()
createMetadataBuilder in interface ArtifactAstBuilderComponentMetadataAstBuilder to use with this instance.public void withNamespaceDefinition(NamespaceDefinition namespaceDefinition)
ArtifactAstBuilderNamespaceDefinition to the Artifact being built.withNamespaceDefinition in interface ArtifactAstBuildernamespaceDefinition - the namespace definition to be added.public ArtifactAstBuilder withImportedResource(ImportedResource resource)
ArtifactAstBuilderArtifactAst.withImportedResource in interface ArtifactAstBuilderresource - The resource to be imported by the resulting ArtifactAst.public ArtifactAst build()
ArtifactAstBuilderbuild in interface ArtifactAstBuilderCopyright © 2022 MuleSoft, Inc.. All rights reserved.