public final class XMLToken
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isChar(int ch)
Checks if the specified character is an XML letter.
|
static boolean |
isName(byte[] v)
Checks if the specified token is a valid name.
|
static boolean |
isNCChar(int ch)
Checks if the specified character is an XML letter.
|
static boolean |
isNCName(byte[] v)
Checks if the specified token is a valid NCName.
|
static boolean |
isNCStartChar(int ch)
Checks if the specified character is a name start character, as required
e.g.
|
static boolean |
isNMToken(byte[] v)
Checks if the specified token is a valid NMToken.
|
static boolean |
isQName(byte[] val)
Checks if the specified token is a valid QName.
|
static boolean |
isStartChar(int ch)
Checks if the specified character is an XML first-letter.
|
static boolean |
valid(int ch)
Checks if the specified character is a valid XML character.
|
public static boolean valid(int ch)
ch - the letter to be checkedpublic static boolean isNCStartChar(int ch)
ch - characterpublic static boolean isNCChar(int ch)
ch - characterpublic static boolean isStartChar(int ch)
ch - the letter to be checkedpublic static boolean isChar(int ch)
ch - the letter to be checkedpublic static boolean isNCName(byte[] v)
v - value to be checkedpublic static boolean isName(byte[] v)
v - value to be checkedpublic static boolean isNMToken(byte[] v)
v - value to be checkedpublic static boolean isQName(byte[] val)
val - value to be checked