Package net.sf.saxon.style
Class PackageVersionRanges
java.lang.Object
net.sf.saxon.style.PackageVersionRanges
A class to handle a set of package version ranges
This implements the semantics given in http://www.w3.org/TR/xslt-30/#package-versions, where a comma-separated sequence of package-version ranges are declared as one of:
- '*' - any version
package-version
- an exact matchpackage-version'.*'
- any package whose version starts with the given prefixpackage-version'+'
- any package whose version orders equal or later than the given version'to 'package-version
- any package whose version orders equal or earlier than the given versionpackage-version' to 'package-version
- any package whose version orders equal to or between the given versions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(PackageVersion version) Test whether a given package version lies within any of the ranges described in this PackageVersionRangestoString()
-
Constructor Details
-
PackageVersionRanges
Generate a set of package version ranges- Parameters:
s
- Input string describing the ranges in the grammar described in http://www.w3.org/TR/xslt-30/#package-versions- Throws:
XPathException
- if any version range is invalid
-
-
Method Details