public class Package extends Object
Modifier and Type | Method and Description |
---|---|
String |
getImplementationTitle()
Get the implementation title of this Package.
|
String |
getImplementationVendor()
Get the implementation vendor of this Package.
|
String |
getImplementationVersion()
Get the implementation version of this Package.
|
String |
getName()
Get the name of this Package.
|
static Package |
getPackage(String name)
Find a package by name.
|
static Package[] |
getPackages()
Get all known packages.
|
String |
getSpecificationTitle()
Get the specification title of this Package.
|
String |
getSpecificationVendor()
Get the specification vendor of this Package.
|
String |
getSpecificationVersion()
Get the specification version of this Package.
|
int |
hashCode()
The hashcode of a Package is simply the hashcode of its name.
|
boolean |
isCompatibleWith(String target)
Returns true iff this package is compatible with the given version.
|
boolean |
isSealed()
Returns true iff this package is sealed.
|
boolean |
isSealed(URL sealer)
Returns true iff this package is sealed with the given URL.
|
String |
toString()
The string representation is ``package'' plus name, title, version.
|
public String getImplementationTitle()
public String getImplementationVendor()
public String getImplementationVersion()
public String getSpecificationTitle()
public String getSpecificationVendor()
public String getSpecificationVersion()
public String getName()
public boolean isSealed()
public boolean isSealed(URL sealer)
public boolean isCompatibleWith(String target) throws NumberFormatException
NumberFormatException
public static Package getPackage(String name)
public static Package[] getPackages()
public int hashCode()