public final class OptionsGroup extends Object implements Serializable
"propertyName" to denote required property and
"!propertyName" to denote required absence of a property.| Constructor and Description |
|---|
OptionsGroup(String name)
Creates new named
OptionsGroup. |
OptionsGroup(String name,
Collection<String> options)
Creates new named
OptionsGroup with a set of option
definitions. |
| Modifier and Type | Method and Description |
|---|---|
void |
addOption(String option)
Adds a option definition to this group.
|
String |
getName()
The name of the group.
|
Set<String> |
getOptions()
The option definitions in this group.
|
OptionsGroup |
option(String option)
Adds a option definition to this group.
|
OptionsGroup |
options(String... options)
Adds a number of option definitions to this group.
|
static OptionsGroup |
withName(Enum<?> enumItem)
Creates new group with the specified name of the given
Enum name. |
static OptionsGroup |
withName(String name)
Creates new group with the specified name.
|
static OptionsGroup |
withNameAndOptions(String name,
String... options)
Creates new group with the specified name and option definitions.
|
public OptionsGroup(String name)
OptionsGroup.name - the name of the grouppublic OptionsGroup(String name, Collection<String> options)
OptionsGroup with a set of option
definitions.name - the name of the groupoptions - names of properties in the syntax mentioned in OptionsGrouppublic void addOption(String option)
"propertyName" to denote required property and
"!propertyName" to denote required absence of a property.option - definition.public Set<String> getOptions()
public OptionsGroup option(String option)
"propertyName" to denote required property and
"!propertyName" to denote required absence of a property.option - definition.public OptionsGroup options(String... options)
"propertyName" to denote required
property and "!propertyName" to denote required absence
of a property.options - options definitionpublic static OptionsGroup withName(String name)
name - the name of the grouppublic static OptionsGroup withName(Enum<?> enumItem)
Enum name.enumItem - the name of the groupEnum.name()public static OptionsGroup withNameAndOptions(String name, String... options)
name - the name of the groupoptions - options definitionApache Camel