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 ValidatorMandatory
get()
getId()
final boolean
protected NlsMessage
validateNotNull
(Object value) protected NlsMessage
Methods inherited from class io.github.mmm.validation.AbstractValueValidator
validate
Methods inherited from class io.github.mmm.validation.AbstractValidator
equals, getChild, getChildCount, hashCode, isDynamic, source2string, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.mmm.base.lang.Composable
iterator
Methods 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:
validateNull
in classAbstractValueValidator<Object>
-
validateNotNull
- Specified by:
validateNotNull
in classAbstractValueValidator<Object>
-
isMandatory
public final boolean isMandatory()
-