Interface Parameter


public interface Parameter
  • Method Details

    • isRequired

      boolean isRequired()
    • getDefaultValue

      @Deprecated String getDefaultValue()
      Deprecated.
      Please use getDefaultValues() instead
      Returns:
      default value as string if any, otherwise null
    • getDefaultValues

      List<String> 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

      boolean validate(String value)
    • validateArray

      boolean validateArray(Collection<?> values)
    • message

      String message(String value)
    • messageFromValues

      String messageFromValues(Collection<?> values)
    • getDisplayName

      String getDisplayName()
    • getDescription

      String getDescription()
    • getExample

      String getExample()
    • getExamples

      Map<String,String> getExamples()
    • getInstance

      Object getInstance()
    • getMetadata

      org.mule.metadata.api.model.MetadataType getMetadata()
    • isScalar

      @Deprecated boolean isScalar()
      Deprecated.
    • isFacetArray

      @Deprecated boolean isFacetArray(String facet)
      Deprecated.
    • surroundWithQuotesIfNeeded

      String surroundWithQuotesIfNeeded(String value)
    • getFileProperties

      Optional<FileProperties> getFileProperties()
    • isNullable

      boolean isNullable()
      Determines if the parameter allows null values.
      Since:
      2.4.0
    • getMaxItems

      default Optional<Integer> getMaxItems()
    • getMinItems

      default Optional<Integer> 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