Enum PackageType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PackageType>

    public enum PackageType
    extends java.lang.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 Summary

      Enum Constants 
      Enum Constant Description
      APPLICATION
      An application package consists purely of application content.
      CONTAINER
      A container package only contains sub packages and OSGi configuration and bundles.
      CONTENT
      A content package consists only of content and user defined configuration.
      MIXED
      Catch all type for a combination of the above.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PackageType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static PackageType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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​(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