Package net.sf.saxon.pattern
Class UnionQNameTest
java.lang.Object
net.sf.saxon.pattern.UnionQNameTest
- All Implemented Interfaces:
QNameTest
A QNameTest that is the union of a number of supplied QNameTests
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateJavaScriptNameTest(int targetVersion) Generate Javascript code to test if a name matches the test.booleanmatches(StructuredQName qname) Test whether the QNameTest matches a given QNametoString()The toString() method defines the format used in a package export, so it must be re-parseable
-
Field Details
-
tests
-
-
Constructor Details
-
UnionQNameTest
-
-
Method Details
-
matches
Test whether the QNameTest matches a given QName -
toString
The toString() method defines the format used in a package export, so it must be re-parseable -
generateJavaScriptNameTest
Generate Javascript code to test if a name matches the test.- Specified by:
generateJavaScriptNameTestin interfaceQNameTest- Parameters:
targetVersion- the version of Saxon-JS being targeted- Returns:
- JS code as a string. The generated code will be used as the body of a JS function in which the argument name "q" is an XdmQName object holding the name. The XdmQName object has properties uri and local.
-