Clover icon

Coverage Report

  1. Project Clover database Wed Feb 4 2026 17:46:51 GMT
  2. Package jalview.datamodel

File AnnotationMapping.java

 

Coverage histogram

../../img/srcFileCovDistChart10.png
0% of files have more coverage

Code metrics

0
9
9
1
67
44
9
1
1
9
1

Classes

Class Line # Actions
AnnotationMapping 3 9 9
1.0100%
 

Contributing tests

This file is covered by 10 tests. .

Source view

1    package jalview.datamodel;
2   
 
3    public abstract class AnnotationMapping
4    {
5   
6   
7    String label = null;
8   
9    // Stores additional details of annotation
10    // like pdb id, chain id
11    String annotationDetails = null;
12   
13    AlignmentAnnotation alignmentAnnotation = null;
14   
15    /**
16    * check if there's a label to show
17    *
18    * @return true if non-empty/null string
19    */
 
20  14033 toggle public boolean hasLabel()
21    {
22  14033 return label != null && !label.isEmpty();
23    }
24   
 
25  2754 toggle public String getLabel()
26    {
27  2754 return label;
28    }
29   
 
30  2074 toggle public void setLabel(String label)
31    {
32  2074 this.label = label;
33    }
34   
 
35  673 toggle public boolean hasAnnotationDetails()
36    {
37  673 return annotationDetails != null && !annotationDetails.isEmpty();
38    }
39   
 
40  36 toggle public String getAnnotationDetails()
41    {
42  36 return annotationDetails;
43    }
44   
 
45  17 toggle public void setAnnotationDetails(String annotationDetails)
46    {
47  17 this.annotationDetails = annotationDetails;
48    }
49   
 
50  705 toggle public boolean hasAlignmentAnnotation()
51    {
52  705 return alignmentAnnotation != null;
53    }
54   
 
55  732 toggle public AlignmentAnnotation getAlignmentAnnotation()
56    {
57  732 return alignmentAnnotation;
58    }
59   
 
60  40 toggle public void setAlignmentAnnotation(AlignmentAnnotation alignmentAnnotation)
61    {
62  40 this.alignmentAnnotation = alignmentAnnotation;
63    }
64   
65    public abstract String getDisplayName();
66   
67    }