java.lang.Object
io.github.mmm.validation.AbstractValidator<V>
io.github.mmm.validation.AbstractValueValidator<Object>
io.github.mmm.validation.main.ValidatorMandatory
- All Implemented Interfaces:
io.github.mmm.base.lang.Composable<Validator<?>>,Validator<Object>,Iterable<Validator<?>>
Validator validating that a mandatory value is filled. ValidationResult will
be invalid if the value is not provided (empty, blank, null).- Since:
- 1.0.0
-
Field Summary
FieldsFields inherited from interface io.github.mmm.validation.Validator
ID_MANDATORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidatorMandatoryget()getId()final booleanprotected NlsMessagevalidateNotNull(Object value) protected NlsMessageMethods inherited from class io.github.mmm.validation.AbstractValueValidator
validateMethods inherited from class io.github.mmm.validation.AbstractValidator
equals, getChild, getChildCount, hashCode, isDynamic, source2string, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.mmm.base.lang.Composable
iteratorMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
ValidatorMandatory
public ValidatorMandatory()The constructor.
-
-
Method Details
-
getId
-
get
- Returns:
- the singleton instance of this class.
-
validateNull
- Overrides:
validateNullin classAbstractValueValidator<Object>
-
validateNotNull
- Specified by:
validateNotNullin classAbstractValueValidator<Object>
-
isMandatory
public final boolean isMandatory()
-