Package com.helger.commons.error
Interface ErrorTextProvider.IFormattableItem
- All Known Implementing Classes:
ErrorTextProvider.FormattableItem
- Enclosing class:
ErrorTextProvider
public static interface ErrorTextProvider.IFormattableItem
Base interface for objects that format a single field.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiongetField()getFormattedText(String sReplacement) Return a formatted version ofgetUnformattedText()by replacing allErrorTextProvider.PLACEHOLDERchars with the provided replacement.
-
Method Details
-
getField
- Returns:
- the error field this is about. Never
null.
-
getUnformattedText
- Returns:
- The unformatted text. Never
null.
-
getFormattedText
Return a formatted version ofgetUnformattedText()by replacing allErrorTextProvider.PLACEHOLDERchars with the provided replacement.- Parameters:
sReplacement- The replacement string. Must not benull.- Returns:
- The formatted text with the replacement applied.
-