Class Verifier

java.lang.Object
org.jaxen.saxpath.base.Verifier

final class Verifier extends Object
A utility class to handle well-formedness checks on names.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static boolean
    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
    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
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Verifier

      Verifier()
  • Method Details

    • 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