Annotation Interface PropertyValidator


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface PropertyValidator
  • Element Details

    • bypass

      boolean bypass
      The validator will not interfere if bypass is true
      Default:
      false
    • ignoreOnFailure

      boolean ignoreOnFailure
      Tells the validator to simply ignore the property on failure. Default is to throw a validation failed exception
      Default:
      false
    • type

      Class<?> type
      The expected Supertype
      Default:
      java.lang.Object.class
    • string

      The expected property is a string
      Default:
      @net.datenwerke.dtoservices.dtogenerator.annotations.StringValidator(bypass=true)
    • number

      The expected property is a number.
      Default:
      @net.datenwerke.dtoservices.dtogenerator.annotations.NumberValidator(bypass=true)
    • validators

      Class<? extends DtoPropertyValidator>[] validators
      Returns an array containing validators for a specific property
      Default:
      {}