Interface FormatValidator
-
- All Known Implementing Classes:
AbstractFormatValidator,FormatValidatorFactory.InvalidFormatValidator,MessageFormatValidator,NoFormatValidator,StringFormatValidator
public interface FormatValidatorDate: 14.06.2011
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intargumentCount()The number of arguments needed for the format.java.lang.StringdetailMessage()A detail message ifisValid()returnsfalse, otherwise an empty string.java.lang.Stringformat()Returns the format string used for validation.booleanisValid()Returnstrueof the format is valid, otherwisefalse.java.lang.StringsummaryMessage()A summary message ifisValid()returnsfalse, otherwise an empty string.
-
-
-
Method Detail
-
argumentCount
int argumentCount()
The number of arguments needed for the format.- Returns:
- the number of arguments needed.
-
format
java.lang.String format()
Returns the format string used for validation.- Returns:
- the format string.
-
isValid
boolean isValid()
Returnstrueof the format is valid, otherwisefalse.- Returns:
trueof the format is valid, otherwisefalse.
-
detailMessage
java.lang.String detailMessage()
A detail message ifisValid()returnsfalse, otherwise an empty string.- Returns:
- a detailed message.
-
summaryMessage
java.lang.String summaryMessage()
A summary message ifisValid()returnsfalse, otherwise an empty string.- Returns:
- a summary message.
-
-