Fix field names, add getters to j.l.Package

This commit is contained in:
Simon Ochsenreither 2013-02-04 14:09:02 +01:00
parent 5dcf6eae5a
commit 57a67fb312

View File

@ -17,34 +17,66 @@ public class Package {
private final String implementationTitle;
private final String implementationVendor;
private final String implementationVersion;
private final String specementationTitle;
private final String specementationVendor;
private final String specementationVersion;
private final String specificationTitle;
private final String specificationVendor;
private final String specificationVersion;
private final URL sealed;
private final ClassLoader loader;
Package(String name,
String implementationTitle,
String implementationVendor,
String implementationVersion,
String specementationTitle,
String specementationVendor,
String specementationVersion,
URL sealed,
String implementationTitle,
String implementationVendor,
String implementationVersion,
String specificationTitle,
String specificationVendor,
String specificationVersion,
URL sealed,
ClassLoader loader)
{
this.name = name;
this.implementationTitle = implementationTitle;
this.implementationVendor = implementationVendor;
this.name = name;
this.implementationTitle = implementationTitle;
this.implementationVendor = implementationVendor;
this.implementationVersion = implementationVersion;
this.specementationTitle = specementationTitle;
this.specementationVendor = specementationVendor;
this.specementationVersion = specementationVersion;
this.sealed = sealed;
this.loader = loader;
this.specificationTitle = specificationTitle;
this.specificationVendor = specificationVendor;
this.specificationVersion = specificationVersion;
this.sealed = sealed;
this.loader = loader;
}
public String getName() {
return name;
}
public String getImplementationTitle() {
return implementationTitle;
}
public String getImplementationVendor() {
return implementationVendor;
}
public String getImplementationVersion() {
return implementationVersion;
}
public String getSpecificationTitle() {
return specificationTitle;
}
public String getSpecificationVendor() {
return specificationVendor;
}
public String getSpecificationVersion() {
return specificationVersion;
}
public boolean isSealed() {
return sealed != null;
}
public boolean isSealed(URL url) {
return sealed.equals(url);
}
}