public static enum PackageDefinitionStrategy.Definition.Undefined extends Enum<PackageDefinitionStrategy.Definition.Undefined> implements PackageDefinitionStrategy.Definition
PackageDefinitionStrategy.Definition.Simple, PackageDefinitionStrategy.Definition.Trivial, PackageDefinitionStrategy.Definition.Undefined
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
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. |
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.
|
static PackageDefinitionStrategy.Definition.Undefined |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PackageDefinitionStrategy.Definition.Undefined[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PackageDefinitionStrategy.Definition.Undefined INSTANCE
public static PackageDefinitionStrategy.Definition.Undefined[] values()
for (PackageDefinitionStrategy.Definition.Undefined c : PackageDefinitionStrategy.Definition.Undefined.values()) System.out.println(c);
public static PackageDefinitionStrategy.Definition.Undefined valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isDefined()
isDefined
in interface PackageDefinitionStrategy.Definition
true
if the package is to be defined.public String getSpecificationTitle()
null
if no such title exists. This method must only be called
for defined package definitions.getSpecificationTitle
in interface PackageDefinitionStrategy.Definition
public String getSpecificationVersion()
null
if no such version exists. This method must only be called
for defined package definitions.getSpecificationVersion
in interface PackageDefinitionStrategy.Definition
public String getSpecificationVendor()
null
if no such vendor exists. This method must only be called
for defined package definitions.getSpecificationVendor
in interface PackageDefinitionStrategy.Definition
public String getImplementationTitle()
null
if no such title exists. This method must only be called
for defined package definitions.getImplementationTitle
in interface PackageDefinitionStrategy.Definition
public String getImplementationVersion()
null
if no such version exists. This method must only be called
for defined package definitions.getImplementationVersion
in interface PackageDefinitionStrategy.Definition
public String getImplementationVendor()
null
if no such vendor exists. This method must only be called
for defined package definitions.getImplementationVendor
in interface PackageDefinitionStrategy.Definition
public URL getSealBase()
getSealBase
in interface PackageDefinitionStrategy.Definition
public boolean isCompatibleTo(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.Copyright © 2014–2024. All rights reserved.