パッケージ jakarta.validation
インターフェース MessageInterpolator.Context
- 含まれているインターフェース:
- MessageInterpolator
public static interface MessageInterpolator.Context
補間コンテキストに関連する情報。
方法の概要
修飾子と型メソッド説明<T> Tプロバイダー固有の API へのアクセスを許可する、指定された型のインスタンスを返します。
メソッドの詳細
getConstraintDescriptor
ConstraintDescriptor<?> getConstraintDescriptor()- 戻り値:
- 検証される制約に対応する
ConstraintDescriptor
getValidatedValue
ObjectSE getValidatedValue()- 戻り値:
- 検証される値
unwrap
プロバイダー固有の API へのアクセスを許可する、指定された型のインスタンスを返します。Jakarta Validation プロバイダーの実装が指定されたクラスをサポートしない場合、ValidationExceptionがスローされます。- 型パラメーター:
T- 返されるオブジェクトの型- パラメーター:
type- 返されるオブジェクトのクラス- 戻り値:
- 指定されたクラスのインスタンス
- 例外:
ValidationException- プロバイダーが呼び出しをサポートしていない場合- 導入:
- 1.1