クラス EnvaliContentHelper
java.lang.Object
org.thinkit.framework.envali.helper.EnvaliContentHelper
public final class EnvaliContentHelper extends Object
A helper class that provides access to Envali's content.
- 導入されたバージョン:
- 1.0.0
-
メソッドの概要
修飾子とタイプ メソッド 説明 boolean
equals(Object o)
String
get(EnvaliContentAttribute attribute)
Refer to the content file mapped to the entity object to be validated and get each expected value inMap
format to be used at validation.int
hashCode()
static EnvaliContentHelper
of(@NonNull ValidatableEntity entity, @NonNull Field field)
Returns the new instance ofEnvaliContentHelper
object.String
toString()
-
メソッドの詳細
-
of
public static EnvaliContentHelper of(@NonNull @NonNull ValidatableEntity entity, @NonNull @NonNull Field field)Returns the new instance ofEnvaliContentHelper
object.- パラメータ:
entity
- The validatable entityfield
- The field- 戻り値:
- The new instance of
EnvaliContentHelper
object - 例外:
NullPointerException
- Ifnull
is passed as an argument
-
get
Refer to the content file mapped to the entity object to be validated and get each expected value inMap
format to be used at validation.Because the content is cached on the first call to
get(EnvaliContentAttribute)
method, there is no performance degradation due to consecutive calls toget(EnvaliContentAttribute)
ethod.- パラメータ:
attribute
- TheEnvaliContentAttribute
element to be retrieved from the content- 戻り値:
- Envali's validation content
- 例外:
NullPointerException
- If noParameterMapping
annotation is attached to the entity to be validatedContentNotFoundException
- If the content file defined inParameterMapping
annotation was not foundUnsupportedOperationException
- If couldn't get Envali's content
-
toString
-
equals
-
hashCode
public int hashCode()
-