Class ValidateInventoryItemStatusSaveDtoImpl
java.lang.Object
org.xbricks.inventories.inventory.validation.ValidateInventoryItemStatusSaveDtoImpl
- All Implemented Interfaces:
jakarta.validation.ConstraintValidator<ValidateInventoryItemStatusSaveDto,
InventoryItemStatusSaveDto>
public class ValidateInventoryItemStatusSaveDtoImpl
extends Object
implements jakarta.validation.ConstraintValidator<ValidateInventoryItemStatusSaveDto,InventoryItemStatusSaveDto>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isNameValid
(InventoryItemStatusSaveDto value, jakarta.validation.ConstraintValidatorContext context) Prüft, ob das Element einen Namen hat, der unter den Geschwisterelementen eindeutig ist.boolean
isValid
(InventoryItemStatusSaveDto value, jakarta.validation.ConstraintValidatorContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.validation.ConstraintValidator
initialize
-
Constructor Details
-
ValidateInventoryItemStatusSaveDtoImpl
public ValidateInventoryItemStatusSaveDtoImpl()
-
-
Method Details
-
isValid
public boolean isValid(InventoryItemStatusSaveDto value, jakarta.validation.ConstraintValidatorContext context) - Specified by:
isValid
in interfacejakarta.validation.ConstraintValidator<ValidateInventoryItemStatusSaveDto,
InventoryItemStatusSaveDto>
-
isNameValid
public boolean isNameValid(InventoryItemStatusSaveDto value, jakarta.validation.ConstraintValidatorContext context) Prüft, ob das Element einen Namen hat, der unter den Geschwisterelementen eindeutig ist.- Parameters:
value
- Das zu prüfende Element.- Returns:
- True oder False.
-