public static class CommandLine.Model.UnmatchedArgsBinding extends Object
ISetter that consumes the unmatched arguments String[], or with a
IGetter that produces a Collection<String> that the unmatched arguments can be added to.| Modifier and Type | Method and Description |
|---|---|
static CommandLine.Model.UnmatchedArgsBinding |
forStringArrayConsumer(CommandLine.Model.ISetter setter)
Creates a
UnmatchedArgsBinding for a setter that consumes String[] objects. |
static CommandLine.Model.UnmatchedArgsBinding |
forStringCollectionSupplier(CommandLine.Model.IGetter getter)
Creates a
UnmatchedArgsBinding for a getter that produces a Collection<String> that the unmatched arguments can be added to. |
CommandLine.Model.IGetter |
getter()
Returns the getter responsible for producing a
Collection that the unmatched arguments can be added to. |
CommandLine.Model.ISetter |
setter()
Returns the setter responsible for consuming the unmatched arguments.
|
public static CommandLine.Model.UnmatchedArgsBinding forStringArrayConsumer(CommandLine.Model.ISetter setter)
UnmatchedArgsBinding for a setter that consumes String[] objects.setter - consumes the String[] array with unmatched arguments.public static CommandLine.Model.UnmatchedArgsBinding forStringCollectionSupplier(CommandLine.Model.IGetter getter)
UnmatchedArgsBinding for a getter that produces a Collection<String> that the unmatched arguments can be added to.getter - supplies a Collection<String> that the unmatched arguments can be added to.public CommandLine.Model.IGetter getter()
Collection that the unmatched arguments can be added to.public CommandLine.Model.ISetter setter()