public class MuleSdkApplicationExtensionModelParser extends MuleSdkExtensionModelParser
ExtensionModelParser implementation for Mule SDK in the context of applications.| Modifier and Type | Field and Description |
|---|---|
static String |
APP_LOCAL_EXTENSION_NAMESPACE |
protected static String |
DEPRECATED_CONSTRUCT_NAME |
| Constructor and Description |
|---|
MuleSdkApplicationExtensionModelParser(String extensionName,
org.mule.runtime.ast.api.ArtifactAst ast,
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. |
org.mule.runtime.api.meta.Category |
getCategory() |
protected Stream<org.mule.runtime.ast.api.ComponentAst> |
getChildren(org.mule.runtime.ast.api.ComponentAst component,
String childName) |
LicenseModelProperty |
getLicenseModelProperty() |
String |
getName() |
String |
getNamespace() |
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) |
protected Optional<org.mule.runtime.ast.api.ComponentAst> |
getSingleChild(org.mule.runtime.ast.api.ComponentAst component,
String childName) |
protected Stream<org.mule.runtime.ast.api.ComponentAst> |
getTopLevelElements(org.mule.runtime.ast.api.ArtifactAst ast) |
String |
getVendor() |
Optional<XmlDslConfiguration> |
getXmlDslConfiguration() |
createOperationModelParser, getAdditionalModelProperties, getConfigurationParsers, getConnectionProviderModelParsers, getDeprecationModel, getErrorModelParsers, getExportedResources, getExportedTypes, getExtensionHandlerModelProperty, getExternalLibraryModels, getFunctionModelParsers, getImportedTypes, getNotificationModels, getOperationModelParsers, getPrivilegedExportedArtifacts, getPrivilegedExportedPackages, getSinceMuleVersionModelProperty, getSourceModelParsers, getSubTypes, initpublic static final String APP_LOCAL_EXTENSION_NAMESPACE
protected static final String DEPRECATED_CONSTRUCT_NAME
public MuleSdkApplicationExtensionModelParser(String extensionName, org.mule.runtime.ast.api.ArtifactAst ast, org.mule.metadata.api.TypeLoader typeLoader, org.mule.runtime.ast.internal.model.ExtensionModelHelper extensionModelHelper)
public String getName()
public org.mule.runtime.api.meta.Category getCategory()
public String getVendor()
public Optional<XmlDslConfiguration> getXmlDslConfiguration()
public String getNamespace()
public LicenseModelProperty getLicenseModelProperty()
protected Stream<org.mule.runtime.ast.api.ComponentAst> getTopLevelElements(org.mule.runtime.ast.api.ArtifactAst ast)
getTopLevelElements in class MuleSdkExtensionModelParserast - the ArtifactAst representing the extension.Stream with the top level elements ComponentAst extracted from the ast.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 - 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.