Debian Codegraph @

net/sf/saxon/testdriver/Spec.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.testdriver;
9
10 public enum Spec {
11
12 XP20("2.0", "XPath2.0", "XP", "XP20"),
13 XP30("3.0", "XPath3.0", "XP", "XP30"),
14 XP31("3.1", "XPath3.1", "XP", "XP31"),
15 XQ10("1.0", "XQuery1.0", "XQ", "XQ10"),
16 XQ30("3.0", "XQuery3.0", "XQ", "XQ30"),
17 XQ31("3.1", "XQuery3.1", "XQ", "XQ31"),
18 XT10("1.0", "XSLT1.0", "XT", "XT10"),
19 XT20("2.0", "XSLT2.0", "XT", "XT20"),
20 XT30("3.0", "XSLT3.0", "XT", "XT30");
21
22
23 public final String version;
24 public final String fullName;
25 public final String shortSpecName;
26 public final String specAndVersion;
27
28 Spec(String l, String na, String sn, String sv) {
29 version = l;
30 fullName = na;
31 shortSpecName = sn;
32 specAndVersion = sv;
33 }
34
35 public int getNumericVersion() {
36 return Integer.parseInt(version.replaceAll("\\.",""));
37 }
38 }