Package io.github.mmm.validation.main
Class NlsBundleValidation
java.lang.Object
io.github.mmm.nls.NlsBundle
io.github.mmm.validation.main.NlsBundleValidation
- All Implemented Interfaces:
NlsArgumentsKeys
,NlsBundleDescriptor
NlsBundle
for this module.- Since:
- 1.0.0
-
Field Summary
FieldsFields inherited from interface io.github.mmm.nls.argument.NlsArgumentsKeys
KEY_ANNOTATION, KEY_ARGUMENT, KEY_CAPACITY, KEY_CONTAINER, KEY_DATE, KEY_DEFAULT, KEY_DIRECTORY, KEY_ERROR, KEY_EXISTING, KEY_EXPECTED, KEY_FILE, KEY_FORMAT, KEY_FUNCTION, KEY_ID, KEY_KEY, KEY_LOCATION, KEY_MAX, KEY_MIN, KEY_MODE, KEY_NAME, KEY_OBJECT, KEY_OPERATION, KEY_OPTION, KEY_PATH, KEY_PROPERTY, KEY_QUERY, KEY_RESOURCE, KEY_SIZE, KEY_SOURCE, KEY_TARGET_TYPE, KEY_TITLE, KEY_TYPE, KEY_URI, KEY_USER, KEY_VALUE
-
Method Summary
Modifier and TypeMethodDescriptionerrorLengthComparison
(Object value, Object operation, Object value2) errorLengthOutOfRange
(Object value, Object min, Object max) errorNoEmail
(Object value) errorNoHost
(Object value) errorNoHostName
(Object value) errorNoIpAddress
(Object value) errorNoPhoneNumber
(Object value) errorNoUrl
(Object value) errorValueComparison
(Object value, Object operation, Object value2) errorValueFormat
(Object value, Object format) errorValueNotAfter
(Object value, Object min) errorValueNotBefore
(Object value, Object max) errorValueNotInFuture
(Object value) errorValueNotInPast
(Object value) errorValueOutOfRange
(Object value, Object min, Object max) Methods inherited from class io.github.mmm.nls.NlsBundle
create, create, createBundleName, getBundleName
-
Field Details
-
INSTANCE
The singleton instance.
-
-
Method Details
-
errorValueFormat
- Parameters:
value
- is the value that does NOT match the expected format.format
- is the expected format.- Returns:
- the
NlsMessage
-
errorMandatory
- Returns:
- the
NlsMessage
.
-
errorPasswordMismatch
- Returns:
- the
NlsMessage
.
-
errorValueComparison
- Parameters:
value
- is the invalid value.operation
- is theCompareOperator
.value2
- is the value to compare to (second argument).- Returns:
- the
NlsMessage
- See Also:
-
errorValueNotInPast
- Parameters:
value
- is the invalid value.- Returns:
- the
NlsMessage
.
-
errorValueNotInFuture
- Parameters:
value
- is the invalid value.- Returns:
- the
NlsMessage
.
-
errorValueNotAfter
- Parameters:
value
- is the invalid value.min
- the boundary thatvalue
should be after.- Returns:
- the
NlsMessage
.
-
errorValueNotBefore
- Parameters:
value
- is the invalid value.max
- the lower bound.- Returns:
- the
NlsMessage
.
-
errorValueOutOfRange
- Parameters:
value
- is the invalid value.min
- is the minimum value.max
- is the maximum value.- Returns:
- the
NlsMessage
-
errorLengthOutOfRange
- Parameters:
value
- is the invalid value.min
- is the minimum length.max
- is the maximum length.- Returns:
- the
NlsMessage
-
errorLengthComparison
- Parameters:
value
- is the invalid value.operation
- is theCompareOperator
.value2
- is the value to compare to (second argument).- Returns:
- the
NlsMessage
- See Also:
-
errorNoEmail
- Parameters:
value
- is the value that is no valid email address.- Returns:
- the
NlsMessage
-
errorNoPhoneNumber
- Parameters:
value
- is the value that is no valid phone number.- Returns:
- the
NlsMessage
-
errorNoHost
- Parameters:
value
- is the value that is no valid Internet host (hostname or IP address).- Returns:
- the
NlsMessage
-
errorNoHostName
- Parameters:
value
- is the value that is no valid Internet hostname.- Returns:
- the
NlsMessage
-
errorNoIpAddress
- Parameters:
value
- is the value that is no valid IP-address.- Returns:
- the
NlsMessage
-
errorNoUrl
- Parameters:
value
- is the value that is no valid URL.- Returns:
- the
NlsMessage
-