Interface DslArg

    • Method Detail

      • getName

        java.lang.String getName()
        Get the name of this argument.
        Returns:
        the argument name.
      • isRequired

        boolean isRequired()
        Determine if a value is required for this argument.
        Returns:
        true if and only if this argument is required.
      • getDefaultValue

        java.lang.String getDefaultValue()
        Get a default value for this argument.

        If the argument is required, this method will throw an IllegalArgumentException.

        Returns:
        the default value for the argument
      • isAllowMultipleValues

        boolean isAllowMultipleValues()
        Check whether this argument can take multiple values.
        Returns:
        true if and only if the argument takes multiple values.
      • getMultipleValueSeparator

        java.lang.String getMultipleValueSeparator()
        Get the separator that can be used to separate multiple values.
        Returns:
        the separator for splitting multiple values.
      • getAllowedValues

        java.lang.String[] getAllowedValues()
        Get the specific values that this argument will accept.
        Returns:
        the values allowed by this argument, or null if all values are allowed