public class ParameterLayoutParser extends Object
DisplayModel, the LayoutModel, and the semantic terms.| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEPRECATED_CONSTRUCT_NAME |
| Constructor and Description |
|---|
ParameterLayoutParser(org.mule.runtime.ast.api.ComponentAst parameterAst) |
| 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. |
protected Stream<org.mule.runtime.ast.api.ComponentAst> |
getChildren(org.mule.runtime.ast.api.ComponentAst component,
String childName) |
Optional<org.mule.runtime.api.meta.model.display.DisplayModel> |
getDisplayModel() |
Optional<org.mule.runtime.api.meta.model.display.LayoutModel> |
getLayoutModel() |
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. |
Set<String> |
getSemanticTerms() |
protected Optional<org.mule.runtime.ast.api.ComponentAst> |
getSingleChild(org.mule.runtime.ast.api.ComponentAst component,
String childName) |
protected static final String DEPRECATED_CONSTRUCT_NAME
public ParameterLayoutParser(org.mule.runtime.ast.api.ComponentAst parameterAst)
public Optional<org.mule.runtime.api.meta.model.display.LayoutModel> getLayoutModel()
public Optional<org.mule.runtime.api.meta.model.display.DisplayModel> getDisplayModel()
protected <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 - childName - childNameprotected 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.