net.sf.saxon.om
public abstract class NameChecker extends Object
Method Summary | |
---|---|
static String | getPrefix(String qname)
Extract the prefix from a QName. |
String[] | getQNameParts(CharSequence qname)
Validate a QName, and return the prefix and local name.
|
abstract String | getXMLVersion()
Return the XML version supported by this NameChecker |
boolean | isQName(String name)
Validate whether a given string constitutes a valid QName, as defined in XML Namespaces.
|
abstract boolean | isValidChar(int ch)
Test whether a character is a valid XML character |
abstract boolean | isValidNCName(String name)
Validate whether a given string constitutes a valid NCName, as defined in XML Namespaces.
|
Parameters: qname The lexical QName whose prefix is required
Returns: the prefix, that is the part before the colon. Returns an empty string if there is no prefix
Parameters: qname the lexical QName whose parts are required
Returns: an array of two strings, the prefix and the local name. The first item is a zero-length string if there is no prefix.
Throws: QNameException if not a valid QName.
Returns: "1.0" or "1.1" as a string
Parameters: name the name to be tested
Returns: true if the name is a lexically-valid QName
Parameters: ch the character to be tested
Returns: true if this is a valid character in the selected version of XML
Parameters: name the name to be tested
Returns: true if the name is a lexically-valid QName