Uses of Enum Class
com.winterhavenmc.library.messagebuilder.models.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.models.validation
Methods in com.winterhavenmc.library.messagebuilder.models.validation that return ParameterModifier and TypeMethodDescriptionLogging.parameter()Returns the value of theparameterrecord component.static ParameterReturns 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.models.validation with parameters of type ParameterModifier and TypeMethodDescriptionstatic StringValidator.formatMessage(ErrorMessageKey errorMessageKey, Parameter parameter) Formats a localized error message using the specified string 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 string, and parameter.static <T> Validator<T> Validator.throwing(ErrorMessageKey messageKey, Parameter parameter) Returns a handler that throws aValidationExceptionusing the given error message string and parameter.Constructors in com.winterhavenmc.library.messagebuilder.models.validation with parameters of type ParameterModifierConstructorDescriptionLogging(LogLevel logLevel, ErrorMessageKey messageKey, Parameter parameter) Creates an instance of aLoggingrecord class.ValidationException(ErrorMessageKey errorMessageKey, Parameter parameter) Constructs a newValidationExceptionwith the specifiedErrorMessageKeyandParameterdescribing the failed validation.