Packages

class Builder extends AnyRef

Simple utility to build a non-default jakarta.validation.ConstraintViolation from a jakarta.validation.ConstraintValidatorContext.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Builder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addConstraintViolation(context: ConstraintValidatorContext): Unit

    Replaces the default constraint violation report with one built via this method using the given TwitterConstraintValidatorContext.

    Replaces the default constraint violation report with one built via this method using the given TwitterConstraintValidatorContext.

    context

    the TwitterConstraintValidatorContext to use in building a jakarta.validation.ConstraintViolation

    Annotations
    @throws(scala.this.throws.<init>$default$1[jakarta.validation.ValidationException])
    Exceptions thrown

    ValidationException - if the given TwitterConstraintValidatorContext cannot be unwrapped as expected.

  5. def addExpressionVariable(name: String, value: AnyRef): Builder

    Allows setting of an additional expression variable which will be available as an EL variable during interpolation.

    Allows setting of an additional expression variable which will be available as an EL variable during interpolation. The variable will be available for interpolation for all constraint violations generated for this constraint. This includes the default one as well as all violations created by this TwitterConstraintValidatorContext. To create multiple constraint violations with different variable values, this method can be called between successive calls to TwitterConstraintValidatorContext#addConstraintViolation.

    name

    the name under which to bind the expression variable, cannot be null.

    value

    the value to be bound to the specified name

    returns

    a TwitterConstraintValidatorContext.Builder to allow for method chaining.

  6. def addMessageParameter(name: String, value: AnyRef): Builder

    Allows setting of an additional named parameter which can be interpolated in the constraint violation message.

    Allows setting of an additional named parameter which can be interpolated in the constraint violation message. The variable will be available for interpolation for all constraint violations generated for this constraint. This includes the default one as well as all violations created by this TwitterConstraintValidatorContext. To create multiple constraint violations with different variable values, this method can be called between successive calls to TwitterConstraintValidatorContext#addConstraintViolation.

    name

    the name under which to bind the parameter, cannot be null.

    value

    the value to be bound to the specified name

    returns

    a TwitterConstraintValidatorContext.Builder to allow for method chaining.

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. def withDynamicPayload(payload: Payload): Builder

    Allows to set an object that may further describe the violation.

    Allows to set an object that may further describe the violation. The user is responsible to ensure that this payload is serializable in case the jakarta.validation.ConstraintViolation has to be serialized.

    payload

    payload an object representing additional information about the violation

    returns

    a TwitterConstraintValidatorContext.Builder to allow for method chaining.

  24. def withMessageTemplate(messageTemplate: String): Builder

    Specify a new un-interpolated constraint message.

    Specify a new un-interpolated constraint message.

    messageTemplate

    an un-interpolated constraint message.

    returns

    a TwitterConstraintValidatorContext.Builder to allow for method chaining.

Inherited from AnyRef

Inherited from Any

Ungrouped