public interface ComponentAst
Every ComponentAst represents the configuration of a core configuration or an extension configuration. Which
configuration element this object represents is identified by a ComponentIdentifier that can be retrieved using
#getName().
| Modifier and Type | Field and Description |
|---|---|
static String |
BODY_RAW_PARAM_NAME
Deprecated.
this will be removed for 1.0.0.
|
| Modifier and Type | Method and Description |
|---|---|
Spliterator<ComponentAst> |
directChildrenSpliterator() |
Stream<ComponentAst> |
directChildrenStream() |
Optional<String> |
getComponentId() |
org.mule.runtime.api.component.TypedComponentIdentifier.ComponentType |
getComponentType() |
org.mule.runtime.api.component.ComponentIdentifier |
getIdentifier() |
org.mule.runtime.api.component.location.ComponentLocation |
getLocation() |
ComponentMetadataAst |
getMetadata() |
<M> Optional<M> |
getModel(Class<M> modelClass)
A component may be represented by different kinds of models, depending on the actual type of this component.
|
ComponentParameterAst |
getParameter(String paramName) |
Collection<ComponentParameterAst> |
getParameters()
A parameter may have a value either because it is explicitly set in the DSL, or because the extension model defines a default
value for it.
|
Optional<String> |
getRawParameterValue(String paramName)
Deprecated.
Use
getParameter(String) instead. This will removed before 1.0.0. |
Spliterator<ComponentAst> |
recursiveSpliterator() |
Stream<ComponentAst> |
recursiveStream() |
@Deprecated static final String BODY_RAW_PARAM_NAME
org.mule.runtime.api.component.ComponentIdentifier getIdentifier()
org.mule.runtime.api.component.TypedComponentIdentifier.ComponentType getComponentType()
org.mule.runtime.api.component.location.ComponentLocation getLocation()
ComponentMetadataAst getMetadata()
Optional<String> getComponentId()
empty otherwise.<M> Optional<M> getModel(Class<M> modelClass)
ConfigurationModel, ComponentModel or ConnectionProviderModel (but
not necessarily limited to those).modelClass - the class of the model this method should return.@Deprecated Optional<String> getRawParameterValue(String paramName)
getParameter(String) instead. This will removed before 1.0.0.paramName - the name of the parameter to get the raw value for.Optional.empty() if not present.ComponentParameterAst getParameter(String paramName)
paramName - the name of the parameter to get AST for.NoSuchElementException - if there is no parameter with the given paramName.Collection<ComponentParameterAst> getParameters()
Stream<ComponentAst> recursiveStream()
Stream for this component and its children recursively that navigates the whole AST.Spliterator<ComponentAst> recursiveSpliterator()
Spliterator for this component and its children recursively that navigates the whole AST.Stream<ComponentAst> directChildrenStream()
Stream for this component and its children recursively that navigates the whole AST.Spliterator<ComponentAst> directChildrenSpliterator()
Spliterator for this component and its children recursively that navigates the whole AST.Copyright © 2021 MuleSoft, Inc.. All rights reserved.