org.jaxen.saxpath.base

Class Verifier

final class Verifier extends Object

A utility class to handle well-formedness checks on names.

Author: Brett McLaughlin Elliotte Rusty Harold Jason Hunter Bradley S. Huffman

Method Summary
static booleanisXMLCombiningChar(char c)
Determine whether a specified character is a combining character according to production 87 of the XML 1.0 specification.
static booleanisXMLDigit(char c)
Determine whether a specified Unicode character is a digit according to production 88 of the XML 1.0 specification.
static booleanisXMLExtender(char c)
Determine whether a specified character is an extender according to production 88 of the XML 1.0 specification.
static booleanisXMLLetter(char c)
Determine whether a specified character is a letter according to production 84 of the XML 1.0 specification.
static booleanisXMLNCNameCharacter(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.
static booleanisXMLNCNameStartCharacter(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 Detail

isXMLCombiningChar

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

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

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

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

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

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