net.dpml.cli.builder
public class GroupBuilder extends Object
Version: @PROJECT-VERSION@
| Constructor Summary | |
|---|---|
| GroupBuilder()
Creates a new GroupBuilder | |
| Method Summary | |
|---|---|
| Group | create()
Creates a new Group instance |
| GroupBuilder | reset()
Resets the builder |
| GroupBuilder | withDescription(String newDescription)
Use this option description |
| GroupBuilder | withMaximum(int newMaximum)
A valid group requires at most this many options present |
| GroupBuilder | withMinimum(int newMinimum)
A valid group requires at least this many options present |
| GroupBuilder | withName(String newName)
Use this option name |
| GroupBuilder | withOption(Option option)
Add this option to the group |
Returns: the new Group instance
Returns: this builder
Parameters: newDescription the description to use
Returns: this builder
Parameters: newMaximum the maximum Options allowed
Returns: this builder
Parameters: newMinimum the minimum Options required
Returns: this builder
Parameters: newName the name to use
Returns: this builder
Parameters: option the Option to add
Returns: this builder