Package org.mule.apikit.model.parameter
Interface Parameter
public interface Parameter
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.org.mule.metadata.api.model.MetadataTypebooleanisArray()default booleanDetermines whether the parameter uses exploded serialization.booleanisFacetArray(String facet) Deprecated.booleanDetermines if the parameter allows null values.booleanisRepeat()booleanbooleanisScalar()Deprecated.messageFromValues(Collection<?> values) surroundWithQuotesIfNeeded(String value) booleanbooleanvalidateArray(Collection<?> values)
-
Method Details
-
isRequired
boolean isRequired() -
getDefaultValue
Deprecated.Please usegetDefaultValues()instead- Returns:
- default value as string if any, otherwise null
-
getDefaultValues
- Returns:
- a list of default values. Empty list if no default was found.
- Since:
- 2.5.3
-
isRepeat
boolean isRepeat() -
isArray
boolean isArray() -
validate
-
validateArray
-
message
-
messageFromValues
-
getDisplayName
String getDisplayName() -
getDescription
String getDescription() -
getExample
String getExample() -
getExamples
-
getInstance
Object getInstance() -
getMetadata
org.mule.metadata.api.model.MetadataType getMetadata() -
isScalar
Deprecated. -
isFacetArray
Deprecated. -
surroundWithQuotesIfNeeded
-
getFileProperties
Optional<FileProperties> getFileProperties() -
isNullable
boolean isNullable()Determines if the parameter allows null values.- Since:
- 2.4.0
-
getMaxItems
-
getMinItems
-
isExplode
default boolean isExplode()Determines whether the parameter uses exploded serialization. When false and the parameter is an array, values are comma-separated in a single entry (e.g.,?types=INVOICE,CREDIT_NOTE) and must be split before validation.- Returns:
- true if explode is enabled (default per OAS 3.0 for style=form), false otherwise
- Since:
- 3.0.0
-
getDefaultValues()instead