Class BeanValidator.SimpleContext

  • All Implemented Interfaces:
    Serializable, javax.validation.MessageInterpolator.Context
    Enclosing class:
    BeanValidator

    @Deprecated
    protected static class BeanValidator.SimpleContext
    extends Object
    implements javax.validation.MessageInterpolator.Context, Serializable
    Deprecated.
    Simple implementation of a message interpolator context that returns fixed values.
    See Also:
    Serialized Form
    • Constructor Detail

      • SimpleContext

        public SimpleContext​(Object value,
                             javax.validation.ConstraintViolation<?> violation)
        Deprecated.
        Create a simple immutable message interpolator context.
        Parameters:
        value - value being validated
        violation - ConstraintViolation corresponding to the constraint being validated
      • SimpleContext

        public SimpleContext​(Object value,
                             javax.validation.metadata.ConstraintDescriptor<?> descriptor)
        Deprecated.
    • Method Detail

      • getConstraintDescriptor

        public javax.validation.metadata.ConstraintDescriptor<?> getConstraintDescriptor()
        Deprecated.
        Specified by:
        getConstraintDescriptor in interface javax.validation.MessageInterpolator.Context
      • getValidatedValue

        public Object getValidatedValue()
        Deprecated.
        Specified by:
        getValidatedValue in interface javax.validation.MessageInterpolator.Context
      • unwrap

        public <T> T unwrap​(Class<T> type)
        Deprecated.
        Specified by:
        unwrap in interface javax.validation.MessageInterpolator.Context