public class GroupBuilder extends Object
| Constructor and Description |
|---|
GroupBuilder()
Creates a new GroupBuilder
|
| Modifier and Type | Method and Description |
|---|---|
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
|
GroupBuilder |
withRequired(boolean newRequired)
Sets the required flag.
|
public GroupBuilder()
public GroupBuilder reset()
public GroupBuilder withDescription(String newDescription)
newDescription - the description to usepublic GroupBuilder withName(String newName)
newName - the name to usepublic GroupBuilder withMinimum(int newMinimum)
newMinimum - the minimum Options requiredpublic GroupBuilder withMaximum(int newMaximum)
newMaximum - the maximum Options allowedpublic GroupBuilder withOption(Option option)
option - the Option to addpublic GroupBuilder withRequired(boolean newRequired)
newRequired - the required flagCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.