Package org.jaxen.saxpath.base
Class Verifier
- java.lang.Object
-
- org.jaxen.saxpath.base.Verifier
-
final class Verifier extends java.lang.Object
A utility class to handle well-formedness checks on names.
-
-
Constructor Summary
Constructors Constructor Description Verifier()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (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 Detail
-
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
-
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
-
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
-
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
-
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
-
-