Class ContextInfoDefaultBuilder

java.lang.Object
church.i18n.processing.message.ContextInfoDefaultBuilder
All Implemented Interfaces:
NullableBuilder<ContextInfo>, ContextInfoBuilder

public class ContextInfoDefaultBuilder extends Object implements ContextInfoBuilder
  • Constructor Details

    • ContextInfoDefaultBuilder

      public ContextInfoDefaultBuilder(@NotNull @NotNull String name)
  • Method Details

    • build

      @Nullable public @Nullable ContextInfo build()
      Description copied from interface: NullableBuilder
      Build an object.
      Specified by:
      build in interface NullableBuilder<ContextInfo>
      Returns:
      Built object or null when nothing is built.
    • withContext

      @NotNull public @NotNull ContextInfoBuilder withContext(@Nullable @Nullable Serializable value, @Nullable @Nullable ValueType valueType)
      Description copied from interface: ContextInfoBuilder
      Add contextual information to builder.
      Specified by:
      withContext in interface ContextInfoBuilder
      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: ContextInfoBuilder
      Add contextual information to builder.
      Specified by:
      withContext in interface ContextInfoBuilder
      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)
      Description copied from interface: ContextInfoBuilder
      Add contextual information to builder.
      Specified by:
      withContext in interface ContextInfoBuilder
      Parameters:
      value - Contextual value.
      Returns:
      Instance of a builder.
    • withContext

      @NotNull public @NotNull ContextInfoBuilder withContext(@Nullable @Nullable ContextValue context)
      Description copied from interface: ContextInfoBuilder
      Add contextual information to builder.
      Specified by:
      withContext in interface ContextInfoBuilder
      Parameters:
      context - Contextual information.
      Returns:
      Instance of a builder.
    • withHelp

      @NotNull public @NotNull ContextInfoBuilder withHelp(@Nullable @Nullable ContextValue help)
      Description copied from interface: ContextInfoBuilder
      Add help information to builder.
      Specified by:
      withHelp in interface ContextInfoBuilder
      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: ContextInfoBuilder
      Add help information to builder.
      Specified by:
      withHelp in interface ContextInfoBuilder
      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: ContextInfoBuilder
      Add help information to builder.
      Specified by:
      withHelp in interface ContextInfoBuilder
      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)
      Description copied from interface: ContextInfoBuilder
      Add help information to builder.
      Specified by:
      withHelp in interface ContextInfoBuilder
      Parameters:
      help - Help information. E.g. regular expression matching correct string value.
      Returns:
      Instance of a builder.
    • withMessage

      @NotNull public @NotNull ContextInfoBuilder withMessage(@Nullable @Nullable I18nMessage message)
      Description copied from interface: ContextInfoBuilder
      Add human-readable message to contextual information.
      Specified by:
      withMessage in interface ContextInfoBuilder
      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: ContextInfoBuilder
      Add human-readable message to contextual information.
      Specified by:
      withMessage in interface ContextInfoBuilder
      Parameters:
      code - Code of a message from the resource bundle or free-text message.
      params - Parameters for MessageFormat if the message contains parameters.
      Returns:
      Instance of a builder.
    • withSecurityLevel

      @NotNull public @NotNull ContextInfoBuilder withSecurityLevel(@Nullable @Nullable SecurityLevel securityLevel)
      Description copied from interface: ContextInfoBuilder
      Specify security level of information in the security context.
      Specified by:
      withSecurityLevel in interface ContextInfoBuilder
      Parameters:
      securityLevel - The security level of context information.
      Returns:
      Instance of a builder.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable @Nullable Object o)
      Overrides:
      equals in class Object
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object