public abstract class MuleSdkExtensionModelParser extends Object implements ExtensionModelParser
ExtensionModelParser implementation for Mule SDK extensions| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEPRECATED_CONSTRUCT_NAME |
| Constructor and Description |
|---|
MuleSdkExtensionModelParser(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. |
protected org.mule.runtime.module.extension.mule.internal.loader.parser.MuleSdkOperationModelParser |
createOperationModelParser(org.mule.runtime.ast.api.ComponentAst operation,
String namespace) |
List<org.mule.runtime.api.meta.model.ModelProperty> |
getAdditionalModelProperties() |
protected Stream<org.mule.runtime.ast.api.ComponentAst> |
getChildren(org.mule.runtime.ast.api.ComponentAst component,
String childName) |
List<ConfigurationModelParser> |
getConfigurationParsers() |
List<ConnectionProviderModelParser> |
getConnectionProviderModelParsers() |
Optional<org.mule.runtime.api.meta.model.deprecated.DeprecationModel> |
getDeprecationModel() |
List<ErrorModelParser> |
getErrorModelParsers() |
List<String> |
getExportedResources() |
List<org.mule.metadata.api.model.MetadataType> |
getExportedTypes() |
Optional<ExceptionHandlerModelProperty> |
getExtensionHandlerModelProperty() |
List<org.mule.runtime.api.meta.model.ExternalLibraryModel> |
getExternalLibraryModels() |
List<FunctionModelParser> |
getFunctionModelParsers() |
List<org.mule.metadata.api.model.MetadataType> |
getImportedTypes() |
List<org.mule.runtime.api.meta.model.notification.NotificationModel> |
getNotificationModels() |
List<OperationModelParser> |
getOperationModelParsers() |
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. |
List<String> |
getPrivilegedExportedArtifacts() |
List<String> |
getPrivilegedExportedPackages() |
protected org.mule.runtime.ast.api.ComponentAst |
getRequiredTopLevelComponent(org.mule.runtime.ast.api.ArtifactAst ast,
org.mule.runtime.api.component.ComponentIdentifier childIdentifier) |
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) |
List<SourceModelParser> |
getSourceModelParsers() |
Map<org.mule.metadata.api.model.MetadataType,List<org.mule.metadata.api.model.MetadataType>> |
getSubTypes() |
protected abstract Stream<org.mule.runtime.ast.api.ComponentAst> |
getTopLevelElements(org.mule.runtime.ast.api.ArtifactAst ast) |
protected void |
init(org.mule.runtime.ast.api.ArtifactAst ast) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCategory, getLicenseModelProperty, getName, getNamespace, getVendor, getXmlDslConfigurationprotected static final String DEPRECATED_CONSTRUCT_NAME
public MuleSdkExtensionModelParser(org.mule.runtime.ast.api.ArtifactAst ast,
org.mule.metadata.api.TypeLoader typeLoader,
org.mule.runtime.ast.internal.model.ExtensionModelHelper extensionModelHelper)
protected void init(org.mule.runtime.ast.api.ArtifactAst ast)
public List<org.mule.runtime.api.meta.model.ModelProperty> getAdditionalModelProperties()
getAdditionalModelProperties in interface AdditionalPropertiesModelParserpublic List<ConfigurationModelParser> getConfigurationParsers()
getConfigurationParsers in interface ExtensionModelParserpublic List<OperationModelParser> getOperationModelParsers()
getOperationModelParsers in interface ExtensionModelParserpublic List<SourceModelParser> getSourceModelParsers()
getSourceModelParsers in interface ExtensionModelParserpublic List<ConnectionProviderModelParser> getConnectionProviderModelParsers()
getConnectionProviderModelParsers in interface ExtensionModelParserpublic List<FunctionModelParser> getFunctionModelParsers()
getFunctionModelParsers in interface ExtensionModelParserpublic List<ErrorModelParser> getErrorModelParsers()
getErrorModelParsers in interface ExtensionModelParserpublic List<org.mule.runtime.api.meta.model.ExternalLibraryModel> getExternalLibraryModels()
getExternalLibraryModels in interface ExtensionModelParserpublic Optional<ExceptionHandlerModelProperty> getExtensionHandlerModelProperty()
getExtensionHandlerModelProperty in interface ExtensionModelParserpublic Optional<org.mule.runtime.api.meta.model.deprecated.DeprecationModel> getDeprecationModel()
getDeprecationModel in interface ExtensionModelParserpublic List<org.mule.metadata.api.model.MetadataType> getExportedTypes()
getExportedTypes in interface ExtensionModelParserpublic List<String> getExportedResources()
getExportedResources in interface ExtensionModelParserpublic List<org.mule.metadata.api.model.MetadataType> getImportedTypes()
getImportedTypes in interface ExtensionModelParserpublic List<String> getPrivilegedExportedArtifacts()
getPrivilegedExportedArtifacts in interface ExtensionModelParserpublic List<String> getPrivilegedExportedPackages()
getPrivilegedExportedPackages in interface ExtensionModelParserpublic Map<org.mule.metadata.api.model.MetadataType,List<org.mule.metadata.api.model.MetadataType>> getSubTypes()
getSubTypes in interface ExtensionModelParserpublic List<org.mule.runtime.api.meta.model.notification.NotificationModel> getNotificationModels()
getNotificationModels in interface ExtensionModelParserpublic Optional<org.mule.runtime.extension.api.property.SinceMuleVersionModelProperty> getSinceMuleVersionModelProperty()
getSinceMuleVersionModelProperty in interface ExtensionModelParserprotected abstract Stream<org.mule.runtime.ast.api.ComponentAst> getTopLevelElements(org.mule.runtime.ast.api.ArtifactAst ast)
ast - the ArtifactAst representing the extension.Stream with the top level elements ComponentAst extracted from the ast.protected org.mule.runtime.module.extension.mule.internal.loader.parser.MuleSdkOperationModelParser createOperationModelParser(org.mule.runtime.ast.api.ComponentAst operation,
String namespace)
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.