public class ImmutableExtensionModel extends AbstractComplexModel implements ExtensionModel
ExtensionModel| Constructor and Description |
|---|
ImmutableExtensionModel(String name,
String description,
String version,
String vendor,
Category category,
org.mule.runtime.api.MuleVersion minMuleVersion,
List<ConfigurationModel> configurationModels,
List<OperationModel> operationModels,
List<ConnectionProviderModel> connectionProviders,
List<SourceModel> sourceModels,
Set<org.mule.metadata.api.model.ObjectType> types,
Set<ModelProperty> modelProperties)
Creates a new instance with the given state
|
| Modifier and Type | Method and Description |
|---|---|
Category |
getCategory()
Returns the extension's
Category that identifies the extension. |
Optional<ConfigurationModel> |
getConfigurationModel(String name)
Returns the
ConfigurationModel
that matches the given name. |
List<ConfigurationModel> |
getConfigurationModels()
Returns the
configurationModels
available for this extension. |
org.mule.runtime.api.MuleVersion |
getMinMuleVersion()
Returns the extension's Min
MuleVersion. |
Set<org.mule.metadata.api.model.ObjectType> |
getTypes() |
String |
getVendor()
Returns the name of the extension's vendor
This name is used to:
Represent the extension's vendor
Differentiate different extensions with the same name, to give the possibility of having two connectors
with the same name, for example, one made by MuleSoft and the second one by a third party
|
String |
getVersion()
Returns this extension's version.
|
findModel, getConnectionProviderModel, getConnectionProviders, getOperationModel, getOperationModels, getSourceModel, getSourceModels, toList, uniquecheckArgument, equals, getName, hashCode, toStringgetDescription, getModelProperties, getModelPropertyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetConnectionProviders, getName, getOperationModels, getSourceModelsgetDescriptiongetModelProperties, getModelPropertygetOperationModelgetSourceModelgetConnectionProviderModelpublic ImmutableExtensionModel(String name, String description, String version, String vendor, Category category, org.mule.runtime.api.MuleVersion minMuleVersion, List<ConfigurationModel> configurationModels, List<OperationModel> operationModels, List<ConnectionProviderModel> connectionProviders, List<SourceModel> sourceModels, Set<org.mule.metadata.api.model.ObjectType> types, Set<ModelProperty> modelProperties)
name - the extension's name. Cannot be blankdescription - the extension's descriptionversion - the extension's versionvendor - the extension's vendor namecategory - the extension's CategoryminMuleVersion - the extension's minimum MuleVersionconfigurationModels - a List with the extension's configurationModelsoperationModels - a List with the extension's operationModelsconnectionProviders - a List with the extension's connection provider modelssourceModels - a List with the extension's message source modelstypes - a Set with the custom types defined by this extensionmodelProperties - A Set of custom properties which extend this modelIllegalArgumentException - if configurations or ParameterModel are null or contain instances with non unique names, or if name is blankpublic List<ConfigurationModel> getConfigurationModels()
configurationModels
available for this extension. Each configuration is guaranteed to have a unique name.
The first configuration is the preferred (default) one, the rest of the configurations are ordered alphabetically.
If the ExtensionModel contains any OperationModel, then at least one ConfigurationModel
is required. However, the existence of one or more ConfigurationModel doesn't require the presence of
any OperationModel.
getConfigurationModels in interface ExtensionModelList with the available configurationModels.public Optional<ConfigurationModel> getConfigurationModel(String name)
ConfigurationModel
that matches the given name.getConfigurationModel in interface ExtensionModelname - case sensitive configuration nameOptional ConfigurationModelpublic String getVersion()
The extension version is specified as a Semantic Versioning.
Note that while an extension implements a specific version, nothing prevents several versions of the same extension to coexists at runtime.
getVersion in interface ExtensionModelpublic String getVendor()
getVendor in interface ExtensionModelpublic Category getCategory()
Category that identifies the extension.getCategory in interface ExtensionModelCategoryCategorypublic org.mule.runtime.api.MuleVersion getMinMuleVersion()
MuleVersion. This MuleVersion represents the minimum version of the
Mule Runtime that the extension requires to work correctly.getMinMuleVersion in interface ExtensionModelMuleVersion.public Set<org.mule.metadata.api.model.ObjectType> getTypes()
getTypes in interface ExtensionModelSet with all the object types defined by this extensionCopyright © 2016 MuleSoft, Inc.. All rights reserved.