Class FormatValidatorFactory.InvalidFormatValidator
- java.lang.Object
-
- org.jboss.logging.processor.validation.AbstractFormatValidator
-
- org.jboss.logging.processor.validation.FormatValidatorFactory.InvalidFormatValidator
-
- All Implemented Interfaces:
FormatValidator
- Enclosing class:
- FormatValidatorFactory
private static final class FormatValidatorFactory.InvalidFormatValidator extends AbstractFormatValidator
-
-
Constructor Summary
Constructors Modifier Constructor Description private
InvalidFormatValidator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
argumentCount()
The number of arguments needed for the format.java.lang.String
format()
Returns the format string used for validation.boolean
isValid()
Returnstrue
of the format is valid, otherwisefalse
.(package private) static FormatValidator
of(java.lang.String summaryMessage)
(package private) static FormatValidator
of(java.lang.String summaryMessage, java.lang.String detailMessage)
-
Methods inherited from class org.jboss.logging.processor.validation.AbstractFormatValidator
detailMessage, setDetailMessage, setDetailMessage, setSummaryMessage, setSummaryMessage, summaryMessage
-
-
-
-
Method Detail
-
of
static FormatValidator of(java.lang.String summaryMessage)
-
of
static FormatValidator of(java.lang.String summaryMessage, java.lang.String detailMessage)
-
format
public java.lang.String format()
Description copied from interface:FormatValidator
Returns the format string used for validation.- Returns:
- the format string.
-
argumentCount
public int argumentCount()
Description copied from interface:FormatValidator
The number of arguments needed for the format.- Returns:
- the number of arguments needed.
-
isValid
public boolean isValid()
Description copied from interface:FormatValidator
Returnstrue
of the format is valid, otherwisefalse
.- Returns:
true
of the format is valid, otherwisefalse
.
-
-