cdqa.dom
Class XMLChar
public final class XMLChar
extends java.lang.Object
class XMLChar
static String | S_SPACES - String of acceptable XML whitespace characters.
|
(package private) static byte[] | flags
|
static boolean | checkAllSpace(String string) - Returns true if the specified string contains only XML whitespaces
Refer to
the definition of
S for details.
|
static boolean | isChar(int ch) - Returns whether the specified ch conforms to the XML 1.0 definition
of a character.
|
static boolean | isLetter(int ch) - Returns whether the specified ch conforms to the XML 1.0 definition
of a Letter.
|
static boolean | isNameChar(int ch) - Returns whether the specified ch conforms to the XML 1.0 definition
of a character that can be used in a name.
|
static boolean | isSpace(int ch) - Returns whether the specified ch conforms to the XML 1.0 definition
of whitespace.
|
S_SPACES
public static final String S_SPACES
String of acceptable XML whitespace characters.
flags
(package private) static byte[] flags
checkAllSpace
public static boolean checkAllSpace(String string)
Returns true if the specified
string contains only XML whitespaces
Refer to
the definition of S
for details.
string
- String to check.
- =true if string contains only XML whitespaces;
otherwise =true
isChar
public static boolean isChar(int ch)
ch
- Character to check as an XML character.
- =true if character complies with XML spec; otherwise =false.
isLetter
public static boolean isLetter(int ch)
Returns whether the specified
ch conforms to the XML 1.0 definition
of a Letter.
Refer to
the definition of letter
for details.
ch
- Character to check as an XML letter.
- =true if character complies with XML spec; otherwise =false.
isNameChar
public static boolean isNameChar(int ch)
Returns whether the specified
ch conforms to the XML 1.0 definition
of a character that can be used in a name.
Refer to
the definition of name character
for details.
ch
- Character to check as an XML name character.
- =true if character complies with XML spec; otherwise =false.
isSpace
public static boolean isSpace(int ch)
Returns whether the specified
ch conforms to the XML 1.0 definition
of whitespace.
Refer to
the definition of S
for details.
ch
- Character to check as XML whitespace.
- =true if ch is XML whitespace; otherwise =false.