Skip to content

Package: Defaults

Defaults

nameinstructionbranchcomplexitylinemethod
Defaults()
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%
static {...}
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

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.owl2java.config;
19:
20: import cz.cvut.kbss.jopa.owl2java.Constants;
21: import cz.cvut.kbss.jopa.owl2java.cli.Option;
22: import cz.cvut.kbss.jopa.owl2java.cli.PropertiesType;
23:
24: /**
25: * Default values of {@link Option}s.
26: */
27: public class Defaults {
28:
29: /**
30: * @see Option#WITH_IRIS
31: */
32: public static final boolean WITH_IRIS = false;
33:
34: /**
35: * @see Option#TARGET_DIR
36: */
37: public static final String TARGET_DIR = "";
38:
39: /**
40: * @see Option#PACKAGE
41: */
42: public static final String PACKAGE = "generated";
43:
44: /**
45: * @see Option#WHOLE_ONTOLOGY_AS_IC
46: */
47: public static final boolean WHOLE_ONTOLOGY_AS_IC = false;
48:
49: /**
50: * @see Option#IGNORE_FAILED_IMPORTS
51: */
52: public static final boolean IGNORE_FAILED_IMPORTS = false;
53:
54: /**
55: * @see Option#PREFER_MULTILINGUAL_STRINGS
56: */
57: public static final boolean PREFER_MULTILINGUAL_STRINGS = true;
58:
59: /**
60: * @see Option#JAVA_CLASSNAME_ANNOTATION
61: */
62: public static final String JAVA_CLASSNAME_ANNOTATION = Constants.P_CLASS_NAME;
63:
64: /**
65: * @see Option#PROPERTIES_TYPE
66: */
67: public static final String PROPERTIES_TYPE = PropertiesType.string.name();
68:
69: /**
70: * @see Option#GENERATE_JAVADOC_FROM_COMMENT
71: */
72: public static final boolean GENERATE_JAVADOC_FROM_COMMENT = true;
73:
74: /**
75: * @see Option#GENERATE_ANNOTATION_FIELDS
76: */
77: public static final boolean GENERATE_ANNOTATION_FIELDS = true;
78:
79: /**
80: * @see Option#GENERATE_THING
81: */
82: public static final boolean GENERATE_THING = true;
83:
84: /**
85: * @see Option#ONTOLOGY_PREFIX_PROPERTY
86: */
87: public static final String ONTOLOGY_PREFIX_PROPERTY = "http://purl.org/vocab/vann/preferredNamespacePrefix";
88:
89: /**
90: * @see Option#ALWAYS_USE_ONTOLOGY_PREFIX
91: */
92: public static final boolean ALWAYS_USE_ONTOLOGY_PREFIX = true;
93:
94: private Defaults() {
95: throw new AssertionError();
96: }
97: }