Annotation Type Phone

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean allowsSpaces
      Returns true if phone number can contain space characters.
      boolean off
      Allows disabling the validation rule if this rule is inherited from super class.
      boolean withoutPlus
      Returns true if phone number must not start with plus character.
    • Element Detail

      • off

        boolean off
        Allows disabling the validation rule if this rule is inherited from super class.

        By default, disable is off.

        Returns:
        true if the validation must be disabled.
        Default:
        false
      • withoutPlus

        boolean withoutPlus
        Returns true if phone number must not start with plus character.
        Returns:
        true if phone number must not start with plus character
        Default:
        true
      • allowsSpaces

        boolean allowsSpaces
        Returns true if phone number can contain space characters.
        Returns:
        true if phone number can contain space characters
        Default:
        false