public static enum PackageDefinitionStrategy.Definition.Trivial extends java.lang.Enum<PackageDefinitionStrategy.Definition.Trivial> implements PackageDefinitionStrategy.Definition
PackageDefinitionStrategy.Definition.Simple, PackageDefinitionStrategy.Definition.Trivial, PackageDefinitionStrategy.Definition.Undefined
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
NO_VALUE
An empty value of a package's property.
|
private static java.net.URL |
NOT_SEALED
Represents an unsealed package.
|
Modifier and Type | Method and Description |
---|---|
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. |
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.
|
static PackageDefinitionStrategy.Definition.Trivial |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PackageDefinitionStrategy.Definition.Trivial[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PackageDefinitionStrategy.Definition.Trivial INSTANCE
private static final java.lang.String NO_VALUE
private static final java.net.URL NOT_SEALED
public static PackageDefinitionStrategy.Definition.Trivial[] values()
for (PackageDefinitionStrategy.Definition.Trivial c : PackageDefinitionStrategy.Definition.Trivial.values()) System.out.println(c);
public static PackageDefinitionStrategy.Definition.Trivial valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic 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.