Class ValidateManufacturerSaveDtoImpl

java.lang.Object
org.xbricks.inventories.inventory.validation.ValidateManufacturerSaveDtoImpl
All Implemented Interfaces:
jakarta.validation.ConstraintValidator<ValidateManufacturerSaveDto,ManufacturerSaveDto>

public class ValidateManufacturerSaveDtoImpl extends Object implements jakarta.validation.ConstraintValidator<ValidateManufacturerSaveDto,ManufacturerSaveDto>
  • Constructor Details

    • ValidateManufacturerSaveDtoImpl

      public ValidateManufacturerSaveDtoImpl()
  • Method Details

    • isValid

      public boolean isValid(ManufacturerSaveDto value, jakarta.validation.ConstraintValidatorContext context)
      Specified by:
      isValid in interface jakarta.validation.ConstraintValidator<ValidateManufacturerSaveDto,ManufacturerSaveDto>
    • isNameValid

      public boolean isNameValid(ManufacturerSaveDto 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.