public interface ArgumentChoice
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object val)
Returns
true iff val is valid choice according to this
object's constraint. |
String |
textualFormat()
Return textual representation of this choice.
|
boolean contains(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
.
val
- The attribute value.true
or false
.String textualFormat()
Return textual representation of this choice.
This string will be used in help and error messages.
Copyright © 2012–2017. All rights reserved.