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.
|
String |
toString() |
protected final URL sealBase
null
if the package is not sealed.public Simple(String specificationTitle, String specificationVersion, String specificationVendor, String implementationTitle, String implementationVersion, String implementationVendor, 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()
PackageDefinitionStrategy.Definition
isDefined
in interface PackageDefinitionStrategy.Definition
true
if the package is to be defined.public String getSpecificationTitle()
PackageDefinitionStrategy.Definition
null
if no such title exists. This method must only be called
for defined package definitions.getSpecificationTitle
in interface PackageDefinitionStrategy.Definition
public String getSpecificationVersion()
PackageDefinitionStrategy.Definition
null
if no such version exists. This method must only be called
for defined package definitions.getSpecificationVersion
in interface PackageDefinitionStrategy.Definition
public String getSpecificationVendor()
PackageDefinitionStrategy.Definition
null
if no such vendor exists. This method must only be called
for defined package definitions.getSpecificationVendor
in interface PackageDefinitionStrategy.Definition
public String getImplementationTitle()
PackageDefinitionStrategy.Definition
null
if no such title exists. This method must only be called
for defined package definitions.getImplementationTitle
in interface PackageDefinitionStrategy.Definition
public String getImplementationVersion()
PackageDefinitionStrategy.Definition
null
if no such version exists. This method must only be called
for defined package definitions.getImplementationVersion
in interface PackageDefinitionStrategy.Definition
public String getImplementationVendor()
PackageDefinitionStrategy.Definition
null
if no such vendor exists. This method must only be called
for defined package definitions.getImplementationVendor
in interface PackageDefinitionStrategy.Definition
public URL getSealBase()
PackageDefinitionStrategy.Definition
getSealBase
in interface PackageDefinitionStrategy.Definition
public boolean isCompatibleTo(Package definedPackage)
PackageDefinitionStrategy.Definition
isCompatibleTo
in interface PackageDefinitionStrategy.Definition
definedPackage
- The previously defined package.false
if this package and the defined package's sealing information are not compatible.Copyright © 2014–2015. All rights reserved.