public class MuleSdkParameterModelParserSdk extends Object implements ParameterModelParser
ParameterModelParser implementation for Mule SDK| Constructor and Description |
|---|
MuleSdkParameterModelParserSdk(org.mule.runtime.ast.api.ComponentAst parameter,
org.mule.metadata.api.TypeLoader typeLoader) |
| Modifier and Type | Method and Description |
|---|---|
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. |
org.mule.runtime.api.meta.model.parameter.ParameterRole |
getRole() |
Set<String> |
getSemanticTerms() |
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() |
public MuleSdkParameterModelParserSdk(org.mule.runtime.ast.api.ComponentAst parameter,
org.mule.metadata.api.TypeLoader typeLoader)
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 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 childNameCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.