| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| License |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Copyright 2015 OWASP. | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 16 | package org.owasp.dependencycheck.xml.pom; | |
| 17 | ||
| 18 | /** | |
| 19 | * | |
| 20 | * @author jeremy | |
| 21 | */ | |
| 22 | public class License { | |
| 23 | ||
| 24 | 0 | public License() { |
| 25 | 0 | } |
| 26 | ||
| 27 | /** | |
| 28 | * Constructs a new license. | |
| 29 | * | |
| 30 | * @param name | |
| 31 | * @param url | |
| 32 | */ | |
| 33 | 0 | public License(String name, String url) { |
| 34 | 0 | this.url = url; |
| 35 | 0 | this.name = name; |
| 36 | ||
| 37 | 0 | } |
| 38 | ||
| 39 | /** | |
| 40 | * The url to the license. | |
| 41 | */ | |
| 42 | private String url; | |
| 43 | ||
| 44 | /** | |
| 45 | * Get the value of url. | |
| 46 | * | |
| 47 | * @return the value of url | |
| 48 | */ | |
| 49 | public String getUrl() { | |
| 50 | 0 | return url; |
| 51 | } | |
| 52 | ||
| 53 | /** | |
| 54 | * Set the value of url. | |
| 55 | * | |
| 56 | * @param url new value of url | |
| 57 | */ | |
| 58 | public void setUrl(String url) { | |
| 59 | 0 | this.url = url; |
| 60 | 0 | } |
| 61 | ||
| 62 | /** | |
| 63 | * The name of the license. | |
| 64 | */ | |
| 65 | private String name; | |
| 66 | ||
| 67 | /** | |
| 68 | * Get the value of name. | |
| 69 | * | |
| 70 | * @return the value of name | |
| 71 | */ | |
| 72 | public String getName() { | |
| 73 | 0 | return name; |
| 74 | } | |
| 75 | ||
| 76 | /** | |
| 77 | * Set the value of name. | |
| 78 | * | |
| 79 | * @param name new value of name | |
| 80 | */ | |
| 81 | public void setName(String name) { | |
| 82 | 0 | this.name = name; |
| 83 | 0 | } |
| 84 | ||
| 85 | } |