Class JavaClassValidation
java.lang.Object
org.iplass.mtp.entity.definition.ValidationDefinition
org.iplass.mtp.entity.definition.validations.JavaClassValidation
- All Implemented Interfaces:
Serializable
JavaのクラスによるValidation定義。
PropertyValidator
の実装クラスを指定します。
asArrayフラグがtrueにセットされる場合、検証対象が配列の場合、分解せず配列のままPropertyValidatorのvalueへ渡します。- See Also:
-
Constructor Summary
ConstructorDescriptionJavaClassValidation
(String className, String errorMessage) JavaClassValidation
(String className, String errorMessage, String errorCode) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setAsArray
(boolean asArray) void
setClassName
(String className) Methods inherited from class org.iplass.mtp.entity.definition.ValidationDefinition
addLocalizedErrorMessage, getDescription, getErrorCode, getErrorMessage, getLocalizedErrorMessageList, getMessageCategory, getMessageId, setDescription, setErrorCode, setErrorMessage, setLocalizedErrorMessageList, setMessageCategory, setMessageId
-
Constructor Details
-
JavaClassValidation
public JavaClassValidation() -
JavaClassValidation
-
JavaClassValidation
-
-
Method Details
-
isAsArray
public boolean isAsArray() -
setAsArray
public void setAsArray(boolean asArray) -
getClassName
-
setClassName
-