列挙 AnnotationRequirement
- すべての実装されたインタフェース:
Serializable
,Comparable<AnnotationRequirement>
,Constable
public enum AnnotationRequirement extends Enum<AnnotationRequirement>
The rule that manages the requirement of Envali annotation.
- 導入されたバージョン:
- 1.0.2
-
ネストされたクラスの概要
クラスから継承されたネストされたクラス/インタフェース java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
列挙型定数の概要
列挙定数 列挙型定数 説明 NESTED_ENTITY
The requirement for NestedEntityREQUIRE_END_WITH
The requirement for RequireEndWithREQUIRE_MATCH
The requirement for RequireMatchREQUIRE_NEGATIVE
The requirement for RequireNegativeREQUIRE_NON_BLANK
The requirement for RequireNonBlankREQUIRE_NON_EMPTY
The requirement for RequireNonEmptyREQUIRE_NON_NULL
The requirement for RequireNonNullREQUIRE_POSITIVE
The requirement for RequirePositiveREQUIRE_RANGE_FROM
The requirement for RequireRangeFromREQUIRE_RANGE_FROM_TO
The requirement for RequireRangeFromToREQUIRE_RANGE_TO
The requirement for RequireRangeToREQUIRE_START_WITH
The requirement for RequireStartWith -
メソッドの概要
修飾子とタイプ メソッド 説明 abstract void
requireSupportedDataType(@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.static AnnotationRequirement
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。static AnnotationRequirement[]
values()
この列挙型の定数を含む配列を宣言されている順序で 返します。クラスから継承されたメソッド java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
列挙型定数の詳細
-
REQUIRE_NON_NULL
The requirement for RequireNonNull -
REQUIRE_NON_BLANK
The requirement for RequireNonBlank -
REQUIRE_POSITIVE
The requirement for RequirePositive -
REQUIRE_NEGATIVE
The requirement for RequireNegative -
REQUIRE_RANGE_FROM
The requirement for RequireRangeFrom -
REQUIRE_RANGE_TO
The requirement for RequireRangeTo -
REQUIRE_RANGE_FROM_TO
The requirement for RequireRangeFromTo -
REQUIRE_START_WITH
The requirement for RequireStartWith -
REQUIRE_END_WITH
The requirement for RequireEndWith -
REQUIRE_NON_EMPTY
The requirement for RequireNonEmpty -
NESTED_ENTITY
The requirement for NestedEntity -
REQUIRE_MATCH
The requirement for RequireMatch
-
-
メソッドの詳細
-
values
この列挙型の定数を含む配列を宣言されている順序で 返します。- 戻り値:
- この列挙型の定数を含む、宣言されている順序での配列
-
valueOf
指定した名前を持つこの型の列挙型定数を返します。 文字列は、この型の列挙型定数を宣言するのに使用した識別子と正確に 一致している必要があります。(余分な空白文字を含めることは できません。)- パラメータ:
name
- 返される列挙型定数の名前。- 戻り値:
- 指定した名前の列挙型定数
- 例外:
IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合NullPointerException
- 引数がnullの場合
-
requireSupportedDataType
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
- Ifnull
is passed as an argumentUnsupportedOperationException
- If the data type of the annotated field is not supported
-