public class PackageVersionRanges
extends java.lang.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 versions| Constructor and Description |
|---|
PackageVersionRanges(java.lang.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
|
java.lang.String |
toString() |
public PackageVersionRanges(java.lang.String s)
throws XPathException
s - Input string describing the ranges in the grammar described in
http://www.w3.org/TR/xslt-30/#package-versionsXPathExceptionpublic boolean contains(PackageVersion version)
version - The version to be checkedpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.