@Deprecated public class PackageId extends Object implements 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 String |
ETC_PACKAGES
Deprecated.
|
static String |
ETC_PACKAGES_PREFIX
Deprecated.
|
Constructor and Description |
---|
PackageId(String path)
Deprecated.
Creates a new package id
|
PackageId(String path,
String version)
Deprecated.
Creates a new package id
|
PackageId(String group,
String name,
String version)
Deprecated.
Creates a new package id
|
PackageId(String group,
String name,
Version version)
Deprecated.
Creates a new package id
|
PackageId(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(Object o)
Deprecated.
|
static PackageId[] |
fromString(String... str)
Deprecated.
Returns an array of package id from strings
|
static PackageId |
fromString(String str)
Deprecated.
Returns a package id from a id string.
|
String |
getDownloadName()
Deprecated.
Returns a download name in the form
name [ "-" version ] ".zip" |
String |
getGroup()
Deprecated.
Returns the group id of this package
|
String |
getGroupId()
Deprecated.
use
getGroup() instead. |
String |
getInstallationPath()
Deprecated.
Returns the path of this package.
|
String |
getName()
Deprecated.
Returns the name of this package which is the last segment of the path.
|
String |
getPath()
Deprecated.
use
getInstallationPath() instead |
Version |
getVersion()
Deprecated.
Returns the version of this package or
null if n/a. |
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.
|
String |
toString()
Deprecated.
Returns a string representation of this id
|
static String |
toString(PackageId... packs)
Deprecated.
Creates a comma separated list of id strings.
|
public static final String ETC_PACKAGES
public static final String ETC_PACKAGES_PREFIX
public static final PackageId[] EMPTY
public PackageId(String path)
path
- path of the packagepublic PackageId(String path, String version)
path
- path of the packageversion
- version of the packagepublic PackageId(String path, Version version)
path
- path of the packageversion
- version of the packagepublic PackageId(String group, String name, String version)
group
- group idname
- nameversion
- versionpublic static PackageId fromString(String str)
null
is returned.str
- the stringpublic static PackageId[] fromString(String... str)
str
- the stringspublic static String toString(PackageId... packs)
packs
- the idspublic String getPath()
getInstallationPath()
insteadpublic boolean isFromPath()
true
if constructed from path.public String getInstallationPath()
public String getGroupId()
getGroup()
instead.public String getGroup()
public String getName()
public String getVersionString()
public String getDownloadName()
name [ "-" version ] ".zip"
public Version getVersion()
null
if n/a.public String toString()
public int compareTo(PackageId o)
compareTo
in interface Comparable<PackageId>
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"