public class MetadataTypeModelAdapter extends Object implements org.mule.runtime.api.meta.model.parameter.ParameterizedModel, MetadataTypeAdapter
| Modifier and Type | Method and Description |
|---|---|
static MetadataTypeModelAdapter |
createKeyValueWrapperTypeModelAdapter(String keyParamName,
org.mule.metadata.api.model.MetadataType simpleKeyType,
String valueParamName,
org.mule.metadata.api.model.MetadataType simpleValueType,
ExtensionModelHelper extensionModelHelper)
Adapts the provided types representing the key/values of a map for treatment as a
ParameterizedModel. |
static Optional<MetadataTypeModelAdapter> |
createMetadataTypeModelAdapterWithSterotype(org.mule.metadata.api.model.MetadataType type,
ExtensionModelHelper extensionModelHelper)
Adapts the provided
type for treatment as both a ParameterizedModel and HasStereotypeModel. |
static MetadataTypeModelAdapter |
createParameterizedTypeModelAdapter(org.mule.metadata.api.model.MetadataType type,
ExtensionModelHelper extensionModelHelper)
Adapts the provided
type for treatment as a ParameterizedModel. |
static MetadataTypeModelAdapter |
createSimpleWrapperTypeModelAdapter(org.mule.metadata.api.model.SimpleType simpleType,
ExtensionModelHelper extensionModelHelper)
Adapts the provided
singleType for treatment as a ParameterizedModel. |
String |
getDescription() |
String |
getName() |
List<org.mule.runtime.api.meta.model.parameter.ParameterGroupModel> |
getParameterGroupModels() |
org.mule.metadata.api.model.MetadataType |
getType() |
boolean |
isWrapperFor(org.mule.metadata.api.model.MetadataType type) |
String |
toString() |
public static Optional<MetadataTypeModelAdapter> createMetadataTypeModelAdapterWithSterotype(org.mule.metadata.api.model.MetadataType type, ExtensionModelHelper extensionModelHelper)
type for treatment as both a ParameterizedModel and HasStereotypeModel.type - the MetadataType to adapt.extensionModelHelper - used for actions relative to MetadataTypes.Optional.empty() if not.public static MetadataTypeModelAdapter createSimpleWrapperTypeModelAdapter(org.mule.metadata.api.model.SimpleType simpleType, ExtensionModelHelper extensionModelHelper)
singleType for treatment as a ParameterizedModel.
A new type is created around the provided simpleType to represent how it is represented in a DSL when it is nested in
an array.
simpleType - the MetadataType to adapt.extensionModelHelper - used for actions relative to MetadataTypes.public static MetadataTypeModelAdapter createKeyValueWrapperTypeModelAdapter(String keyParamName, org.mule.metadata.api.model.MetadataType simpleKeyType, String valueParamName, org.mule.metadata.api.model.MetadataType simpleValueType, ExtensionModelHelper extensionModelHelper)
ParameterizedModel.
A new type is created around the provided types with the given paramNames to represent how it is represented in a DSL when it is nested in a map.
keyParamName - the name of the attribute in the DSL containing the entry key.simpleKeyType - the MetadataType of the entry keyvalueParamName - the name of the attribute in the DSL containing the entry value.simpleValueType - the MetadataType of the entry valueextensionModelHelper - used for actions relative to MetadataTypes.public static MetadataTypeModelAdapter createParameterizedTypeModelAdapter(org.mule.metadata.api.model.MetadataType type, ExtensionModelHelper extensionModelHelper)
type for treatment as a ParameterizedModel.type - the MetadataType to adapt.extensionModelHelper - used for actions relative to MetadataTypes.public String getName()
getName in interface org.mule.runtime.api.meta.NamedObjectpublic String getDescription()
getDescription in interface org.mule.runtime.api.meta.DescribedObjectpublic List<org.mule.runtime.api.meta.model.parameter.ParameterGroupModel> getParameterGroupModels()
getParameterGroupModels in interface org.mule.runtime.api.meta.model.parameter.ParameterizedModelpublic org.mule.metadata.api.model.MetadataType getType()
getType in interface MetadataTypeAdapterMetadataType.public boolean isWrapperFor(org.mule.metadata.api.model.MetadataType type)
isWrapperFor in interface MetadataTypeAdaptertype - the MetadataType to checktrue if this adapter's wrapped type is the given typeCopyright © 2025 MuleSoft, Inc.. All rights reserved.