Skip to content

Package: AbstractArchiveComponent

AbstractArchiveComponent

nameinstructionbranchcomplexitylinemethod
AbstractArchiveComponent(String)
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%
getName()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: package archive;
2:
3: /**
4: * Represents an element in an archive.
5: */
6: public abstract class AbstractArchiveComponent implements Visitable {
7:
8:         /**
9:          * The full qualified name of the archive component. Starting from the root of the archive
10:          */
11:         private final String name;
12:
13:         /**
14:          * Creates a component with the specified name.
15:          *
16:          * @param name
17:          * the name, starting from the root of the archive
18:          */
19:         public AbstractArchiveComponent(final String name) {
20:                 this.name = name;
21:         }
22:
23:         /**
24:          * Getter.
25:          *
26:          * @return the name
27:          */
28:         String getName() {
29:                 return this.name;
30:         }
31: }