com.ibm.xml.parser
Class 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: %M% %I% %W% %Q%
- 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 |
S_SPACES
public static final java.lang.String S_SPACES
- String of acceptable XML whitespace characters.
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.
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.