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 unsignedByte} XML Schema data type.
44: */
45: public static final String UNSIGNED_BYTE = NAMESPACE + "unsignedByte";
46:
47: /**
48: * {@code short} XML Schema data type.
49: */
50: public static final String SHORT = NAMESPACE + "short";
51:
52: /**
53: * {@code unsignedShort} XML Schema data type.
54: */
55: public static final String UNSIGNED_SHORT = NAMESPACE + "unsignedShort";
56:
57: /**
58: * {@code int} XML Schema data type.
59: */
60: public static final String INT = NAMESPACE + "int";
61:
62: /**
63: * {@code unsignedInt} XML Schema data type.
64: */
65: public static final String UNSIGNED_INT = NAMESPACE + "unsignedInt";
66:
67: /**
68: * {@code integer} XML Schema data type.
69: */
70: public static final String INTEGER = NAMESPACE + "integer";
71:
72: /**
73: * {@code nonPositiveInteger} XML Schema data type.
74: */
75: public static final String NON_POSITIVE_INTEGER = NAMESPACE + "nonPositiveInteger";
76:
77: /**
78: * {@code negativeInteger} XML Schema data type.
79: */
80: public static final String NEGATIVE_INTEGER = NAMESPACE + "negativeInteger";
81:
82: /**
83: * {@code nonNegativeInteger} XML Schema data type.
84: */
85: public static final String NON_NEGATIVE_INTEGER = NAMESPACE + "nonNegativeInteger";
86:
87: /**
88: * {@code positiveInteger} XML Schema data type.
89: */
90: public static final String POSITIVE_INTEGER = NAMESPACE + "positiveInteger";
91:
92: /**
93: * {@code long} XML Schema data type.
94: */
95: public static final String LONG = NAMESPACE + "long";
96:
97: /**
98: * {@code unsignedLong} XML Schema data type.
99: */
100: public static final String UNSIGNED_LONG = NAMESPACE + "unsignedLong";
101:
102: /**
103: * {@code double} XML Schema data type.
104: */
105: public static final String DOUBLE = NAMESPACE + "double";
106:
107: /**
108: * {@code float} XML Schema data type.
109: */
110: public static final String FLOAT = NAMESPACE + "float";
111:
112: /**
113: * {@code decimal} XML Schema data type.
114: */
115: public static final String DECIMAL = NAMESPACE + "decimal";
116:
117: /**
118: * {@code date} XML Schema data type.
119: */
120: public static final String DATE = NAMESPACE + "date";
121:
122: /**
123: * {@code time} XML Schema data type.
124: */
125: public static final String TIME = NAMESPACE + "time";
126:
127: /**
128: * {@code dateTime} XML Schema data type.
129: */
130: public static final String DATETIME = NAMESPACE + "dateTime";
131:
132: /**
133: * {@code duration} XML Schema data type.
134: */
135: public static final String DURATION = NAMESPACE + "duration";
136:
137: /**
138: * {@code string} XML Schema data type.
139: */
140: public static final String STRING = NAMESPACE + "string";
141:
142: /**
143: * {@code normalizedString} XML Schema data type.
144: */
145: public static final String NORMALIZED_STRING = NAMESPACE + "normalizedString";
146:
147: private XSD() {
148: throw new AssertionError();
149: }
150: }