@NoImplement
public interface ArtifactAstBuilder
ArtifactAst instances, adding and configuring its components.| Modifier and Type | Method and Description |
|---|---|
ComponentAstBuilder |
addTopLevelComponent()
Adds a top-level component to the artifact being built with this builder.
|
ArtifactAst |
build()
Builds the target artifact and its inner components.
|
static ArtifactAstBuilder |
builder(Set<org.mule.runtime.api.meta.model.ExtensionModel> extensionsModels,
Optional<ArtifactAst> parentArtifact) |
static ArtifactAstBuilder |
builder(Set<org.mule.runtime.api.meta.model.ExtensionModel> extensionsModels,
Optional<ArtifactAst> parentArtifact,
UnaryOperator<String> basePropertiesResolver)
Instantiates a new raw builder, whose components will be declared in the provided
extensionModels. |
static ArtifactAstBuilder |
builder(String artifactName,
ArtifactType artifactType,
Set<org.mule.runtime.api.meta.model.ExtensionModel> extensionsModels,
Optional<ArtifactAst> parentArtifact,
UnaryOperator<String> basePropertiesResolver) |
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. |
static ArtifactAstBuilder builder(Set<org.mule.runtime.api.meta.model.ExtensionModel> extensionsModels, Optional<ArtifactAst> parentArtifact)
static ArtifactAstBuilder builder(Set<org.mule.runtime.api.meta.model.ExtensionModel> extensionsModels, Optional<ArtifactAst> parentArtifact, UnaryOperator<String> basePropertiesResolver)
extensionModels.extensionsModels - contain the declaration of the components to be added to the target ArtifactAst.parentArtifact - the ArtifactAst that is the parent of the target artifact.basePropertiesResolver - the resolver for properties that may be found during the basic building of the AST (for
instance, the names of components used to generate locations).static ArtifactAstBuilder builder(String artifactName, ArtifactType artifactType, Set<org.mule.runtime.api.meta.model.ExtensionModel> extensionsModels, Optional<ArtifactAst> parentArtifact, UnaryOperator<String> basePropertiesResolver)
ComponentAstBuilder addTopLevelComponent()
ComponentMetadataAstBuilder createMetadataBuilder()
ComponentMetadataAstBuilder to use with this instance.ArtifactAst build()
void withNamespaceDefinition(NamespaceDefinition namespaceDefinition)
NamespaceDefinition to the Artifact being built.namespaceDefinition - the namespace definition to be added.ArtifactAstBuilder withImportedResource(ImportedResource resource)
ArtifactAst.resource - The resource to be imported by the resulting ArtifactAst.Copyright © 2022 MuleSoft, Inc.. All rights reserved.