Debian Codegraph @

net/sf/saxon/trans/packages/UsePack.java

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2018 Saxonica Limited.
3 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
6 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
8 package net.sf.saxon.trans.packages;
9
10 import net.sf.saxon.expr.parser.Location;
11 import net.sf.saxon.style.PackageVersionRanges;
12 import net.sf.saxon.trans.XPathException;
13
14 /**
15 * Describes an xsl:use-package requirement from within a package,
16 * in terms of a name and a set of version ranges
17 */
18 public class UsePack {
19 public String packageName;
20 public PackageVersionRanges ranges;
21 public Location location;
22
23 public UsePack(String name, String version, Location location) throws XPathException {
24 this.packageName = name;
25 this.ranges = new PackageVersionRanges(version == null ? "*" : version);
26 this.location = location;
27 }
28 }
29