T
- the actual extending interface of this base interface.@PublicApi
public interface UserPreferenceDescriptor<T extends UserPreferenceDescriptor<?>>
UserPreferenceContainerDescriptor
.Modifier and Type | Method and Description |
---|---|
UserPreferenceContainerDescriptor |
and()
Describes addition of a new user preference descriptor for the parent
UserPreferenceContainerDescriptor . |
T |
byId()
Describes if the configuration element is referenced by id in this user preference.
|
T |
byKey()
Describes if the configuration element is referenced by key in this user preference.
|
T |
byName()
Describes if the configuration element is referenced by name in this user preference.
|
T |
ofType(UserPreferenceType userPreferenceType)
Describes the type of a referenced configuration element in this user preference.
|
T |
withLiteralValues(String... literalValues)
Describes the literal values of this user preference that should be moved as-is.
|
T |
withPrefix(String prefix)
Describes that the configuration element is referenced by value with prefix in this user preference.
|
T ofType(UserPreferenceType userPreferenceType)
userPreferenceType
- the type of a referenced configuration element in this user preference.T byId()
UserPreferenceType.USER
this method
will behave in the same way as byKey()
.T byName()
T byKey()
UserPreferenceType.PROJECT
and UserPreferenceType.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 user preference.UserPreferenceContainerDescriptor and()
UserPreferenceContainerDescriptor
.UserPreferenceContainerDescriptor
instance.Copyright © 2022. All rights reserved.