|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dpml.cli.builder.GroupBuilder
public class GroupBuilder
Builds Group instances.
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroupBuilder()
| Method Detail |
|---|
public Group create()
public GroupBuilder reset()
public GroupBuilder withDescription(String newDescription)
newDescription - the description to use
public GroupBuilder withName(String newName)
newName - the name to use
public GroupBuilder withMinimum(int newMinimum)
newMinimum - the minimum Options required
public GroupBuilder withMaximum(int newMaximum)
newMaximum - the maximum Options allowed
public GroupBuilder withOption(Option option)
option - the Option to add
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||