Uses of Enum Class
com.winterhavenmc.library.messagebuilder.validation.Parameter
Packages that use Parameter
Package
Description
Provides a flexible, localized validation framework for use within the MessageBuilder library.
-
Uses of Parameter in com.winterhavenmc.library.messagebuilder.validation
Methods in com.winterhavenmc.library.messagebuilder.validation that return ParameterModifier and TypeMethodDescriptionLogging.parameter()
Returns the value of theparameter
record component.static Parameter
Returns the enum constant of this class with the specified name.static Parameter[]
Parameter.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.winterhavenmc.library.messagebuilder.validation with parameters of type ParameterModifier and TypeMethodDescriptionstatic String
Validator.formatMessage
(ErrorMessageKey errorMessageKey, Parameter parameter) Formats a localized error message using the specified key and parameter.static <T> Validator
<T> Validator.logging
(LogLevel level, ErrorMessageKey messageKey, Parameter parameter) Returns a handler that logs a validation warning or error using the specified log level, message key, and parameter.static <T> Validator
<T> Validator.throwing
(ErrorMessageKey messageKey, Parameter parameter) Returns a handler that throws aValidationException
using the given error message key and parameter.Constructors in com.winterhavenmc.library.messagebuilder.validation with parameters of type ParameterModifierConstructorDescriptionLogging
(LogLevel logLevel, ErrorMessageKey messageKey, Parameter parameter) Creates an instance of aLogging
record class.ValidationException
(ErrorMessageKey errorMessageKey, Parameter parameter) Constructs a newValidationException
with the specifiedErrorMessageKey
andParameter
describing the failed validation.