Class OptionsGroup
java.lang.Object
org.apache.camel.component.extension.verifier.OptionsGroup
- All Implemented Interfaces:
Serializable
A named group of options. A group of options requires that a set of component parameters is given as a whole.
The option syntax can be
"propertyName"
to denote required property and
"!propertyName"
to denote required absence of a property.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOptionsGroup
(String name) Creates new namedOptionsGroup
.OptionsGroup
(String name, Collection<String> options) Creates new namedOptionsGroup
with a set of option definitions. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a option definition to this group.getName()
The name of the group.The option definitions in this group.Adds a option definition to this group.Adds a number of option definitions to this group.static OptionsGroup
Creates new group with the specified name of the givenEnum
name.static OptionsGroup
Creates new group with the specified name.static OptionsGroup
withNameAndOptions
(String name, String... options) Creates new group with the specified name and option definitions.
-
Constructor Details
-
OptionsGroup
Creates new namedOptionsGroup
.- Parameters:
name
- the name of the group
-
OptionsGroup
Creates new namedOptionsGroup
with a set of option definitions.- Parameters:
name
- the name of the groupoptions
- names of properties in the syntax mentioned inOptionsGroup
-
-
Method Details
-
addOption
Adds a option definition to this group. The option syntax can be"propertyName"
to denote required property and"!propertyName"
to denote required absence of a property.- Parameters:
option
- definition.
-
getName
The name of the group. -
getOptions
The option definitions in this group. -
option
Adds a option definition to this group. The option syntax can be"propertyName"
to denote required property and"!propertyName"
to denote required absence of a property.- Parameters:
option
- definition.
-
options
Adds a number of option definitions to this group. The option syntax can be"propertyName"
to denote required property and"!propertyName"
to denote required absence of a property.- Parameters:
options
- options definition
-
withName
Creates new group with the specified name.- Parameters:
name
- the name of the group
-
withName
Creates new group with the specified name of the givenEnum
name.- Parameters:
enumItem
- the name of the group- See Also:
-
withNameAndOptions
Creates new group with the specified name and option definitions.- Parameters:
name
- the name of the groupoptions
- options definition
-