java.lang.Object
io.github.mmm.validation.AbstractValidationResult
io.github.mmm.validation.ValidationFailure
- All Implemented Interfaces:
Localizable,LocalizableObject,Composable<ValidationResult>,ValidationResult,Iterable<ValidationResult>
Implementation of
ValidationResult for a failure without I18N support.- Since:
- 1.0.0
-
Field Summary
Fields inherited from interface io.github.mmm.base.i18n.Localizable
BUNDLE_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionValidationFailure(String code, Localizable message) The constructor.ValidationFailure(String code, Localizable message, String source) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionadd(ValidationResult result) getChild(int index) intgetLocalizedMessage(Locale locale) voidgetLocalizedMessage(Locale locale, Appendable buffer, boolean verbose) Methods inherited from class io.github.mmm.validation.AbstractValidationResult
appendCode, getCode, getSource, isValid, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.mmm.base.lang.Composable
iteratorMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface io.github.mmm.base.i18n.Localizable
getArgument, toLocalizableMethods inherited from interface io.github.mmm.validation.ValidationResult
containsCode, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getMessage
-
Constructor Details
-
Method Details
-
getChildCount
public int getChildCount() -
getChild
-
getMessage
- See Also:
-
getLocalizedMessage
-
getLocalizedMessage
-
getLocalizedMessage
- Parameters:
locale- is theLocaleto translate to.buffer- theAppendablewhere towritethe message to.verbose- the verbose flag (to includecode(s), etc.- See Also:
-
add
- Parameters:
result- anotherValidationResultto combine with this one.- Returns:
- the
ValidationResultcomposed out of this with the givenresult. - See Also:
-