cdqa.dom

Class XMLChar


public final class XMLChar
extends java.lang.Object

class XMLChar
Author:
simonkm

Field Summary

static String
S_SPACES
String of acceptable XML whitespace characters.
(package private) static byte[]
flags

Method Summary

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.

Field Details

S_SPACES

public static final String S_SPACES
String of acceptable XML whitespace characters.

flags

(package private) static byte[] flags

Method Details

checkAllSpace

public static boolean checkAllSpace(String string)
Parameters:
string - String to check.
Returns:
=true if string contains only XML whitespaces; otherwise =true

isChar

public static boolean isChar(int ch)
Parameters:
ch - Character to check as an XML character.
Returns:
=true if character complies with XML spec; otherwise =false.

isLetter

public static boolean isLetter(int ch)
Parameters:
ch - Character to check as an XML letter.
Returns:
=true if character complies with XML spec; otherwise =false.

isNameChar

public static boolean isNameChar(int ch)
Parameters:
ch - Character to check as an XML name character.
Returns:
=true if character complies with XML spec; otherwise =false.
See Also:
isChar(int)

isSpace

public static boolean isSpace(int ch)
Parameters:
ch - Character to check as XML whitespace.
Returns:
=true if ch is XML whitespace; otherwise =false.