public static class PackageDefinitionStrategy.Definition.Simple extends Object implements PackageDefinitionStrategy.Definition
PackageDefinitionStrategy.Definition.Simple, PackageDefinitionStrategy.Definition.Trivial, PackageDefinitionStrategy.Definition.Undefined| Modifier and Type | Field and Description |
|---|---|
protected URL |
sealBase
The seal base or
null if the package is not sealed. |
| Constructor and Description |
|---|
Simple(String specificationTitle,
String specificationVersion,
String specificationVendor,
String implementationTitle,
String implementationVersion,
String implementationVendor,
URL sealBase)
Creates a new simple package definition.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
String |
getImplementationTitle()
Returns the package implementation's title or
null if no such title exists. |
String |
getImplementationVendor()
Returns the package implementation's vendor or
null if no such vendor exists. |
String |
getImplementationVersion()
Returns the package implementation's version or
null if no such version exists. |
URL |
getSealBase()
The URL representing the seal base.
|
String |
getSpecificationTitle()
Returns the package specification's title or
null if no such title exists. |
String |
getSpecificationVendor()
Returns the package specification's vendor or
null if no such vendor exists. |
String |
getSpecificationVersion()
Returns the package specification's version or
null if no such version exists. |
int |
hashCode() |
boolean |
isCompatibleTo(Package definedPackage)
Validates that this package definition is compatible to a previously defined package.
|
boolean |
isDefined()
Indicates if a package should be defined at all.
|
@MaybeNull protected final URL sealBase
null if the package is not sealed.public Simple(@MaybeNull String specificationTitle, @MaybeNull String specificationVersion, @MaybeNull String specificationVendor, @MaybeNull String implementationTitle, @MaybeNull String implementationVersion, @MaybeNull String implementationVendor, @MaybeNull URL sealBase)
specificationTitle - The package specification's title or null if no such title exists.specificationVersion - The package specification's version or null if no such version exists.specificationVendor - The package specification's vendor or null if no such vendor exists.implementationTitle - The package implementation's title or null if no such title exists.implementationVersion - The package implementation's version or null if no such version exists.implementationVendor - The package implementation's vendor or null if no such vendor exists.sealBase - The seal base or null if the package is not sealed.public boolean isDefined()
isDefined in interface PackageDefinitionStrategy.Definitiontrue if the package is to be defined.@MaybeNull public String getSpecificationTitle()
null if no such title exists. This method must only be called
for defined package definitions.getSpecificationTitle in interface PackageDefinitionStrategy.Definition@MaybeNull public String getSpecificationVersion()
null if no such version exists. This method must only be called
for defined package definitions.getSpecificationVersion in interface PackageDefinitionStrategy.Definition@MaybeNull public String getSpecificationVendor()
null if no such vendor exists. This method must only be called
for defined package definitions.getSpecificationVendor in interface PackageDefinitionStrategy.Definition@MaybeNull public String getImplementationTitle()
null if no such title exists. This method must only be called
for defined package definitions.getImplementationTitle in interface PackageDefinitionStrategy.Definition@MaybeNull public String getImplementationVersion()
null if no such version exists. This method must only be called
for defined package definitions.getImplementationVersion in interface PackageDefinitionStrategy.Definition@MaybeNull public String getImplementationVendor()
null if no such vendor exists. This method must only be called
for defined package definitions.getImplementationVendor in interface PackageDefinitionStrategy.Definition@MaybeNull public URL getSealBase()
getSealBase in interface PackageDefinitionStrategy.Definitionpublic boolean isCompatibleTo(Package definedPackage)
isCompatibleTo in interface PackageDefinitionStrategy.DefinitiondefinedPackage - The previously defined package.false if this package and the defined package's sealing information are not compatible.public boolean equals(@MaybeNull Object other)
Copyright © 2014–2023. All rights reserved.