Interface FormatValidator
- All Known Implementing Classes:
AbstractFormatValidator
,FormatValidatorFactory.InvalidFormatValidator
,MessageFormatValidator
,NoFormatValidator
,StringFormatValidator
public interface FormatValidator
Date: 14.06.2011
-
Method Summary
Modifier and TypeMethodDescriptionint
The number of arguments needed for the format.A detail message ifisValid()
returnsfalse
, otherwise an empty string.format()
Returns the format string used for validation.boolean
isValid()
Returnstrue
of the format is valid, otherwisefalse
.A summary message ifisValid()
returnsfalse
, otherwise an empty string.
-
Method Details
-
argumentCount
int argumentCount()The number of arguments needed for the format.- Returns:
- the number of arguments needed.
-
format
String format()Returns the format string used for validation.- Returns:
- the format string.
-
isValid
boolean isValid()Returnstrue
of the format is valid, otherwisefalse
.- Returns:
true
of the format is valid, otherwisefalse
.
-
detailMessage
String detailMessage()A detail message ifisValid()
returnsfalse
, otherwise an empty string.- Returns:
- a detailed message.
-
summaryMessage
String summaryMessage()A summary message ifisValid()
returnsfalse
, otherwise an empty string.- Returns:
- a summary message.
-