Package net.sf.saxon.pattern.qname
Interface QNameTest
- All Known Implementing Classes:
AnyQNameTest,LocalQNameTest,NamespaceQNameTest,NoQNameTest,PortableQNameTest,SpecificQNameTest,UnionQNameTest
public interface QNameTest
Interface for tests against a QName. It is only concerned with testing a name.
It is used (among other things) for matching error codes against the codes specified in a try/catch clause,
and to match component names in xsl:accept and xsl:expose.
-
Method Summary
Modifier and TypeMethodDescriptionExport 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 QNamerelationship(QNameTest other) Determine the relationship of this QNameTest to another QNameTest: one of (same, subsumes, subsumed-by, overlaps, disjoint)
-
Method Details
-
matches
Test whether the QNameTest matches a given QName- Parameters:
qname- the QName to be matched- Returns:
- true if the name matches, false if not
-
exportQNameTest
String exportQNameTest()Export the QNameTest as a string for use in a SEF file (typically in a catch clause).- Returns:
- a string representation of the QNameTest, suitable for use in export files. The format is a sequence of alternatives, space-separated, where each alternative is one of '*', '*:localname', 'Q{uri}*', or 'Q{uri}local'.
-
relationship
Determine the relationship of this QNameTest to another QNameTest: one of (same, subsumes, subsumed-by, overlaps, disjoint)
-