net.sf.saxon.om
Class Name11Checker
public final class Name11Checker
The class checks names against the rules of the XML 1.1 and XML Namespaces 1.1 specification
static Name11Checker | getInstance() - Get the singular instance of this class
|
String | getXMLVersion() - Return the XML version supported by this NameChecker
|
boolean | isNCNameChar(int ch) - Test whether a character can appear in an NCName
|
boolean | isNCNameStartChar(int ch) - Test whether a character can appear at the start of an NCName
|
boolean | isValidChar(int ch) - Test whether a character is a valid XML character
|
getInstance
public static Name11Checker getInstance()
Get the singular instance of this class
- the singular instance of this class
getXMLVersion
public String getXMLVersion()
Return the XML version supported by this NameChecker
- getXMLVersion in interface NameChecker
isNCNameChar
public boolean isNCNameChar(int ch)
Test whether a character can appear in an NCName
- isNCNameChar in interface NameChecker
ch
- the character to be tested
- true if this is a valid character in an NCName the selected version of XML
isNCNameStartChar
public boolean isNCNameStartChar(int ch)
Test whether a character can appear at the start of an NCName
- isNCNameStartChar in interface NameChecker
ch
- the character to be tested
- true if this is a valid character at the start of an NCName the selected version of XML
isValidChar
public boolean isValidChar(int ch)
Test whether a character is a valid XML character
- isValidChar in interface NameChecker
ch
- the character to be tested
- true if this is a valid character in the selected version of XML