Record Class UiError
java.lang.Object
java.lang.Record
io.vertigo.vega.webservice.validation.UiError
- Record Components:
dtObject- MessagedtField- Object portant le messageerrorMessage- Champs portant le message
public record UiError(DtObject dtObject, DtField dtField, io.vertigo.core.locale.LocaleMessageText errorMessage)
extends Record
Message d'IHM.
- Author:
- npiedeloup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UiErrorBuilderbuilder()Static method factory for UiErrorBuilderdtField()Returns the value of thedtFieldrecord component.dtObject()Returns the value of thedtObjectrecord component.final booleanIndicates whether some other object is "equal to" this one.io.vertigo.core.locale.LocaleMessageTextReturns the value of theerrorMessagerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UiError
public UiError(DtObject dtObject, DtField dtField, io.vertigo.core.locale.LocaleMessageText errorMessage) Creates an instance of aUiErrorrecord class.- Parameters:
dtObject- the value for thedtObjectrecord componentdtField- the value for thedtFieldrecord componenterrorMessage- the value for theerrorMessagerecord component
-
-
Method Details
-
builder
Static method factory for UiErrorBuilder- Returns:
- UiErrorBuilder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
dtObject
Returns the value of thedtObjectrecord component.- Returns:
- the value of the
dtObjectrecord component
-
dtField
Returns the value of thedtFieldrecord component.- Returns:
- the value of the
dtFieldrecord component
-
errorMessage
public io.vertigo.core.locale.LocaleMessageText errorMessage()Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-