Class RangeValidation
java.lang.Object
org.iplass.mtp.entity.definition.ValidationDefinition
org.iplass.mtp.entity.definition.validations.RangeValidation
- All Implemented Interfaces:
Serializable
数値の範囲をチェックするValidation。
min、max、maxValueExcluded、minValueExcludedの指定により、範囲を定義。
その範囲外の場合、エラーとなる。
- See Also:
-
Constructor Summary
ConstructorDescriptionRangeValidation
(String max, boolean maxValueExcluded, String min, boolean minValueExcluded, String errorMessage) RangeValidation
(String max, boolean maxValueExcluded, String min, boolean minValueExcluded, String errorMessage, String errorCode) -
Method Summary
Modifier and TypeMethodDescriptiongetMax()
getMin()
boolean
boolean
void
void
setMaxValueExcluded
(boolean maxValueExcluded) void
void
setMinValueExcluded
(boolean minValueExcluded) 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
-
RangeValidation
public RangeValidation() -
RangeValidation
-
RangeValidation
-
-
Method Details
-
getMax
-
setMax
-
getMin
-
setMin
-
isMaxValueExcluded
public boolean isMaxValueExcluded() -
setMaxValueExcluded
public void setMaxValueExcluded(boolean maxValueExcluded) -
isMinValueExcluded
public boolean isMinValueExcluded() -
setMinValueExcluded
public void setMinValueExcluded(boolean minValueExcluded)
-