@Deprecated public class PackageId extends java.lang.Object implements java.lang.Comparable<PackageId>
PackageId provides the basic metrics for identifying a package.
A package id consists of a group id, a name and a version.
the group is a relative path, eg: "day/cq5/hotfix", the name and the version
can be of any format.| Modifier and Type | Field and Description |
|---|---|
static PackageId[] |
EMPTY
Deprecated.
|
static java.lang.String |
ETC_PACKAGES
Deprecated.
|
static java.lang.String |
ETC_PACKAGES_PREFIX
Deprecated.
|
| Constructor and Description |
|---|
PackageId(java.lang.String path)
Deprecated.
Creates a new package id
|
PackageId(java.lang.String path,
java.lang.String version)
Deprecated.
Creates a new package id
|
PackageId(java.lang.String group,
java.lang.String name,
java.lang.String version)
Deprecated.
Creates a new package id
|
PackageId(java.lang.String group,
java.lang.String name,
Version version)
Deprecated.
Creates a new package id
|
PackageId(java.lang.String path,
Version version)
Deprecated.
Creates a new package id
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(PackageId o)
Deprecated.
Compares this id with the given one.
|
static PackageId |
create(PackageId id)
Deprecated.
|
static PackageId |
create(PackageId id)
Deprecated.
|
boolean |
equals(java.lang.Object o)
Deprecated.
|
static PackageId[] |
fromString(java.lang.String... str)
Deprecated.
Returns an array of package id from strings
|
static PackageId |
fromString(java.lang.String str)
Deprecated.
Returns a package id from a id string.
|
java.lang.String |
getDownloadName()
Deprecated.
Returns a download name in the form
name [ "-" version ] ".zip" |
java.lang.String |
getGroup()
Deprecated.
Returns the group id of this package
|
java.lang.String |
getGroupId()
Deprecated.
use
getGroup() instead. |
java.lang.String |
getInstallationPath()
Deprecated.
Returns the path of this package.
|
java.lang.String |
getName()
Deprecated.
Returns the name of this package which is the last segment of the path.
|
java.lang.String |
getPath()
Deprecated.
use
getInstallationPath() instead |
Version |
getVersion()
Deprecated.
Returns the version of this package or
null if n/a. |
java.lang.String |
getVersionString()
Deprecated.
Returns the version of this package or and empty string if n/a.
|
int |
hashCode()
Deprecated.
|
boolean |
isFromPath()
Deprecated.
Checks if this definition was constructed from a path, rather from a
group and name.
|
java.lang.String |
toString()
Deprecated.
Returns a string representation of this id
|
static java.lang.String |
toString(PackageId... packs)
Deprecated.
Creates a comma separated list of id strings.
|
public static final java.lang.String ETC_PACKAGES
public static final java.lang.String ETC_PACKAGES_PREFIX
public static final PackageId[] EMPTY
public PackageId(java.lang.String path)
path - path of the packagepublic PackageId(java.lang.String path,
java.lang.String version)
path - path of the packageversion - version of the packagepublic PackageId(java.lang.String path,
Version version)
path - path of the packageversion - version of the packagepublic PackageId(java.lang.String group,
java.lang.String name,
java.lang.String version)
group - group idname - nameversion - versionpublic PackageId(java.lang.String group,
java.lang.String name,
Version version)
group - group idname - nameversion - versionpublic static PackageId fromString(java.lang.String str)
null is returned.str - the stringpublic static PackageId[] fromString(java.lang.String... str)
str - the stringspublic static java.lang.String toString(PackageId... packs)
packs - the idspublic java.lang.String getPath()
getInstallationPath() insteadpublic boolean isFromPath()
true if constructed from path.public java.lang.String getInstallationPath()
public java.lang.String getGroupId()
getGroup() instead.public java.lang.String getGroup()
public java.lang.String getName()
public java.lang.String getVersionString()
public java.lang.String getDownloadName()
name [ "-" version ] ".zip"public Version getVersion()
null if n/a.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(PackageId o)
compareTo in interface java.lang.Comparable<PackageId>"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"