T
- the actual extending interface of this base interface.@PublicApi
public interface ArgumentDescriptor<T extends ArgumentDescriptor<?>>
ArgumentContainerDescriptor
.Modifier and Type | Method and Description |
---|---|
ArgumentContainerDescriptor |
and()
Describes addition of a new argument descriptor for the parent
ArgumentContainerDescriptor . |
T |
byId()
Describes if the configuration element is referenced by id in this argument.
|
T |
byKey()
Describes if the configuration element is referenced by key in this argument.
|
T |
byName()
Describes if the configuration element is referenced by name in this argument.
|
T |
ofType(ArgumentType argumentType)
Describes the type of a referenced configuration element in this argument.
|
T |
withLiteralValues(String... literalValues)
Describes the literal values of this argument that should be moved as-is.
|
T |
withPrefix(String prefix)
Describes that the configuration element is referenced by value with prefix.
|
T ofType(ArgumentType argumentType)
argumentType
- type of a referenced configuration element in this argument.T byId()
ArgumentType.USER
this method will behave in
the same way as byKey()
.T byName()
T byKey()
ArgumentType.PROJECT
and ArgumentType.USER
. For all other configuration elements this method will behave in the same
way as byId()
.T withPrefix(String prefix)
prefix
- the prefix of the valueT withLiteralValues(String... literalValues)
literalValues
- literal values of this argument.ArgumentContainerDescriptor and()
ArgumentContainerDescriptor
.ArgumentContainerDescriptor
instance.Copyright © 2022. All rights reserved.