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 StringexportQNameTest()Export the QNameTest as a string for use in a SEF file (typically in a catch clause).booleanmatches(StructuredQName qname)Test whether the QNameTest matches a given QNamebooleanmatchesFingerprint(NamePool namePool, int fp)Test whether the QNameTest matches a given fingerprintStringtoString()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
-
matchesFingerprint
public boolean matchesFingerprint(NamePool namePool, int fp)
Test whether the QNameTest matches a given fingerprint- Specified by:
matchesFingerprintin interfaceQNameTest- Parameters:
namePool- the name poolfp- the fingerprint of the QName to be matched- Returns:
- true if the name matches, false if not
-
toString
public String toString()
The toString() method defines the format used in a package export, so it must be re-parseable
-
exportQNameTest
public String exportQNameTest()
Export the QNameTest as a string for use in a SEF file (typically in a catch clause).- Specified by:
exportQNameTestin interfaceQNameTest- Returns:
- a string representation of the QNameTest, suitable for use in export files. The format is a sequence of alternatives separated by spaces, where each alternative is one of '*', '*:localname', 'Q{uri}*', or 'Q{uri}local'.
-
-