com.vaadin.data.validator.

Class BeanValidator.SimpleContext

  • All Implemented Interfaces:

    Serializable, javax.validation.MessageInterpolator.Context

    Enclosing class:

    BeanValidator


    protected static class BeanValidator.SimpleContext
    extends Object
    implements javax.validation.MessageInterpolator.Context, Serializable

    Simple implementation of a message interpolator context that returns fixed values.

    See Also:

    Serialized Form

    • Constructor Detail

      • SimpleContext

        public SimpleContext(Object value,
                             javax.validation.metadata.ConstraintDescriptor<?> descriptor)

        Create a simple immutable message interpolator context.

        Parameters:

        value - value being validated

        descriptor - ConstraintDescriptor corresponding to the constraint being validated

    • Method Detail

      • getConstraintDescriptor

        public javax.validation.metadata.ConstraintDescriptor<?> getConstraintDescriptor()

        Specified by:

        getConstraintDescriptor in interface javax.validation.MessageInterpolator.Context

      • getValidatedValue

        public Object getValidatedValue()

        Specified by:

        getValidatedValue in interface javax.validation.MessageInterpolator.Context