org.jaxen.saxpath.base

Class Verifier


(package private) final class Verifier
extends java.lang.Object

A utility class to handle well-formedness checks on names.
Authors:
Brett McLaughlin
Elliotte Rusty Harold
Jason Hunter
Bradley S. Huffman

Method Summary

(package private) static boolean
isXMLCombiningChar(char c)
Determine whether a specified character is a combining character according to production 87 of the XML 1.0 specification.
(package private) static boolean
isXMLDigit(char c)
Determine whether a specified Unicode character is a digit according to production 88 of the XML 1.0 specification.
(package private) static boolean
isXMLExtender(char c)
Determine whether a specified character is an extender according to production 88 of the XML 1.0 specification.
(package private) static boolean
isXMLLetter(char c)
Determine whether a specified character is a letter according to production 84 of the XML 1.0 specification.
(package private) static boolean
isXMLNCNameCharacter(char c)
This is a utility function for determining whether a specified character is a name character according to production 4 of the XML 1.0 specification.
(package private) static boolean
isXMLNCNameStartCharacter(char c)
This is a utility function for determining whether a specified character is a legal name start character according to production 5 of the XML 1.0 specification.

Method Details

isXMLCombiningChar

(package private) static boolean isXMLCombiningChar(char c)
Determine whether a specified character is a combining character according to production 87 of the XML 1.0 specification.
Parameters:
c - char to check
Returns:
boolean true if it's a combining character, false otherwise

isXMLDigit

(package private) static boolean isXMLDigit(char c)
Determine whether a specified Unicode character is a digit according to production 88 of the XML 1.0 specification.
Parameters:
c - char to check for XML digit compliance
Returns:
boolean true if it's a digit, false otherwise

isXMLExtender

(package private) static boolean isXMLExtender(char c)
Determine whether a specified character is an extender according to production 88 of the XML 1.0 specification.
Parameters:
c - char to check
Returns:
true if it's an extender, false otherwise

isXMLLetter

(package private) static boolean isXMLLetter(char c)
Determine whether a specified character is a letter according to production 84 of the XML 1.0 specification.
Parameters:
c - char to check for XML name compliance
Returns:
String true if it's a letter, false otherwise

isXMLNCNameCharacter

(package private) static boolean isXMLNCNameCharacter(char c)
This is a utility function for determining whether a specified character is a name character according to production 4 of the XML 1.0 specification.
Parameters:
c - char to check for XML name compliance.
Returns:
boolean true if it's a name character, false otherwise

isXMLNCNameStartCharacter

(package private) static boolean isXMLNCNameStartCharacter(char c)
This is a utility function for determining whether a specified character is a legal name start character according to production 5 of the XML 1.0 specification. This production does allow names to begin with colons which the Namespaces in XML Recommendation disallows.
Parameters:
c - char to check for XML name start compliance
Returns:
true if it's a name start character, false otherwise