Contents | Package | Class | Tree | Deprecated | Index | Help XML for Java 1.0.4
PREV | NEXT SHOW LISTS | HIDE LISTS

Class com.ibm.xml.parser.XMLChar

java.lang.Object
    |
    +----com.ibm.xml.parser.XMLChar

public final class XMLChar
extends java.lang.Object
XMLChar is a collection of XML4J utility routines which check the conformance of various XML-defined characters (XML character, character in name, whitespace, letter). These routines complement higher-level routines that exist in com.ibm.xml.parser.Util.

Version:
Revision: 46 1.5 src/com/ibm/xml/parser/XMLChar.java, xml4jsrc, xml4j-jtcsv, xml4j_1_0_4
See Also:
Util

Field Summary
static java.lang.String  S_SPACES
String of acceptable XML whitespace characters.
 

Method Summary
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.
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

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

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.

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.

Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS