Interface ArgumentChoice

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean contains​(java.lang.Object val)
      Returns true iff val is valid choice according to this object's constraint.
      java.lang.String textualFormat()
      Return textual representation of this choice.
    • Method Detail

      • contains

        boolean contains​(java.lang.Object val)

        Returns true iff val is valid choice according to this object's constraint.

        If the objects derived from RuntimeException are thrown because of invalid input from command line, subclass must catch these exceptions and return false.

        Parameters:
        val - The attribute value.
        Returns:
        true or false.
      • textualFormat

        java.lang.String textualFormat()

        Return textual representation of this choice.

        This string will be used in help and error messages.

        Returns:
        The textual representation of this choice.