Package church.i18n.processing.message
Class ContextInfoDefaultBuilder
java.lang.Object
church.i18n.processing.message.ContextInfoDefaultBuilder
- All Implemented Interfaces:
NullableBuilder<ContextInfo>,ContextInfoBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable ContextInfobuild()Build an object.booleaninthashCode()@NotNull StringtoString()@NotNull ContextInfoBuilderwithContext(@Nullable ContextValue context) Add contextual information to builder.@NotNull ContextInfoBuilderwithContext(@Nullable Serializable value) Add contextual information to builder.@NotNull ContextInfoBuilderwithContext(@Nullable Serializable value, @Nullable ValueType valueType) Add contextual information to builder.@NotNull ContextInfoBuilderwithContext(@Nullable Serializable value, @Nullable String valueType) Add contextual information to builder.@NotNull ContextInfoBuilderwithHelp(@Nullable ContextValue help) Add help information to builder.@NotNull ContextInfoBuilderwithHelp(@Nullable Serializable help) Add help information to builder.@NotNull ContextInfoBuilderwithHelp(@Nullable Serializable help, @Nullable ValueType helpType) Add help information to builder.@NotNull ContextInfoBuilderwithHelp(@Nullable Serializable help, @Nullable String helpType) Add help information to builder.@NotNull ContextInfoBuilderwithMessage(@Nullable I18nMessage message) Add human-readable message to contextual information.@NotNull ContextInfoBuilderwithMessage(@Nullable String code, @Nullable Object... params) Add human-readable message to contextual information.@NotNull ContextInfoBuilderwithSecurityLevel(@Nullable SecurityLevel securityLevel) Specify security level of information in the security context.
-
Constructor Details
-
ContextInfoDefaultBuilder
-
-
Method Details
-
build
Description copied from interface:NullableBuilderBuild an object.- Specified by:
buildin interfaceNullableBuilder<ContextInfo>- Returns:
- Built object or
nullwhen nothing is built.
-
withContext
@NotNull public @NotNull ContextInfoBuilder withContext(@Nullable @Nullable Serializable value, @Nullable @Nullable ValueType valueType) Description copied from interface:ContextInfoBuilderAdd contextual information to builder.- Specified by:
withContextin interfaceContextInfoBuilder- Parameters:
value- Contextual value.valueType- The type of the contextual value. E.g. number.- Returns:
- Instance of a builder.
-
withContext
@NotNull public @NotNull ContextInfoBuilder withContext(@Nullable @Nullable Serializable value, @Nullable @Nullable String valueType) Description copied from interface:ContextInfoBuilderAdd contextual information to builder.- Specified by:
withContextin interfaceContextInfoBuilder- Parameters:
value- Contextual value.valueType- The type of the contextual value. E.g. number.- Returns:
- Instance of a builder.
-
withContext
Description copied from interface:ContextInfoBuilderAdd contextual information to builder.- Specified by:
withContextin interfaceContextInfoBuilder- Parameters:
value- Contextual value.- Returns:
- Instance of a builder.
-
withContext
Description copied from interface:ContextInfoBuilderAdd contextual information to builder.- Specified by:
withContextin interfaceContextInfoBuilder- Parameters:
context- Contextual information.- Returns:
- Instance of a builder.
-
withHelp
Description copied from interface:ContextInfoBuilderAdd help information to builder.- Specified by:
withHelpin interfaceContextInfoBuilder- Parameters:
help- Help information. E.g. regular expression matching correct string value.- Returns:
- Instance of a builder.
-
withHelp
@NotNull public @NotNull ContextInfoBuilder withHelp(@Nullable @Nullable Serializable help, @Nullable @Nullable ValueType helpType) Description copied from interface:ContextInfoBuilderAdd help information to builder.- Specified by:
withHelpin interfaceContextInfoBuilder- Parameters:
help- Help information. E.g. regular expression matching correct string value.helpType- The type of the contextual value. E.g. string.- Returns:
- Instance of a builder.
-
withHelp
@NotNull public @NotNull ContextInfoBuilder withHelp(@Nullable @Nullable Serializable help, @Nullable @Nullable String helpType) Description copied from interface:ContextInfoBuilderAdd help information to builder.- Specified by:
withHelpin interfaceContextInfoBuilder- Parameters:
help- Help information. E.g. regular expression matching correct string value.helpType- The type of the contextual value. E.g. string.- Returns:
- Instance of a builder.
-
withHelp
Description copied from interface:ContextInfoBuilderAdd help information to builder.- Specified by:
withHelpin interfaceContextInfoBuilder- Parameters:
help- Help information. E.g. regular expression matching correct string value.- Returns:
- Instance of a builder.
-
withMessage
Description copied from interface:ContextInfoBuilderAdd human-readable message to contextual information.- Specified by:
withMessagein interfaceContextInfoBuilder- Parameters:
message- Message describing problem.- Returns:
- Instance of a builder.
-
withMessage
@NotNull public @NotNull ContextInfoBuilder withMessage(@Nullable @Nullable String code, @Nullable @Nullable Object... params) Description copied from interface:ContextInfoBuilderAdd human-readable message to contextual information.- Specified by:
withMessagein interfaceContextInfoBuilder- Parameters:
code- Code of a message from the resource bundle or free-text message.params- Parameters forMessageFormatif the message contains parameters.- Returns:
- Instance of a builder.
-
withSecurityLevel
@NotNull public @NotNull ContextInfoBuilder withSecurityLevel(@Nullable @Nullable SecurityLevel securityLevel) Description copied from interface:ContextInfoBuilderSpecify security level of information in the security context.- Specified by:
withSecurityLevelin interfaceContextInfoBuilder- Parameters:
securityLevel- The security level of context information.- Returns:
- Instance of a builder.
-
hashCode
public int hashCode() -
equals
-
toString
-