public class FieldError extends ObjectError
FieldError
用のメッセージコードリストの作成方法の詳細については、DefaultMessageCodesResolver
javadoc を参照してください。
DefaultMessageCodesResolver
, 直列化された形式 コンストラクターと説明 |
---|
FieldError(StringSE objectName, StringSE field, ObjectSE rejectedValue, boolean bindingFailure, StringSE[] codes, ObjectSE[] arguments, StringSE defaultMessage) 新しい FieldError インスタンスを作成します。 |
FieldError(StringSE objectName, StringSE field, StringSE defaultMessage) 新しい FieldError インスタンスを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
boolean | equals(ObjectSE other) |
StringSE | getField() オブジェクトの影響を受けるフィールドを返します。 |
ObjectSE | getRejectedValue() 拒否されたフィールド値を返します。 |
int | hashCode() |
boolean | isBindingFailure() このエラーがバインディングの失敗(型の不一致など)を表しているかどうかを返します。それ以外の場合は、検証の失敗です。 |
StringSE | toString() デフォルトの実装は、この MessageSourceResolvable の属性を公開します。 |
contains, getObjectName, unwrap, wrap
getArguments, getCode, getCodes, getDefaultMessage, resolvableToString, shouldRenderDefaultMessage
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public FieldError(StringSE objectName, StringSE field, StringSE defaultMessage)
objectName
- 影響を受けるオブジェクトの名前 field
- オブジェクトの影響を受けるフィールド defaultMessage
- このメッセージを解決するために使用されるデフォルトのメッセージ public FieldError(StringSE objectName, StringSE field, @Nullable ObjectSE rejectedValue, boolean bindingFailure, @Nullable StringSE[] codes, @Nullable ObjectSE[] arguments, @Nullable StringSE defaultMessage)
objectName
- 影響を受けるオブジェクトの名前 field
- オブジェクトの影響を受けるフィールド rejectedValue
- 拒否されたフィールド値 bindingFailure
- このエラーがバインディングの失敗(型の不一致など)を表すかどうか。それ以外の場合、検証の失敗です codes
- このメッセージを解決するために使用されるコード arguments
- このメッセージを解決するために使用される引数の配列 defaultMessage
- このメッセージを解決するために使用されるデフォルトのメッセージ public StringSE getField()
public boolean isBindingFailure()
public boolean equals(@Nullable ObjectSE other)
ObjectError
の equals
public int hashCode()
ObjectError
の hashCode
public StringSE toString()
DefaultMessageSourceResolvable
resolvableToString()
を介して解決可能なコンテンツを含む可能性のある、より具象サブクラスでオーバーライドされます。
ObjectError
の toString
DefaultMessageSourceResolvable.resolvableToString()