• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pkiraly / metadata-qa-marc / #1527

22 Aug 2025 02:21PM UTC coverage: 90.345%. Remained the same
#1527

push

pkiraly
Improve timeline handling

5191 of 6416 new or added lines in 219 files covered. (80.91%)

886 existing lines in 78 files now uncovered.

36717 of 40641 relevant lines covered (90.34%)

0.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

96.43
/src/main/java/de/gwdg/metadataqa/marc/EncodedValue.java
1
package de.gwdg.metadataqa.marc;
2

3
import java.io.Serializable;
4
import java.util.HashMap;
5
import java.util.Map;
6

7
/**
8
 *
9
 * @author Péter Király <peter.kiraly at gwdg.de>
10
 */
11
public class EncodedValue implements Serializable {
12
  private static final long serialVersionUID = -8662632239051931116L;
13
  private String code;
14
  private String label;
15
  private boolean isRange = false;
1✔
16
  private boolean isRegex = false;
1✔
17
  private String bibframeTag = null;
1✔
18
  private Range range = null;
1✔
19
  private Map<Integer, String> regexGroups = null;
1✔
20

21
  public EncodedValue(String code, String label) {
1✔
22
    this.code = code;
1✔
23
    this.label = label;
1✔
24
  }
1✔
25

26
  public String getCode() {
27
    return code;
1✔
28
  }
29

30
  public String getLabel() {
31
    return label;
1✔
32
  }
33

34
  public boolean isRange() {
35
    return isRange;
1✔
36
  }
37

38
  public void setRange(boolean isRange) {
39
    if (isRange) {
1✔
40
      this.range = new Range(code);
1✔
41
    }
42
    this.isRange = isRange;
1✔
43
  }
1✔
44

45
  public Range getRange() {
46
    return range;
1✔
47
  }
48

49
  public boolean isRegex() {
50
    return isRegex;
1✔
51
  }
52

53
  public void setRegex(boolean regex) {
54
    isRegex = regex;
1✔
55
    regexGroups = new HashMap<>();
1✔
56
  }
1✔
57

58
  public Map<Integer, String> getRegexGroups() {
NEW
59
    return regexGroups;
×
60
  }
61

62
  public void setRegexGroups(Map<Integer, String> regexGroups) {
63
    this.regexGroups = regexGroups;
1✔
64
  }
1✔
65

66
  public String getBibframeTag() {
67
    return bibframeTag;
1✔
68
  }
69

70
  public void setBibframeTag(String bibframeTag) {
71
    this.bibframeTag = bibframeTag;
1✔
72
  }
1✔
73

74
  @Override
75
  public String toString() {
76
    return "Code{" +
1✔
77
        "code='" + code + '\'' +
78
        ", label='" + label + '\'' +
79
        '}';
80
  }
81
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc