public class DefaultArtifactAstBuilder extends Object implements ArtifactAstBuilder
| Constructor and Description |
|---|
DefaultArtifactAstBuilder(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.
|
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, builderpublic DefaultArtifactAstBuilder(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 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 © 2021 MuleSoft, Inc.. All rights reserved.