• 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

81.82
/src/main/java/de/gwdg/metadataqa/marc/utils/unimarc/UnimarcSchemaManager.java
1
package de.gwdg.metadataqa.marc.utils.unimarc;
2

3

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

8
public class UnimarcSchemaManager implements Serializable {
1✔
9

10
    private static final long serialVersionUID = 8993916778277534476L;
11
    private UnimarcLeaderDefinition leaderDefinition;
12
    private final Map<String, UnimarcFieldDefinition> fieldDirectory = new HashMap<>();
1✔
13

14
    public void add(UnimarcFieldDefinition fieldDefinition) {
15
        fieldDirectory.put(fieldDefinition.getTag(), fieldDefinition);
1✔
16
    }
1✔
17

18
    public int size() {
19
        return fieldDirectory.size();
1✔
20
    }
21

22
    /**
23
     * Retrieve a field definition by the given dataField's tag.
24
     * This method is used as a means of keeping consistency with the PicaSchemaManager in hopes of being
25
     * able to provide a unified interface for both in the future.
26
     * @param dataField The data field to look up
27
     * @return The definition for the respective dataField
28
     */
29
    public UnimarcFieldDefinition lookup(UnimarcDataField dataField) {
NEW
30
        String tag = dataField.getTag();
×
NEW
31
        return lookup(tag);
×
32
    }
33

34
    public UnimarcFieldDefinition lookup(String searchTerm) {
35
        return fieldDirectory.get(searchTerm);
1✔
36
    }
37

38
    public UnimarcLeaderDefinition getLeaderDefinition() {
39
        return leaderDefinition;
1✔
40
    }
41

42
    public void setLeaderDefinition(UnimarcLeaderDefinition leaderDefinition) {
43
        this.leaderDefinition = leaderDefinition;
1✔
44
    }
1✔
45
}
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