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: * JOPA
3: * Copyright (C) 2024 Czech Technical University in Prague
4: *
5: * This library is free software; you can redistribute it and/or
6: * modify it under the terms of the GNU Lesser General Public
7: * License as published by the Free Software Foundation; either
8: * version 3.0 of the License, or (at your option) any later version.
9: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library.
17: */
18: package cz.cvut.kbss.jopa.vocabulary;
19:
20: /**
21: * A subset of the XML Schema built-in data types vocabulary.
22: */
23: public final class XSD {
24:
25: /**
26: * XSD vocabulary namespace.
27: */
28: public static final String NAMESPACE = "http://www.w3.org/2001/XMLSchema#";
29:
30: /**
31: * Typical prefix used for {@link #NAMESPACE}.
32: */
33: public static final String PREFIX = "xsd";
34:
35: /**
36: * {@code boolean} XML Schema data type.
37: */
38: public static final String BOOLEAN = NAMESPACE + "boolean";
39:
40: /**
41: * {@code byte} XML Schema data type.
42: */
43: public static final String BYTE = NAMESPACE + "byte";
44:
45: /**
46: * {@code unsignedByte} XML Schema data type.
47: */
48: public static final String UNSIGNED_BYTE = NAMESPACE + "unsignedByte";
49:
50: /**
51: * {@code short} XML Schema data type.
52: */
53: public static final String SHORT = NAMESPACE + "short";
54:
55: /**
56: * {@code unsignedShort} XML Schema data type.
57: */
58: public static final String UNSIGNED_SHORT = NAMESPACE + "unsignedShort";
59:
60: /**
61: * {@code int} XML Schema data type.
62: */
63: public static final String INT = NAMESPACE + "int";
64:
65: /**
66: * {@code unsignedInt} XML Schema data type.
67: */
68: public static final String UNSIGNED_INT = NAMESPACE + "unsignedInt";
69:
70: /**
71: * {@code integer} XML Schema data type.
72: */
73: public static final String INTEGER = NAMESPACE + "integer";
74:
75: /**
76: * {@code nonPositiveInteger} XML Schema data type.
77: */
78: public static final String NON_POSITIVE_INTEGER = NAMESPACE + "nonPositiveInteger";
79:
80: /**
81: * {@code negativeInteger} XML Schema data type.
82: */
83: public static final String NEGATIVE_INTEGER = NAMESPACE + "negativeInteger";
84:
85: /**
86: * {@code nonNegativeInteger} XML Schema data type.
87: */
88: public static final String NON_NEGATIVE_INTEGER = NAMESPACE + "nonNegativeInteger";
89:
90: /**
91: * {@code positiveInteger} XML Schema data type.
92: */
93: public static final String POSITIVE_INTEGER = NAMESPACE + "positiveInteger";
94:
95: /**
96: * {@code long} XML Schema data type.
97: */
98: public static final String LONG = NAMESPACE + "long";
99:
100: /**
101: * {@code unsignedLong} XML Schema data type.
102: */
103: public static final String UNSIGNED_LONG = NAMESPACE + "unsignedLong";
104:
105: /**
106: * {@code double} XML Schema data type.
107: */
108: public static final String DOUBLE = NAMESPACE + "double";
109:
110: /**
111: * {@code float} XML Schema data type.
112: */
113: public static final String FLOAT = NAMESPACE + "float";
114:
115: /**
116: * {@code decimal} XML Schema data type.
117: */
118: public static final String DECIMAL = NAMESPACE + "decimal";
119:
120: /**
121: * {@code date} XML Schema data type.
122: */
123: public static final String DATE = NAMESPACE + "date";
124:
125: /**
126: * {@code time} XML Schema data type.
127: */
128: public static final String TIME = NAMESPACE + "time";
129:
130: /**
131: * {@code dateTime} XML Schema data type.
132: */
133: public static final String DATETIME = NAMESPACE + "dateTime";
134:
135: /**
136: * {@code duration} XML Schema data type.
137: */
138: public static final String DURATION = NAMESPACE + "duration";
139:
140: /**
141: * {@code string} XML Schema data type.
142: */
143: public static final String STRING = NAMESPACE + "string";
144:
145: /**
146: * {@code normalizedString} XML Schema data type.
147: */
148: public static final String NORMALIZED_STRING = NAMESPACE + "normalizedString";
149:
150: /**
151: * {@code anyURI} XML Schema data type.
152: */
153: public static final String ANY_URI = NAMESPACE + "anyURI";
154:
155: private XSD() {
156: throw new AssertionError();
157: }
158: }