Enum Catalog.VersioningState

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Catalog.VersioningState>
    Enclosing class:
    Catalog

    public static enum Catalog.VersioningState
    extends java.lang.Enum<Catalog.VersioningState>
    An enumeration of the possible versioning states for a listing.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      INSTALLED_IS_NEWER
      This plug-in bundle is installed, but its version is newer than the one in the listing.
      NOT_INSTALLED
      This plug-in bundle is not currently installed.
      OUT_OF_DATE
      This plug-in bundle is installed, but the listing is for a newer version.
      OUT_OF_DATE_LEGACY
      There is a plug-in bundle with the same file name installed, but the installed bundle does not have catalogue information embedded.
      REQUIRES_APP_UPDATE
      This listing requires a newer version of the application.
      UP_TO_DATE
      This plug-in bundle is installed and has the same or a newer date than the listing.
    • Method Summary

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

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

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • NOT_INSTALLED

        public static final Catalog.VersioningState NOT_INSTALLED
        This plug-in bundle is not currently installed.
      • UP_TO_DATE

        public static final Catalog.VersioningState UP_TO_DATE
        This plug-in bundle is installed and has the same or a newer date than the listing.
      • OUT_OF_DATE

        public static final Catalog.VersioningState OUT_OF_DATE
        This plug-in bundle is installed, but the listing is for a newer version. (The installed version is out of date.)
      • OUT_OF_DATE_LEGACY

        public static final Catalog.VersioningState OUT_OF_DATE_LEGACY
        There is a plug-in bundle with the same file name installed, but the installed bundle does not have catalogue information embedded. The listing is probably an updated version of a legacy version of the plug-in, but it may also simply use the same file name.
      • INSTALLED_IS_NEWER

        public static final Catalog.VersioningState INSTALLED_IS_NEWER
        This plug-in bundle is installed, but its version is newer than the one in the listing. This may indicate that the catalog was not updated to match the plug-in.
      • REQUIRES_APP_UPDATE

        public static final Catalog.VersioningState REQUIRES_APP_UPDATE
        This listing requires a newer version of the application. This takes precedence over other states; if the listing is installed but requires a newer version, then this is returned.
    • Method Detail

      • values

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

        public static Catalog.VersioningState 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