Skip to content

Package: EnumType

EnumType

nameinstructionbranchcomplexitylinemethod
static {...}
M: 0 C: 34
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 4
100%
M: 0 C: 1
100%

Coverage

1: package cz.cvut.kbss.jopa.model.annotations;
2:
3: /**
4: * Defines mapping for enumerated types.
5: * <p>
6: * The constants of this enumerated type specify how a persistent property or field of an enumerated type should be
7: * persisted.
8: */
9: public enum EnumType {
10: /**
11: * Persist enumerated type property or field as an individual assumed to be an element of a {@literal
12: * owl:ObjectOneOf} enumeration.
13: * <p>
14: * Note that in this case the enum constants must be annotated with {@link Individual} mapping them to ontological
15: * individuals.
16: */
17: OBJECT_ONE_OF,
18:
19: /**
20: * Persist enumerated type property or field as an integer representing the ordinal number of the enumerated
21: * constant.
22: */
23: ORDINAL,
24:
25: /**
26: * Persist enumerated type property or field as a string representation of the enumerated constant.
27: */
28: STRING
29: }