Package: TargetClassResolverConfig
TargetClassResolverConfig
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TargetClassResolverConfig() |
|
|
|
|
|
||||||||||||||||||||
TargetClassResolverConfig(boolean, boolean, boolean) |
|
|
|
|
|
||||||||||||||||||||
isOptimisticTypeResolutionEnabled() |
|
|
|
|
|
||||||||||||||||||||
shouldAllowAssumingTargetType() |
|
|
|
|
|
||||||||||||||||||||
shouldPreferSuperclass() |
|
|
|
|
|
Coverage
1: package cz.cvut.kbss.jsonld.deserialization.util;
2:
3: /**
4: * Configuration object for the {@link TargetClassResolver}.
5: */
6: public final class TargetClassResolverConfig {
7:
8: private final boolean allowAssumingTargetType;
9: private final boolean optimisticTypeResolutionEnabled;
10: private final boolean preferSuperclass;
11:
12: public TargetClassResolverConfig() {
13: this.allowAssumingTargetType = false;
14: this.optimisticTypeResolutionEnabled = false;
15: this.preferSuperclass = false;
16: }
17:
18: public TargetClassResolverConfig(boolean allowAssumingTargetType, boolean optimisticTypeResolutionEnabled,
19: boolean preferSuperclass) {
20: this.allowAssumingTargetType = allowAssumingTargetType;
21: this.optimisticTypeResolutionEnabled = optimisticTypeResolutionEnabled;
22: this.preferSuperclass = preferSuperclass;
23: }
24:
25: public boolean shouldAllowAssumingTargetType() {
26: return allowAssumingTargetType;
27: }
28:
29: public boolean isOptimisticTypeResolutionEnabled() {
30: return optimisticTypeResolutionEnabled;
31: }
32:
33: public boolean shouldPreferSuperclass() {
34: return preferSuperclass;
35: }
36: }