    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.

##

xa_CharChecker()

##

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

##

xa_CharChecker

     public xa_CharChecker()

##

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

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

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

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

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

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

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