Package net.sf.saxon.om
Class Name11Checker
java.lang.Object
net.sf.saxon.om.NameChecker
net.sf.saxon.om.Name11Checker
The class checks names against the rules of the XML 1.1 and XML Namespaces 1.1 specification
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Name11Checker
Get the singular instance of this classReturn the XML version supported by this NameCheckerboolean
isNCNameChar
(int ch) Test whether a character can appear in an NCNameboolean
isNCNameStartChar
(int ch) Test whether a character can appear at the start of an NCNameboolean
isValidChar
(int ch) Test whether a character is a valid XML characterMethods inherited from class net.sf.saxon.om.NameChecker
checkQNameParts, getPrefix, getQNameParts, isQName, isValidNCName, isValidNmtoken
-
Field Details
-
theInstance
-
-
Constructor Details
-
Name11Checker
public Name11Checker()
-
-
Method Details
-
getInstance
Get the singular instance of this class- Returns:
- the singular instance of this class
-
isValidChar
public boolean isValidChar(int ch) Test whether a character is a valid XML character- Specified by:
isValidChar
in classNameChecker
- Parameters:
ch
- the character to be tested- Returns:
- true if this is a valid character in the selected version of XML
-
isNCNameChar
public boolean isNCNameChar(int ch) Test whether a character can appear in an NCName- Specified by:
isNCNameChar
in classNameChecker
- Parameters:
ch
- the character to be tested- Returns:
- 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- Specified by:
isNCNameStartChar
in classNameChecker
- Parameters:
ch
- the character to be tested- Returns:
- true if this is a valid character at the start of an NCName the selected version of XML
-
getXMLVersion
Return the XML version supported by this NameChecker- Specified by:
getXMLVersion
in classNameChecker
- Returns:
- "1.1" as a string
-