public class MuleSdkParameterModelParser extends Object implements ParameterModelParser
ParameterModelParser implementation for Mule SDK (required parameters).| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEPRECATED_CONSTRUCT_NAME |
protected org.mule.runtime.ast.api.ComponentAst |
parameterAst |
| Constructor and Description |
|---|
MuleSdkParameterModelParser(org.mule.runtime.ast.api.ComponentAst parameterAst,
org.mule.metadata.api.TypeLoader typeLoader,
org.mule.runtime.ast.internal.model.ExtensionModelHelper extensionModelHelper) |
| Modifier and Type | Method and Description |
|---|---|
protected org.mule.runtime.api.meta.model.deprecated.DeprecationModel |
buildDeprecationModel(org.mule.runtime.ast.api.ComponentAst deprecationAst)
Builds a deprecation model by parsing the content of the
deprecated parameter AST. |
List<org.mule.runtime.api.meta.model.ModelProperty> |
getAdditionalModelProperties() |
List<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> |
getAllowedStereotypes(StereotypeModelFactory factory) |
protected Stream<org.mule.runtime.ast.api.ComponentAst> |
getChildren(org.mule.runtime.ast.api.ComponentAst component,
String childName) |
Object |
getDefaultValue() |
Optional<org.mule.runtime.api.meta.model.deprecated.DeprecationModel> |
getDeprecationModel() |
String |
getDescription() |
Optional<org.mule.runtime.api.meta.model.display.DisplayModel> |
getDisplayModel() |
Optional<org.mule.runtime.api.meta.model.ParameterDslConfiguration> |
getDslConfiguration() |
org.mule.runtime.api.meta.ExpressionSupport |
getExpressionSupport() |
Optional<org.mule.runtime.api.meta.model.display.LayoutModel> |
getLayoutModel() |
String |
getName() |
Optional<org.mule.runtime.extension.api.connectivity.oauth.OAuthParameterModelProperty> |
getOAuthParameterModelProperty() |
protected <T> Optional<T> |
getOptionalParameter(org.mule.runtime.ast.api.ComponentAst ast,
String paramName)
Returns the value of an optional parameter in the give
ast. |
protected <T> T |
getParameter(org.mule.runtime.ast.api.ComponentAst ast,
String paramName)
Returns the value of a parameter in the given
ast. |
protected org.mule.runtime.ast.api.ComponentAst |
getRequiredTopLevelComponent(org.mule.runtime.ast.api.ArtifactAst ast,
org.mule.runtime.api.component.ComponentIdentifier childIdentifier) |
org.mule.runtime.api.meta.model.parameter.ParameterRole |
getRole() |
Set<String> |
getSemanticTerms() |
Optional<org.mule.runtime.extension.api.property.SinceMuleVersionModelProperty> |
getSinceMuleVersionModelProperty() |
protected Optional<org.mule.runtime.ast.api.ComponentAst> |
getSingleChild(org.mule.runtime.ast.api.ComponentAst component,
String childName) |
org.mule.metadata.api.model.MetadataType |
getType() |
boolean |
isComponentId() |
boolean |
isConfigOverride() |
boolean |
isExcludedFromConnectivitySchema() |
boolean |
isRequired() |
protected final org.mule.runtime.ast.api.ComponentAst parameterAst
protected static final String DEPRECATED_CONSTRUCT_NAME
public MuleSdkParameterModelParser(org.mule.runtime.ast.api.ComponentAst parameterAst,
org.mule.metadata.api.TypeLoader typeLoader,
org.mule.runtime.ast.internal.model.ExtensionModelHelper extensionModelHelper)
public List<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> getAllowedStereotypes(StereotypeModelFactory factory)
getAllowedStereotypes in interface AllowedStereotypesModelParserpublic String getName()
getName in interface ParameterModelParserpublic String getDescription()
getDescription in interface ParameterModelParserpublic org.mule.metadata.api.model.MetadataType getType()
getType in interface ParameterModelParserpublic boolean isRequired()
isRequired in interface ParameterModelParserpublic Object getDefaultValue()
getDefaultValue in interface ParameterModelParserpublic org.mule.runtime.api.meta.model.parameter.ParameterRole getRole()
getRole in interface ParameterModelParserpublic org.mule.runtime.api.meta.ExpressionSupport getExpressionSupport()
getExpressionSupport in interface ParameterModelParserpublic Optional<org.mule.runtime.api.meta.model.display.LayoutModel> getLayoutModel()
getLayoutModel in interface ParameterModelParserpublic Optional<org.mule.runtime.api.meta.model.ParameterDslConfiguration> getDslConfiguration()
getDslConfiguration in interface ParameterModelParserpublic boolean isExcludedFromConnectivitySchema()
isExcludedFromConnectivitySchema in interface ParameterModelParserpublic boolean isConfigOverride()
isConfigOverride in interface ParameterModelParserpublic boolean isComponentId()
isComponentId in interface ParameterModelParserpublic List<org.mule.runtime.api.meta.model.ModelProperty> getAdditionalModelProperties()
getAdditionalModelProperties in interface ParameterModelParserpublic Optional<org.mule.runtime.api.meta.model.deprecated.DeprecationModel> getDeprecationModel()
getDeprecationModel in interface ParameterModelParserpublic Optional<org.mule.runtime.api.meta.model.display.DisplayModel> getDisplayModel()
getDisplayModel in interface ParameterModelParserpublic Optional<org.mule.runtime.extension.api.connectivity.oauth.OAuthParameterModelProperty> getOAuthParameterModelProperty()
getOAuthParameterModelProperty in interface ParameterModelParserpublic Optional<org.mule.runtime.extension.api.property.SinceMuleVersionModelProperty> getSinceMuleVersionModelProperty()
getSinceMuleVersionModelProperty in interface ParameterModelParserpublic Set<String> getSemanticTerms()
getSemanticTerms in interface SemanticTermsParserprotected <T> T getParameter(org.mule.runtime.ast.api.ComponentAst ast,
String paramName)
ast. The parameter is assumed to either be required or have a default
defined.T - the param's generic typeast - a ComponentAstparamName - the name of the parameterprotected <T> Optional<T> getOptionalParameter(org.mule.runtime.ast.api.ComponentAst ast, String paramName)
ast.T - the param's generic typeast - a ComponentAstparamName - the name of the parameterOptional for the parameter's valueprotected Stream<org.mule.runtime.ast.api.ComponentAst> getChildren(org.mule.runtime.ast.api.ComponentAst component, String childName)
component - a ComponentAstchildName - the child element nameStream with all the direct children with the given childNameprotected Optional<org.mule.runtime.ast.api.ComponentAst> getSingleChild(org.mule.runtime.ast.api.ComponentAst component, String childName)
component - a ComponentAstchildName - the child element namechildNameprotected org.mule.runtime.ast.api.ComponentAst getRequiredTopLevelComponent(org.mule.runtime.ast.api.ArtifactAst ast,
org.mule.runtime.api.component.ComponentIdentifier childIdentifier)
ast - a ComponentAstchildIdentifier - the child ComponentIdentifierchildIdentifierorg.mule.runtime.api.exception.MuleRuntimeException - if not found.protected org.mule.runtime.api.meta.model.deprecated.DeprecationModel buildDeprecationModel(org.mule.runtime.ast.api.ComponentAst deprecationAst)
deprecated parameter AST.deprecationAst - The deprecation parameter AST.DeprecationModel.Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.