public final class IllegalStringMessage extends Message
ASCENDING, DESCENDING
Constructor and Description |
---|
IllegalStringMessage(String invalidString,
char[] invalidCharacters,
Number minimumLength,
Number maximumLength)
Creates a new
IllegalStringMessage instance taking an invalid string, an array of invalid characters,
a minimum required length and a maximum allowed length. |
Modifier and Type | Method and Description |
---|---|
Object[] |
getFormatArguments(Locale locale)
[0]: The invalid string or
null if no such string is known. |
String |
getText(Locale locale) |
public IllegalStringMessage(String invalidString, char[] invalidCharacters, Number minimumLength, Number maximumLength)
IllegalStringMessage
instance taking an invalid string, an array of invalid characters,
a minimum required length and a maximum allowed length.invalidString
- The invalid string or null
if no such string is known.invalidCharacters
- The invalid characters or null
if no such characters are known.minimumLength
- The minimum required length or null
if no such requirement exists.maximumLength
- The maximum allowed length or null
if no such limit exists.public Object[] getFormatArguments(Locale locale)
null
if no such string is known.null
if no such characters are known.null
if no such requirement exists.null
if no such limit exists.getFormatArguments
in class Message
Copyright © 2005-2012 jDTAUS. All Rights Reserved.