T - 制約のアノテーション型 public interface ConstraintDescriptor<T extends AnnotationSE>| 修飾子と型 | メソッドと説明 |
|---|---|
T | getAnnotation() 制約宣言を説明するアノテーションを返します。 |
MapSE<StringSE, ObjectSE> | getAttributes() キーとしてアノテーション属性名を含み、値としてアノテーション属性値を含むマップを返します。 |
SetSE<ConstraintDescriptor<?>> | getComposingConstraints() 各記述子が構成制約を記述している構成 ConstraintDescriptor のセットを返します。 |
ListSE<ClassSE<? extends ConstraintValidator<T,?>>> | getConstraintValidatorClasses() 制約検証実装クラスのリスト。 |
SetSE<ClassSE<?>> | getGroups() 制約が適用されるグループのセット。 |
StringSE | getMessageTemplate() 補間されていないエラーメッセージ |
SetSE<ClassSE<? extends Payload>> | getPayload() 制約がホストするペイロードのセット。 |
ConstraintTarget | getValidationAppliesTo() |
ValidateUnwrappedValue | getValueUnwrapping() |
boolean | isReportAsSingleViolation() |
<U> U | unwrap(ClassSE<U> type) プロバイダー固有の API へのアクセスを許可する、指定された型のインスタンスを返します。 |
T getAnnotation()
StringSE getMessageTemplate()
SetSE<ClassSE<?>> getGroups()
Default グループのみのセットが返されます。SetSE<ClassSE<? extends Payload>> getPayload()
ConstraintTarget getValidationAppliesTo()
ConstraintTarget 値または nullListSE<ClassSE<? extends ConstraintValidator<T,?>>> getConstraintValidatorClasses()
MapSE<StringSE,ObjectSE> getAttributes()
この制約が構成された制約の一部として使用される場合、属性値は構成された制約のオーバーライドされた属性を反映しています。
SetSE<ConstraintDescriptor<?>> getComposingConstraints()
ConstraintDescriptor のセットを返します。構成する制約の ConstraintDescriptor インスタンスは、getAttributes() および getAnnotation() でオーバーライドされた属性値を反映します。ConstraintDescriptor オブジェクトのセット、または構成する制約がない場合は空のセット boolean isReportAsSingleViolation()
true (制約に ReportAsSingleViolation でアノテーションが付けられている場合)ValidateUnwrappedValue getValueUnwrapping()
Unwrapping 制約ペイロードを介して指定されたアンラップ動作を説明する ValidateUnwrappedValue<U> U unwrap(ClassSE<U> type)
Jakarta Bean Validation プロバイダーの実装が指定されたクラスをサポートしない場合、ValidationException がスローされます。
U - 返されるオブジェクトの型 type - 返されるオブジェクトのクラス ValidationException - プロバイダーが呼び出しをサポートしていない場合 Copyright © 2019 Eclipse Foundation.
Use is subject to license terms.