Skip to content

Package: XSD

XSD

nameinstructionbranchcomplexitylinemethod
XSD()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /**
2: * Copyright (C) 2020 Czech Technical University in Prague
3: * <p>
4: * This program is free software: you can redistribute it and/or modify it under
5: * the terms of the GNU General Public License as published by the Free Software
6: * Foundation, either version 3 of the License, or (at your option) any
7: * later version.
8: * <p>
9: * This program is distributed in the hope that it will be useful, but WITHOUT
10: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12: * details. You should have received a copy of the GNU General Public License
13: * along with this program. If not, see <http://www.gnu.org/licenses/>.
14: */
15: package cz.cvut.kbss.jopa.vocabulary;
16:
17: /**
18: * A subset of the XML Schema built-in data types vocabulary.
19: */
20: public final class XSD {
21:
22: /**
23: * XSD vocabulary namespace.
24: */
25: public static final String NAMESPACE = "http://www.w3.org/2001/XMLSchema#";
26:
27: /**
28: * Typical prefix used for {@link #NAMESPACE}.
29: */
30: public static final String PREFIX = "xsd";
31:
32: /**
33: * {@code boolean} XML Schema data type.
34: */
35: public static final String BOOLEAN = NAMESPACE + "boolean";
36:
37: /**
38: * {@code byte} XML Schema data type.
39: */
40: public static final String BYTE = NAMESPACE + "byte";
41:
42: /**
43: * {@code short} XML Schema data type.
44: */
45: public static final String SHORT = NAMESPACE + "short";
46:
47: /**
48: * {@code int} XML Schema data type.
49: */
50: public static final String INT = NAMESPACE + "int";
51:
52: /**
53: * {@code integer} XML Schema data type.
54: */
55: public static final String INTEGER = NAMESPACE + "integer";
56:
57: /**
58: * {@code long} XML Schema data type.
59: */
60: public static final String LONG = NAMESPACE + "long";
61:
62: /**
63: * {@code double} XML Schema data type.
64: */
65: public static final String DOUBLE = NAMESPACE + "double";
66:
67: /**
68: * {@code float} XML Schema data type.
69: */
70: public static final String FLOAT = NAMESPACE + "float";
71:
72: /**
73: * {@code date} XML Schema data type.
74: */
75: public static final String DATE = NAMESPACE + "date";
76:
77: /**
78: * {@code time} XML Schema data type.
79: */
80: public static final String TIME = NAMESPACE + "time";
81:
82: /**
83: * {@code dateTime} XML Schema data type.
84: */
85: public static final String DATETIME = NAMESPACE + "dateTime";
86:
87: /**
88: * {@code string} XML Schema data type.
89: */
90: public static final String STRING = NAMESPACE + "string";
91:
92: private XSD() {
93: throw new AssertionError();
94: }
95: }