Enum PackageType

  • All Implemented Interfaces:
    Serializable, Comparable<PackageType>

    public enum PackageType
    extends Enum<PackageType>
    Specifies the type of the package. The package type helps to characterize the contents of a package and influences how the package is used during deployment, installation and removal.
    • Enum Constant Detail

      • APPLICATION

        public static final PackageType APPLICATION
        An application package consists purely of application content. It serializes entire subtrees with no inclusion or exclusion filters. it does not contain any subpackages nor OSGi configuration or bundles.
      • CONTENT

        public static final PackageType CONTENT
        A content package consists only of content and user defined configuration. It usually serializes entire subtrees but can contain inclusion or exclusion filters. it does not contain any subpackages nor OSGi configuration or bundles.
      • CONTAINER

        public static final PackageType CONTAINER
        A container package only contains sub packages and OSGi configuration and bundles. The container package is only used as container for deployment.
      • MIXED

        public static final PackageType MIXED
        Catch all type for a combination of the above.
    • Method Detail

      • values

        public static PackageType[] 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 (PackageType c : PackageType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PackageType valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null