public abstract class NameChecker extends Object
Constructor and Description |
---|
NameChecker() |
Modifier and Type | Method and Description |
---|---|
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.
|
public final boolean isQName(String name)
name
- the name to be testedpublic abstract boolean isValidNCName(String name)
name
- the name to be testedpublic static final String getPrefix(String qname)
qname
- The lexical QName whose prefix is requiredpublic final String[] getQNameParts(CharSequence qname) throws QNameException
qname
- the lexical QName whose parts are requiredQNameException
- if not a valid QName.public abstract boolean isValidChar(int ch)
ch
- the character to be testedpublic abstract String getXMLVersion()