列挙 AnnotationRequirement

java.lang.Object
java.lang.Enum<AnnotationRequirement>
org.thinkit.framework.envali.rule.AnnotationRequirement
すべての実装されたインタフェース:
Serializable, Comparable<AnnotationRequirement>, Constable

public enum AnnotationRequirement
extends Enum<AnnotationRequirement>
The rule that manages the requirement of Envali annotation.
導入されたバージョン:
1.0.2
  • 列挙型定数の詳細

    • REQUIRE_NON_NULL

      public static final AnnotationRequirement REQUIRE_NON_NULL
      The requirement for RequireNonNull
    • REQUIRE_NON_BLANK

      public static final AnnotationRequirement REQUIRE_NON_BLANK
      The requirement for RequireNonBlank
    • REQUIRE_POSITIVE

      public static final AnnotationRequirement REQUIRE_POSITIVE
      The requirement for RequirePositive
    • REQUIRE_NEGATIVE

      public static final AnnotationRequirement REQUIRE_NEGATIVE
      The requirement for RequireNegative
    • REQUIRE_RANGE_FROM

      public static final AnnotationRequirement REQUIRE_RANGE_FROM
      The requirement for RequireRangeFrom
    • REQUIRE_RANGE_TO

      public static final AnnotationRequirement REQUIRE_RANGE_TO
      The requirement for RequireRangeTo
    • REQUIRE_RANGE_FROM_TO

      public static final AnnotationRequirement REQUIRE_RANGE_FROM_TO
      The requirement for RequireRangeFromTo
    • REQUIRE_START_WITH

      public static final AnnotationRequirement REQUIRE_START_WITH
      The requirement for RequireStartWith
    • REQUIRE_END_WITH

      public static final AnnotationRequirement REQUIRE_END_WITH
      The requirement for RequireEndWith
    • REQUIRE_NON_EMPTY

      public static final AnnotationRequirement REQUIRE_NON_EMPTY
      The requirement for RequireNonEmpty
    • NESTED_ENTITY

      public static final AnnotationRequirement NESTED_ENTITY
      The requirement for NestedEntity
    • REQUIRE_MATCH

      public static final AnnotationRequirement REQUIRE_MATCH
      The requirement for RequireMatch
  • メソッドの詳細

    • values

      public static AnnotationRequirement[] values()
      この列挙型の定数を含む配列を宣言されている順序で 返します。
      戻り値:
      この列挙型の定数を含む、宣言されている順序での配列
    • valueOf

      public static AnnotationRequirement valueOf​(String name)
      指定した名前を持つこの型の列挙型定数を返します。 文字列は、この型の列挙型定数を宣言するのに使用した識別子と正確に 一致している必要があります。(余分な空白文字を含めることは できません。)
      パラメータ:
      name - 返される列挙型定数の名前。
      戻り値:
      指定した名前の列挙型定数
      例外:
      IllegalArgumentException - この列挙型に、指定した名前の定数がない場合
      NullPointerException - 引数がnullの場合
    • requireSupportedDataType

      public abstract void requireSupportedDataType​(@NonNull @NonNull EnvaliFieldHelper field)
      Tests if the data type of the annotated field to be validated is the data type supported by the specified Envali annotation.
      パラメータ:
      field - The field to be validated
      例外:
      NullPointerException - If null is passed as an argument
      UnsupportedOperationException - If the data type of the annotated field is not supported