@NoImplement
public interface ArtifactAst
String getArtifactName()
ArtifactType getArtifactType()
Set<org.mule.runtime.api.meta.model.ExtensionModel> dependencies()
DependencyResolutionMode set.ExtensionModels this artifact depends on.default NamespaceDefinition namespaceDefinition()
NamespaceDefinition that represents the namespace definition of this artifact.Optional<ArtifactAst> getParent()
ArtifactAst that is the parent of this artifact, if available.Stream<ComponentAst> recursiveStream()
Stream for this component and its children recursively that navigates the whole AST using TOP_DOWN
direction.Stream<ComponentAst> recursiveStream(AstTraversalDirection direction)
direction - the @{link AstTraversalDirection} used to navigate the whole AST.Stream for this component and its children recursively that navigates the whole AST using the given @{code
direction}.Spliterator<ComponentAst> recursiveSpliterator()
Spliterator for this component and its children recursively that navigates the whole AST using
TOP_DOWN direction.Spliterator<ComponentAst> recursiveSpliterator(AstTraversalDirection direction)
direction - the @{link AstTraversalDirection} used to navigate the whole AST.Spliterator for this component and its children recursively that navigates the whole AST using the
given @{code direction}.List<ComponentAst> topLevelComponents()
List for the top-level components (i.e.: configs, flows) of the artifact represented by this AST.Stream<ComponentAst> topLevelComponentsStream()
Stream for the top-level components (i.e.: configs, flows) of the artifact represented by this AST.Spliterator<ComponentAst> topLevelComponentsSpliterator()
Spliterator for the top-level components (i.e.: configs, flows) of the artifact represented by this AST.Stream<ComponentAst> filteredComponents(Predicate<ComponentAst> predicate)
Predicate, navigates the whole AST looking for all ComponentAsts satisfied by the provided
Predicate
Check ComponentAstPredicatesFactory, there are several Predicate already
defined.
predicate - the Predicate to test.Stream filtering ComponentAst that satisfied the predicate.void updatePropertiesResolver(UnaryOperator<String> newPropertiesResolver)
The received operator will transform a String containing keys surrounded with placeholder delimiters
(${}) to a String with those placeholders replaced with the appropriate property.
Bear in mind that a parameter resolved at one time may have a certain value, and resolving that parameter again after calling this method may yield another value.
newPropertiesResolver - the new resolver to use for the component parameters of this artifact.org.mule.runtime.api.exception.ErrorTypeRepository getErrorTypeRepository()
Collection<ImportedResource> getImportedResources()
Copyright © 2022 MuleSoft, Inc.. All rights reserved.