Enum PackageDefinitionStrategy.Definition.Undefined

java.lang.Object
java.lang.Enum<PackageDefinitionStrategy.Definition.Undefined>
net.bytebuddy.dynamic.loading.PackageDefinitionStrategy.Definition.Undefined
All Implemented Interfaces:
Serializable, Comparable<PackageDefinitionStrategy.Definition.Undefined>, java.lang.constant.Constable, PackageDefinitionStrategy.Definition
Enclosing interface:
PackageDefinitionStrategy.Definition

public static enum PackageDefinitionStrategy.Definition.Undefined extends Enum<PackageDefinitionStrategy.Definition.Undefined> implements PackageDefinitionStrategy.Definition
A canonical implementation of an undefined package.
  • Enum Constant Details

  • Constructor Details

    • Undefined

      private Undefined()
  • Method Details

    • values

      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • isDefined

      public boolean isDefined()
      Indicates if a package should be defined at all.
      Specified by:
      isDefined in interface PackageDefinitionStrategy.Definition
      Returns:
      true if the package is to be defined.
    • getSpecificationTitle

      public 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.
      Specified by:
      getSpecificationTitle in interface PackageDefinitionStrategy.Definition
      Returns:
      The package specification's title.
    • getSpecificationVersion

      public 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.
      Specified by:
      getSpecificationVersion in interface PackageDefinitionStrategy.Definition
      Returns:
      The package specification's version.
    • getSpecificationVendor

      public 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.
      Specified by:
      getSpecificationVendor in interface PackageDefinitionStrategy.Definition
      Returns:
      The package specification's vendor.
    • getImplementationTitle

      public 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.
      Specified by:
      getImplementationTitle in interface PackageDefinitionStrategy.Definition
      Returns:
      The package implementation's title.
    • getImplementationVersion

      public 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.
      Specified by:
      getImplementationVersion in interface PackageDefinitionStrategy.Definition
      Returns:
      The package implementation's version.
    • getImplementationVendor

      public 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.
      Specified by:
      getImplementationVendor in interface PackageDefinitionStrategy.Definition
      Returns:
      The package implementation's vendor.
    • getSealBase

      public URL getSealBase()
      The URL representing the seal base. This method must only be called for defined package definitions.
      Specified by:
      getSealBase in interface PackageDefinitionStrategy.Definition
      Returns:
      The seal base of the package.
    • isCompatibleTo

      public 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.
      Specified by:
      isCompatibleTo in interface PackageDefinitionStrategy.Definition
      Parameters:
      definedPackage - The previously defined package.
      Returns:
      false if this package and the defined package's sealing information are not compatible.