-
- All Known Implementing Classes:
DefaultInteractiveErrorFactory
public interface InteractiveErrorFactoryA factory for interactive errors.- Author:
- harald
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description InteractiveErrorcreateInteractiveError(boolean warning, java.lang.String text, java.lang.String errorCode, org.tentackle.validate.ValidationResult validationResult, org.tentackle.fx.FxControl control)Creates an interactive error explicitly.InteractiveErrorcreateInteractiveError(java.util.TreeSet<org.tentackle.validate.ValidationMapper> mappers, org.tentackle.bind.Binder binder, org.tentackle.validate.ValidationResult validationResult)Creates an interactive error from a validation result.static InteractiveErrorFactorygetInstance()The singleton.
-
-
-
Method Detail
-
getInstance
static InteractiveErrorFactory getInstance()
The singleton.- Returns:
- the singleton
-
createInteractiveError
InteractiveError createInteractiveError(java.util.TreeSet<org.tentackle.validate.ValidationMapper> mappers, org.tentackle.bind.Binder binder, org.tentackle.validate.ValidationResult validationResult)
Creates an interactive error from a validation result.- Parameters:
mappers- optional mappers to map the validation path to a binding pathbinder- the bindervalidationResult- the validation result- Returns:
- the interactive error
-
createInteractiveError
InteractiveError createInteractiveError(boolean warning, java.lang.String text, java.lang.String errorCode, org.tentackle.validate.ValidationResult validationResult, org.tentackle.fx.FxControl control)
Creates an interactive error explicitly.- Parameters:
warning- true if just a warning, false if errortext- the error texterrorCode- the optional error codevalidationResult- the validation resultcontrol- the optional UI component related to the error, null if none- Returns:
- the error
-
-