クラス ErrorContext<T extends Annotation>
java.lang.Object
org.thinkit.framework.envali.context.ErrorContext<T>
- すべての実装されたインタフェース:
Serializable
public final class ErrorContext<T extends Annotation> extends Object implements Serializable
The context that manages error details such as
ErrorType
and error
message.- 導入されたバージョン:
- 1.0.1
- 関連項目:
- 直列化された形式
-
メソッドの概要
修飾子とタイプ メソッド 説明 boolean
equals(Object o)
T
getAnnotation()
The envali anotationParameterConfig
getParameterConfig()
The parameter configurationValidationPattern
getValidationPattern()
The validation patternint
hashCode()
static <T extends Annotation>
ErrorContext<T>of(@NonNull ParameterConfig parameterConfig, T annotation, @NonNull ValidationPattern validationPattern)
Returns the new instance ofErrorContext
based on the data passed as argument.static <T extends Annotation>
ErrorContext<T>of(@NonNull ValidationPattern validationPattern)
Returns the new instance ofErrorContext
based on the data passed as argument.static <T extends Annotation>
ErrorContext<T>of(T annotation, @NonNull ValidationPattern validationPattern)
Returns the new instance ofErrorContext
based on the data passed as argument.String
toString()
-
メソッドの詳細
-
of
public static <T extends Annotation> ErrorContext<T> of(@NonNull @NonNull ParameterConfig parameterConfig, @NonNull T annotation, @NonNull @NonNull ValidationPattern validationPattern)Returns the new instance ofErrorContext
based on the data passed as argument.- 型パラメータ:
T
- The annotation type withAnnotation
class as a parent- パラメータ:
parameterConfig
- The parameter configuration based onParameterConfig
annotation
- The Envali supported annotationvalidationPattern
- The validation pattern based onValidationPattern
- 戻り値:
- The new instance of
ErrorContext
based on the data passed as argument - 例外:
NullPointerException
- Ifnull
is passed as an argument
-
of
public static <T extends Annotation> ErrorContext<T> of(@NonNull T annotation, @NonNull @NonNull ValidationPattern validationPattern)Returns the new instance ofErrorContext
based on the data passed as argument.- 型パラメータ:
T
- The annotation type withAnnotation
class as a parent- パラメータ:
annotation
- The envali annotationvalidationPattern
- The validation pattern based onValidationPattern
- 戻り値:
- The new instance of
ErrorContext
based on the data passed as argument - 例外:
NullPointerException
- Ifnull
is passed as an argument
-
of
public static <T extends Annotation> ErrorContext<T> of(@NonNull @NonNull ValidationPattern validationPattern)Returns the new instance ofErrorContext
based on the data passed as argument.- 型パラメータ:
T
- The annotation type withAnnotation
class as a parent- パラメータ:
validationPattern
- The validation pattern based onValidationPattern
- 戻り値:
- The new instance of
ErrorContext
based on the data passed as argument - 例外:
NullPointerException
- Ifnull
is passed as an argument
-
toString
-
equals
-
hashCode
public int hashCode() -
getParameterConfig
The parameter configuration -
getAnnotation
The envali anotation -
getValidationPattern
The validation pattern
-