Skip to content

Method: ConfigParam(String, int, String)

1: /**
2: * Copyright (C) 2017 Czech Technical University in Prague
3: * <p>
4: * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
5: * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
6: * version.
7: * <p>
8: * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
9: * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
10: * details. You should have received a copy of the GNU General Public License along with this program. If not, see
11: * <http://www.gnu.org/licenses/>.
12: */
13: package cz.cvut.kbss.jsonld;
14:
15: public enum ConfigParam {
16:
17: /**
18: * Whether to ignore unknown properties when deserializing JSON-LD.
19: * <p>
20: * If set to {@code false}, an exception will be thrown when unknown property is encountered.
21: */
22: IGNORE_UNKNOWN_PROPERTIES("ignoreUnknownProperties"),
23:
24: /**
25: * Package in which to look for mapped classes.
26: * <p>
27: * The scan is important for support for polymorphism in object deserialization.
28: */
29: SCAN_PACKAGE("scanPackage"),
30:
31: /**
32: * Whether to require an identifier when serializing an object.
33: * <p>
34: * If set to {@code true} and no identifier is found (either there is no identifier field or its value is {@code
35: * null}), an exception will be thrown. If configured to {@code false}, a blank node identifier is generated if no
36: * id is present.
37: */
38: REQUIRE_ID("requireId");
39:
40: private final String name;
41:
42: ConfigParam(String name) {
43: this.name = name;
44: }
45:
46: public String getName() {
47: return name;
48: }
49: }