| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
|
| 18 | |
package org.owasp.dependencycheck.data.nuget; |
| 19 | |
|
| 20 | |
|
| 21 | |
|
| 22 | |
|
| 23 | |
|
| 24 | |
|
| 25 | |
public class NugetPackage { |
| 26 | |
|
| 27 | |
|
| 28 | |
|
| 29 | |
private String id; |
| 30 | |
|
| 31 | |
|
| 32 | |
|
| 33 | |
|
| 34 | |
private String version; |
| 35 | |
|
| 36 | |
|
| 37 | |
|
| 38 | |
|
| 39 | |
private String title; |
| 40 | |
|
| 41 | |
|
| 42 | |
|
| 43 | |
|
| 44 | |
private String authors; |
| 45 | |
|
| 46 | |
|
| 47 | |
|
| 48 | |
|
| 49 | |
private String owners; |
| 50 | |
|
| 51 | |
|
| 52 | |
|
| 53 | |
|
| 54 | |
private String licenseUrl; |
| 55 | |
|
| 56 | |
|
| 57 | |
|
| 58 | |
|
| 59 | |
public NugetPackage() { |
| 60 | |
} |
| 61 | |
|
| 62 | |
|
| 63 | |
|
| 64 | |
|
| 65 | |
|
| 66 | |
public void setId(String id) { |
| 67 | |
this.id = id; |
| 68 | |
} |
| 69 | |
|
| 70 | |
|
| 71 | |
|
| 72 | |
|
| 73 | |
|
| 74 | |
public String getId() { |
| 75 | |
return id; |
| 76 | |
} |
| 77 | |
|
| 78 | |
|
| 79 | |
|
| 80 | |
|
| 81 | |
|
| 82 | |
public void setVersion(String version) { |
| 83 | |
this.version = version; |
| 84 | |
} |
| 85 | |
|
| 86 | |
|
| 87 | |
|
| 88 | |
|
| 89 | |
|
| 90 | |
public String getVersion() { |
| 91 | |
return version; |
| 92 | |
} |
| 93 | |
|
| 94 | |
|
| 95 | |
|
| 96 | |
|
| 97 | |
|
| 98 | |
public void setTitle(String title) { |
| 99 | |
this.title = title; |
| 100 | |
} |
| 101 | |
|
| 102 | |
|
| 103 | |
|
| 104 | |
|
| 105 | |
|
| 106 | |
public String getTitle() { |
| 107 | |
return title; |
| 108 | |
} |
| 109 | |
|
| 110 | |
|
| 111 | |
|
| 112 | |
|
| 113 | |
|
| 114 | |
public void setAuthors(String authors) { |
| 115 | |
this.authors = authors; |
| 116 | |
} |
| 117 | |
|
| 118 | |
|
| 119 | |
|
| 120 | |
|
| 121 | |
|
| 122 | |
public String getAuthors() { |
| 123 | |
return authors; |
| 124 | |
} |
| 125 | |
|
| 126 | |
|
| 127 | |
|
| 128 | |
|
| 129 | |
|
| 130 | |
public void setOwners(String owners) { |
| 131 | |
this.owners = owners; |
| 132 | |
} |
| 133 | |
|
| 134 | |
|
| 135 | |
|
| 136 | |
|
| 137 | |
|
| 138 | |
public String getOwners() { |
| 139 | |
return owners; |
| 140 | |
} |
| 141 | |
|
| 142 | |
|
| 143 | |
|
| 144 | |
|
| 145 | |
|
| 146 | |
public void setLicenseUrl(String licenseUrl) { |
| 147 | |
this.licenseUrl = licenseUrl; |
| 148 | |
} |
| 149 | |
|
| 150 | |
|
| 151 | |
|
| 152 | |
|
| 153 | |
|
| 154 | |
public String getLicenseUrl() { |
| 155 | |
return licenseUrl; |
| 156 | |
} |
| 157 | |
|
| 158 | |
@Override |
| 159 | |
public boolean equals(Object other) { |
| 160 | 0 | if (this == other) { |
| 161 | 0 | return true; |
| 162 | |
} |
| 163 | 0 | if (other == null || other.getClass() != this.getClass()) { |
| 164 | 0 | return false; |
| 165 | |
} |
| 166 | 0 | final NugetPackage o = (NugetPackage) other; |
| 167 | 0 | return o.getId().equals(id) |
| 168 | |
&& o.getVersion().equals(version) |
| 169 | |
&& o.getTitle().equals(title) |
| 170 | |
&& o.getAuthors().equals(authors) |
| 171 | |
&& o.getOwners().equals(owners) |
| 172 | |
&& o.getLicenseUrl().equals(licenseUrl); |
| 173 | |
} |
| 174 | |
|
| 175 | |
@Override |
| 176 | |
public int hashCode() { |
| 177 | 0 | int hash = 7; |
| 178 | 0 | hash = 31 * hash + (null == id ? 0 : id.hashCode()); |
| 179 | 0 | hash = 31 * hash + (null == version ? 0 : version.hashCode()); |
| 180 | 0 | hash = 31 * hash + (null == title ? 0 : title.hashCode()); |
| 181 | 0 | hash = 31 * hash + (null == authors ? 0 : authors.hashCode()); |
| 182 | 0 | hash = 31 * hash + (null == owners ? 0 : owners.hashCode()); |
| 183 | 0 | hash = 31 * hash + (null == licenseUrl ? 0 : licenseUrl.hashCode()); |
| 184 | 0 | return hash; |
| 185 | |
} |
| 186 | |
} |