Class PkgDescExtra

    • Method Detail

      • getOldPaths

        @NonNull
        public java.lang.String[] getOldPaths()
        Deprecated.
        Description copied from interface: IPkgDescExtra
        Returns an optional list of older paths for this extra package.
        Specified by:
        getOldPaths in interface IPkgDescExtra
        Returns:
        A non-null, possibly empty, for old paths previously used for the same extra.
      • getNameDisplay

        @NonNull
        public java.lang.String getNameDisplay()
        Deprecated.
        Description copied from interface: IPkgDescExtra
        Returns the display name of the Extra.
        Specified by:
        getNameDisplay in interface IPkgDescExtra
        Returns:
        A non-null name for the Extra, used for display purposes.
      • convertOldPaths

        @NonNull
        public static java.lang.String[] convertOldPaths​(@Nullable
                                                         java.lang.String oldPathsProperty)
        Deprecated.
        Helper method that converts the old_paths property string into the an old paths array.
        Parameters:
        oldPathsProperty - A possibly-null old_path property string.
        Returns:
        A list of old paths split by their separator. Can be empty but not null.
      • compatibleVendorAndPath

        public static boolean compatibleVendorAndPath​(@NonNull
                                                      IPkgDescExtra lhs,
                                                      @NonNull
                                                      IPkgDescExtra rhs)
        Deprecated.
        Helper to computhe whether the extra path of both IPkgDescExtras are compatible with each other, which means they are either equal or are matched between existing path and the potential old paths list.

        This also covers backward compatibility -- in earlier schemas the vendor id was merged into the path string when reloading installed extras.

        Parameters:
        lhs - A non-null IPkgDescExtra.
        rhs - Another non-null IPkgDescExtra.
        Returns:
        true if the paths are compatible.