cdqa.dom
Class XMLChar

java.lang.Object
  extended by cdqa.dom.XMLChar

public final class XMLChar
extends java.lang.Object

class XMLChar

Author:
simonkm

Field Summary
(package private) static byte[] flags
           
static java.lang.String S_SPACES
          String of acceptable XML whitespace characters.
 
Method Summary
static boolean checkAllSpace(java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

S_SPACES

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

See Also:
Constant Field Values

flags

static byte[] flags
Method Detail

isChar

public static boolean isChar(int ch)
Returns whether the specified ch conforms to the XML 1.0 definition of a character. Refer to the definition of character for details.

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

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.

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)
Returns whether the specified ch conforms to the XML 1.0 definition of whitespace. Refer to the definition of S for details.

Parameters:
ch - Character to check as XML whitespace.
Returns:
=true if ch is XML whitespace; otherwise =false.

checkAllSpace

public static boolean checkAllSpace(java.lang.String string)
Returns true if the specified string contains only XML whitespaces Refer to the definition of S for details.

Parameters:
string - String to check.
Returns:
=true if string contains only XML whitespaces; otherwise =true

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.

Parameters:
ch - Character to check as an XML letter.
Returns:
=true if character complies with XML spec; otherwise =false.