public class PackageVersionRanges extends Object
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:
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 versionsConstructor and Description |
---|
PackageVersionRanges(String s)
Generate a set of package version ranges
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(PackageVersion version)
Test whether a given package version lies within any of the ranges described in this PackageVersionRanges
|
public PackageVersionRanges(String s) throws XPathException
s
- Input string describing the ranges in the grammar described in
http://www.w3.org/TR/xslt-30/#package-versionsXPathException
public boolean contains(PackageVersion version)
version
- The version to be checkedCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.