Interface PackageDefinitionStrategy.Definition

All Known Implementing Classes:
PackageDefinitionStrategy.Definition.Simple, PackageDefinitionStrategy.Definition.Trivial, PackageDefinitionStrategy.Definition.Undefined
Enclosing interface:
PackageDefinitionStrategy

public static interface PackageDefinitionStrategy.Definition
A definition of a package.
  • Method Details

    • isDefined

      boolean isDefined()
      Indicates if a package should be defined at all.
      Returns:
      true if the package is to be defined.
    • getSpecificationTitle

      @MaybeNull String getSpecificationTitle()
      Returns the package specification's title or null if no such title exists. This method must only be called for defined package definitions.
      Returns:
      The package specification's title.
    • getSpecificationVersion

      @MaybeNull String getSpecificationVersion()
      Returns the package specification's version or null if no such version exists. This method must only be called for defined package definitions.
      Returns:
      The package specification's version.
    • getSpecificationVendor

      @MaybeNull String getSpecificationVendor()
      Returns the package specification's vendor or null if no such vendor exists. This method must only be called for defined package definitions.
      Returns:
      The package specification's vendor.
    • getImplementationTitle

      @MaybeNull String getImplementationTitle()
      Returns the package implementation's title or null if no such title exists. This method must only be called for defined package definitions.
      Returns:
      The package implementation's title.
    • getImplementationVersion

      @MaybeNull String getImplementationVersion()
      Returns the package implementation's version or null if no such version exists. This method must only be called for defined package definitions.
      Returns:
      The package implementation's version.
    • getImplementationVendor

      @MaybeNull String getImplementationVendor()
      Returns the package implementation's vendor or null if no such vendor exists. This method must only be called for defined package definitions.
      Returns:
      The package implementation's vendor.
    • getSealBase

      @MaybeNull URL getSealBase()
      The URL representing the seal base. This method must only be called for defined package definitions.
      Returns:
      The seal base of the package.
    • isCompatibleTo

      boolean isCompatibleTo(Package definedPackage)
      Validates that this package definition is compatible to a previously defined package. This method must only be called for defined package definitions.
      Parameters:
      definedPackage - The previously defined package.
      Returns:
      false if this package and the defined package's sealing information are not compatible.