| Modifier and Type | Field and Description |
|---|---|
static Pattern |
PATTERN
A SURF name is a single name token.
|
static Pattern |
TOKEN_PATTERN
Regular expression pattern to match a SURF name token .
|
| Constructor and Description |
|---|
Name() |
| Modifier and Type | Method and Description |
|---|---|
static String |
checkArgumentValid(String string)
Confirms that the given string conforms to the rules for a SURF name.
|
static String |
checkArgumentValidToken(String string)
Confirms that the given string conforms to the rules for a SURF name token.
|
static boolean |
isTokenBeginCharacter(int c)
Determines if the given character is a SURF token name begin character.
|
static boolean |
isTokenCharacter(int c)
Determines if the given character is a SURF name token character.
|
static boolean |
isValid(String string)
Determines whether the given string conforms to the rules for a SURF name.
|
static boolean |
isValidToken(String string)
Determines whether the given string conforms to the rules for an URF name token.
|
public static final Pattern TOKEN_PATTERN
public static final Pattern PATTERN
public static boolean isValidToken(String string)
string - The string to test.true if the string is a valid URF name token.NullPointerException - if the given string is null.TOKEN_PATTERNpublic static String checkArgumentValidToken(String string)
string - The string to check.NullPointerException - if the given string is null.IllegalArgumentException - if the given string does not conform to the rules for a SURF name token.TOKEN_PATTERNpublic static final boolean isTokenBeginCharacter(int c)
c - The character to check.true if the character is a SURF name begin character.public static final boolean isTokenCharacter(int c)
c - The character to check.true if the character is a SURF name character.public static boolean isValid(String string)
string - The string to test.true if the string is a valid SURF name.NullPointerException - if the given string is null.PATTERNpublic static String checkArgumentValid(String string)
string - The string to check.NullPointerException - if the given string is null.IllegalArgumentException - if the given string does not conform to the rules for a SURF name.PATTERNCopyright © 2007–2017 GlobalMentor, Inc.. All rights reserved.