javax.validation

## Interface MessageInterpolator.Context

- Enclosing interface:
    MessageInterpolator

      public static interface MessageInterpolator.Context

  Information related to the interpolation context.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ConstraintDescriptor<?>` | `getConstraintDescriptor()`
    `Object` | `getValidatedValue()`
    `<T> T` | `unwrap(Class<T> type)` Returns an instance of the specified type allowing access to provider-specific APIs.

- - ### Method Detail

    - #### getConstraintDescriptor

          ConstraintDescriptor<?> getConstraintDescriptor()

      Returns:
        `ConstraintDescriptor` corresponding to the constraint being validated

    - #### getValidatedValue

          Object getValidatedValue()

      Returns:
        value being validated

    - #### unwrap

          <T> T unwrap(Class<T> type)

      Returns an instance of the specified type allowing access to provider-specific APIs. If the Bean Validation provider implementation does not support the specified class, `ValidationException` is thrown.
      Parameters:
        `type` - the class of the object to be returned
      Returns:
        an instance of the specified class
      Throws:
        `ValidationException` - if the provider does not support the call
      Since:
        1.1

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.