Enum PackageDefinitionStrategy.Definition.Trivial

    • Field Detail

      • NO_VALUE

        private static final java.lang.String NO_VALUE
        An empty value of a package's property.
      • NOT_SEALED

        private static final java.net.URL NOT_SEALED
        Represents an unsealed package.
    • Constructor Detail

      • Trivial

        private Trivial()
    • Method Detail

      • values

        public static PackageDefinitionStrategy.Definition.Trivial[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PackageDefinitionStrategy.Definition.Trivial c : PackageDefinitionStrategy.Definition.Trivial.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PackageDefinitionStrategy.Definition.Trivial valueOf​(java.lang.String name)
        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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getSpecificationTitle

        public java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.net.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​(java.lang.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.