Class PlaceholderContext.Builder
java.lang.Object
dev.ua.theroer.magicutils.placeholders.PlaceholderContext.Builder
- Enclosing class:
PlaceholderContext
Builder for
PlaceholderContext.-
Method Summary
Modifier and TypeMethodDescriptionargumentSeparator(@Nullable String argumentSeparator) Sets the argument separator for unqualified placeholders.Sets the audience for resolution.build()Builds the placeholder context.defaultNamespace(@Nullable String defaultNamespace) Sets the default namespace for unqualified placeholders.Adds inline placeholder values.Sets an owner key for local placeholder scope.
-
Method Details
-
audience
Sets the audience for resolution.- Parameters:
audience- audience to use- Returns:
- this builder
-
ownerKey
Sets an owner key for local placeholder scope.- Parameters:
ownerKey- owner key- Returns:
- this builder
-
defaultNamespace
Sets the default namespace for unqualified placeholders.- Parameters:
defaultNamespace- namespace id- Returns:
- this builder
-
argumentSeparator
Sets the argument separator for unqualified placeholders.- Parameters:
argumentSeparator- separator string (empty disables)- Returns:
- this builder
-
inline
Adds inline placeholder values.- Parameters:
inline- inline map- Returns:
- this builder
-
build
-