Annotation Type Isbn10Formated


  • @Documented
    @Constraint(validatedBy=Isbn10FormatedValidator.class)
    @Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER})
    @Retention(RUNTIME)
    @Size(min=13,
          max=13)
    public @interface Isbn10Formated
    The annotated element must be a valid International Standard Book Number in the short (10 digits) format.
    Supported types are Strings, other Objects are transfered to Strings, null elements are considered valid. Minus signs as separators must be set on the correct positions.
    There are format, size and checksum tests by apache commons validation routines.
    Author:
    Manfred Tremmel
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Class<?>[] groups
      groups to use.
      String message
      localized message.
      Class<? extends javax.validation.Payload>[] payload
      payload whatever.
    • Element Detail

      • message

        String message
        localized message.
        Returns:
        localized validation message
        Default:
        "{de.knightsoftnet.validators.shared.Isbn10Formated.message}"
      • groups

        Class<?>[] groups
        groups to use.
        Returns:
        array of validation groups
        Default:
        {}
      • payload

        Class<? extends javax.validation.Payload>[] payload
        payload whatever.
        Returns:
        payload class
        Default:
        {}