Class NoFormatValidator
- java.lang.Object
-
- org.jboss.logging.processor.validation.AbstractFormatValidator
-
- org.jboss.logging.processor.validation.NoFormatValidator
-
- All Implemented Interfaces:
FormatValidator
final class NoFormatValidator extends AbstractFormatValidator
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static NoFormatValidatorINSTANCE
-
Constructor Summary
Constructors Constructor Description NoFormatValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intargumentCount()The number of arguments needed for the format.java.lang.Stringformat()Returns the format string used for validation.booleanisValid()Returnstrueof the format is valid, otherwisefalse.-
Methods inherited from class org.jboss.logging.processor.validation.AbstractFormatValidator
detailMessage, setDetailMessage, setDetailMessage, setSummaryMessage, setSummaryMessage, summaryMessage
-
-
-
-
Field Detail
-
INSTANCE
static final NoFormatValidator INSTANCE
-
-
Method Detail
-
argumentCount
public int argumentCount()
Description copied from interface:FormatValidatorThe number of arguments needed for the format.- Returns:
- the number of arguments needed.
-
format
public java.lang.String format()
Description copied from interface:FormatValidatorReturns the format string used for validation.- Returns:
- the format string.
-
isValid
public boolean isValid()
Description copied from interface:FormatValidatorReturnstrueof the format is valid, otherwisefalse.- Returns:
trueof the format is valid, otherwisefalse.
-
-