Classes in this File | Line Coverage | Branch Coverage | Complexity | |||||||
JarDependencyDetails |
|
| 1.0;1 |
1 | package org.apache.maven.report.projectinfo.dependencies; |
|
2 | ||
3 | /* |
|
4 | * Copyright 2004-2006 The Apache Software Foundation. |
|
5 | * |
|
6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
|
7 | * you may not use this file except in compliance with the License. |
|
8 | * You may obtain a copy of the License at |
|
9 | * |
|
10 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
11 | * |
|
12 | * Unless required by applicable law or agreed to in writing, software |
|
13 | * distributed under the License is distributed on an "AS IS" BASIS, |
|
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
15 | * See the License for the specific language governing permissions and |
|
16 | * limitations under the License. |
|
17 | */ |
|
18 | ||
19 | import org.apache.maven.shared.jar.classes.JarClasses; |
|
20 | ||
21 | import java.util.List; |
|
22 | ||
23 | public class JarDependencyDetails |
|
24 | { |
|
25 | private JarClasses jarClasses; |
|
26 | ||
27 | private boolean isSealed; |
|
28 | ||
29 | private List entries; |
|
30 | ||
31 | public JarDependencyDetails( JarClasses classes, boolean sealed, List entries ) |
|
32 | 0 | { |
33 | 0 | jarClasses = classes; |
34 | 0 | isSealed = sealed; |
35 | 0 | this.entries = entries; |
36 | 0 | } |
37 | ||
38 | public boolean isDebugPresent() |
|
39 | { |
|
40 | 0 | return jarClasses.isDebugPresent(); |
41 | } |
|
42 | ||
43 | public boolean isSealed() |
|
44 | { |
|
45 | 0 | return isSealed; |
46 | } |
|
47 | ||
48 | public String getJdkRevision() |
|
49 | { |
|
50 | 0 | return jarClasses.getJdkRevision(); |
51 | } |
|
52 | ||
53 | public long getPackageSize() |
|
54 | { |
|
55 | 0 | return jarClasses.getPackages().size(); |
56 | } |
|
57 | ||
58 | public long getClassSize() |
|
59 | { |
|
60 | 0 | return jarClasses.getClassNames().size(); |
61 | } |
|
62 | ||
63 | public long getEntries() |
|
64 | { |
|
65 | 0 | return entries.size(); |
66 | } |
|
67 | } |