All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xa.xa_CharChecker

java.lang.Object
   |
   +----xa.xa_CharChecker

public class xa_CharChecker
extends Object
A utility class offering a range of static checking functions on supplied characters or strings - to tell whether a given character is whitespace, or valid in an XML name, and such like.


Constructor Index

 o xa_CharChecker()

Method Index

 o haveHexNumberChar(char)
Indicates if the given character is a valid hexadecimal digit.
 o haveNameChar(char)
Indicates if the given character is valid for inclusion in a name.
 o haveNameStartChar(char)
Indicates if the given character is valid for the start of a name.
 o haveNumberChar(char)
Indicates if the current character is valid in an XML number.
 o havePCDataChar(char)
Indicates if the given character is valid in PCData.
 o isWhitespace(char)
Is the given character whitespace?
 o isWhitespace(String)
Is the given string composed entirely of whitespace?

Constructors

 o xa_CharChecker
 public xa_CharChecker()

Methods

 o isWhitespace
 public static boolean isWhitespace(String InputString)
Is the given string composed entirely of whitespace?

Parameters:
InputString - The string to be checked to see if it whitespace
Returns:
true if InputString is whitespace; false if not
 o isWhitespace
 public static boolean isWhitespace(char InputChar)
Is the given character whitespace?

Parameters:
InputChar - The character to be checked to see if it whitespace
Returns:
true if InputChar is whitespace; false if not
 o haveNumberChar
 public static boolean haveNumberChar(char InputChar)
Indicates if the current character is valid in an XML number.

Parameters:
InputChar - The character to be checked to see if it is a number
Returns:
true if InputChar is a number; false if not
 o haveHexNumberChar
 public static boolean haveHexNumberChar(char InputChar)
Indicates if the given character is a valid hexadecimal digit.

Parameters:
InputChar - The character to be checked to see if it is a number
Returns:
true if InputChar is a hex digit; false if not
 o haveNameStartChar
 public static boolean haveNameStartChar(char InputChar)
Indicates if the given character is valid for the start of a name.

Parameters:
InputChar - The character to be checked
Returns:
true if InputChar is valid at the start of a name
 o haveNameChar
 public static boolean haveNameChar(char InputChar)
Indicates if the given character is valid for inclusion in a name.

Parameters:
InputChar - The character to be checked
Returns:
true if InputChar is valid in a name
 o havePCDataChar
 public static boolean havePCDataChar(char InputChar)
Indicates if the given character is valid in PCData.

Parameters:
InputChar - The character to be checked
Returns:
true if InputChar is valid in a name

All Packages  Class Hierarchy  This Package  Previous  Next  Index