Class ValidateOwnerSaveDtoImpl

java.lang.Object
org.xbricks.inventories.inventory.validation.ValidateOwnerSaveDtoImpl
All Implemented Interfaces:
jakarta.validation.ConstraintValidator<ValidateOwnerSaveDto,OwnerSaveDto>

public class ValidateOwnerSaveDtoImpl extends Object implements jakarta.validation.ConstraintValidator<ValidateOwnerSaveDto,OwnerSaveDto>
  • Constructor Details

    • ValidateOwnerSaveDtoImpl

      public ValidateOwnerSaveDtoImpl()
  • Method Details

    • isValid

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

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