public static class PackageDefinitionStrategy.Definition.Simple extends java.lang.Object implements PackageDefinitionStrategy.Definition
PackageDefinitionStrategy.Definition.Simple, PackageDefinitionStrategy.Definition.Trivial, PackageDefinitionStrategy.Definition.Undefined
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
implementationTitle
The package implementation's title or
null if no such title exists. |
private java.lang.String |
implementationVendor
The package implementation's vendor or
null if no such vendor exists. |
private java.lang.String |
implementationVersion
The package implementation's version or
null if no such version exists. |
protected java.net.URL |
sealBase
The seal base or
null if the package is not sealed. |
private java.lang.String |
specificationTitle
The package specification's title or
null if no such title exists. |
private java.lang.String |
specificationVendor
The package specification's vendor or
null if no such vendor exists. |
private java.lang.String |
specificationVersion
The package specification's version or
null if no such version exists. |
Constructor and Description |
---|
Simple(java.lang.String specificationTitle,
java.lang.String specificationVersion,
java.lang.String specificationVendor,
java.lang.String implementationTitle,
java.lang.String implementationVersion,
java.lang.String implementationVendor,
java.net.URL sealBase)
Creates a new simple package definition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getImplementationTitle()
Returns the package implementation's title or
null if no such title exists. |
java.lang.String |
getImplementationVendor()
Returns the package implementation's vendor or
null if no such vendor exists. |
java.lang.String |
getImplementationVersion()
Returns the package implementation's version or
null if no such version exists. |
java.net.URL |
getSealBase()
The URL representing the seal base.
|
java.lang.String |
getSpecificationTitle()
Returns the package specification's title or
null if no such title exists. |
java.lang.String |
getSpecificationVendor()
Returns the package specification's vendor or
null if no such vendor exists. |
java.lang.String |
getSpecificationVersion()
Returns the package specification's version or
null if no such version exists. |
int |
hashCode() |
boolean |
isCompatibleTo(java.lang.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.
|
protected final java.net.URL sealBase
null
if the package is not sealed.private final java.lang.String specificationTitle
null
if no such title exists.private final java.lang.String specificationVersion
null
if no such version exists.private final java.lang.String specificationVendor
null
if no such vendor exists.private final java.lang.String implementationTitle
null
if no such title exists.private final java.lang.String implementationVersion
null
if no such version exists.private final java.lang.String implementationVendor
null
if no such vendor exists.public Simple(java.lang.String specificationTitle, java.lang.String specificationVersion, java.lang.String specificationVendor, java.lang.String implementationTitle, java.lang.String implementationVersion, java.lang.String implementationVendor, java.net.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.Definition
true
if the package is to be defined.public java.lang.String getSpecificationTitle()
null
if no such title exists. This method must only be called
for defined package definitions.getSpecificationTitle
in interface PackageDefinitionStrategy.Definition
public java.lang.String getSpecificationVersion()
null
if no such version exists. This method must only be called
for defined package definitions.getSpecificationVersion
in interface PackageDefinitionStrategy.Definition
public java.lang.String getSpecificationVendor()
null
if no such vendor exists. This method must only be called
for defined package definitions.getSpecificationVendor
in interface PackageDefinitionStrategy.Definition
public java.lang.String getImplementationTitle()
null
if no such title exists. This method must only be called
for defined package definitions.getImplementationTitle
in interface PackageDefinitionStrategy.Definition
public java.lang.String getImplementationVersion()
null
if no such version exists. This method must only be called
for defined package definitions.getImplementationVersion
in interface PackageDefinitionStrategy.Definition
public java.lang.String getImplementationVendor()
null
if no such vendor exists. This method must only be called
for defined package definitions.getImplementationVendor
in interface PackageDefinitionStrategy.Definition
public java.net.URL getSealBase()
getSealBase
in interface PackageDefinitionStrategy.Definition
public boolean isCompatibleTo(java.lang.Package definedPackage)
isCompatibleTo
in interface PackageDefinitionStrategy.Definition
definedPackage
- The previously defined package.false
if this package and the defined package's sealing information are not compatible.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object