Package net.sf.saxon.pattern
Class UnionQNameTest
- java.lang.Object
-
- net.sf.saxon.pattern.UnionQNameTest
-
-
Constructor Summary
Constructors Constructor Description UnionQNameTest(List<QNameTest> tests)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgenerateJavaScriptNameTest(int targetVersion)Generate Javascript code to test if a name matches the test.booleanmatches(StructuredQName qname)Test whether the QNameTest matches a given QNameStringtoString()The toString() method defines the format used in a package export, so it must be re-parseable
-
-
-
Method Detail
-
matches
public boolean matches(StructuredQName qname)
Test whether the QNameTest matches a given QName
-
toString
public String toString()
The toString() method defines the format used in a package export, so it must be re-parseable
-
generateJavaScriptNameTest
public String generateJavaScriptNameTest(int targetVersion)
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.
-
-