public final class DefaultComponentAst extends BaseComponentAst
| Constructor and Description |
|---|
DefaultComponentAst(List<ComponentAst> builtChildren,
Map<org.mule.runtime.api.util.Pair<org.mule.runtime.api.meta.model.parameter.ParameterModel,org.mule.runtime.api.meta.model.parameter.ParameterGroupModel>,ComponentParameterAst> parameterAsts,
Map<String,String> extraParams,
PropertiesResolver propertiesResolver,
Map<String,Object> annotations,
Supplier<Optional<String>> componentId,
org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
org.mule.runtime.api.meta.model.ComponentModel componentModel,
org.mule.runtime.api.meta.model.nested.NestableElementModel nestableElementModel,
org.mule.runtime.api.meta.model.config.ConfigurationModel configurationModel,
org.mule.runtime.api.meta.model.connection.ConnectionProviderModel connectionProviderModel,
org.mule.runtime.api.meta.model.parameter.ParameterizedModel parameterizedModel,
org.mule.metadata.api.model.MetadataType type,
ComponentGenerationInformation generationInformation,
ComponentMetadataAst metadata,
org.mule.runtime.api.component.location.ComponentLocation location,
org.mule.runtime.api.component.ComponentIdentifier identifier,
org.mule.runtime.api.component.TypedComponentIdentifier.ComponentType componentType) |
| Modifier and Type | Method and Description |
|---|---|
List<ComponentAst> |
directChildren()
This method will NOT traverse any complex parameters this component has.
|
Map<String,Object> |
getAnnotations()
An annotation is defined by the DSL processor that creates the instances of
ComponentAst. |
Optional<String> |
getComponentId() |
org.mule.runtime.api.component.TypedComponentIdentifier.ComponentType |
getComponentType() |
org.mule.runtime.api.meta.model.ExtensionModel |
getExtensionModel() |
ComponentGenerationInformation |
getGenerationInformation() |
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 groupName,
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.
|
org.mule.metadata.api.model.MetadataType |
getType() |
directChildrenSpliterator, directChildrenStream, doGetParameter, recursiveSpliterator, recursiveSpliterator, recursiveStream, recursiveStream, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdirectChildrenStreamByIdentifierpublic DefaultComponentAst(List<ComponentAst> builtChildren, Map<org.mule.runtime.api.util.Pair<org.mule.runtime.api.meta.model.parameter.ParameterModel,org.mule.runtime.api.meta.model.parameter.ParameterGroupModel>,ComponentParameterAst> parameterAsts, Map<String,String> extraParams, PropertiesResolver propertiesResolver, Map<String,Object> annotations, Supplier<Optional<String>> componentId, org.mule.runtime.api.meta.model.ExtensionModel extensionModel, org.mule.runtime.api.meta.model.ComponentModel componentModel, org.mule.runtime.api.meta.model.nested.NestableElementModel nestableElementModel, org.mule.runtime.api.meta.model.config.ConfigurationModel configurationModel, org.mule.runtime.api.meta.model.connection.ConnectionProviderModel connectionProviderModel, org.mule.runtime.api.meta.model.parameter.ParameterizedModel parameterizedModel, org.mule.metadata.api.model.MetadataType type, ComponentGenerationInformation generationInformation, ComponentMetadataAst metadata, org.mule.runtime.api.component.location.ComponentLocation location, org.mule.runtime.api.component.ComponentIdentifier identifier, org.mule.runtime.api.component.TypedComponentIdentifier.ComponentType componentType)
public List<ComponentAst> directChildren()
ComponentAstList for this component's children.public ComponentParameterAst getParameter(String groupName, String paramName)
getParameter in interface ComponentAstgetParameter in class BaseComponentAstgroupName - the name of the parameterGroup to get AST for.paramName - the name of the parameter to get AST for.groupName and paramName.public Collection<ComponentParameterAst> getParameters()
ComponentAstpublic org.mule.runtime.api.meta.model.ExtensionModel getExtensionModel()
public <M> Optional<M> getModel(Class<M> modelClass)
ComponentAstConfigurationModel, ComponentModel or ConnectionProviderModel (but
not necessarily limited to those).modelClass - the class of the model this method should return.public org.mule.metadata.api.model.MetadataType getType()
public ComponentGenerationInformation getGenerationInformation()
public Map<String,Object> getAnnotations()
ComponentAstComponentAst.Map containing the annotations for this component.public ComponentMetadataAst getMetadata()
public org.mule.runtime.api.component.location.ComponentLocation getLocation()
public org.mule.runtime.api.component.ComponentIdentifier getIdentifier()
public org.mule.runtime.api.component.TypedComponentIdentifier.ComponentType getComponentType()
Copyright © 2022 MuleSoft, Inc.. All rights reserved.