パッケージ jakarta.validation

インターフェース MessageInterpolator.Context

含まれているインターフェース:
MessageInterpolator

public static interface MessageInterpolator.Context
補間コンテキストに関連する情報。
  • メソッドの詳細

    • getConstraintDescriptor

      ConstraintDescriptor<?> getConstraintDescriptor()
      戻り値:
      検証される制約に対応する ConstraintDescriptor
    • getValidatedValue

      ObjectSE getValidatedValue()
      戻り値:
      検証される値
    • unwrap

      <T> T unwrap(ClassSE<T> type)
      プロバイダー固有の API へのアクセスを許可する、指定された型のインスタンスを返します。Jakarta Validation プロバイダーの実装が指定されたクラスをサポートしない場合、ValidationException がスローされます。
      型パラメーター:
      T - 返されるオブジェクトの型
      パラメーター:
      type - 返されるオブジェクトのクラス
      戻り値:
      指定されたクラスのインスタンス
      例外:
      ValidationException - プロバイダーが呼び出しをサポートしていない場合
      導入:
      1.1