public class Dependency extends Object
Modifier and Type | Field and Description |
---|---|
static Dependency[] |
EMPTY
An empty dependency array
|
Constructor and Description |
---|
Dependency(PackageId id)
Creates a new dependency to the specified package id
|
Dependency(String groupId,
String name,
VersionRange range)
Creates a new dependency reference.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static Dependency[] |
fromString(String... str)
Returns dependencies from the given strings.
|
static Dependency |
fromString(String str)
Returns a dependency from a string.
|
String |
getGroup()
Returns the group of the dependency
|
String |
getName()
Returns the name of the dependency
|
String |
getPath()
Returns the installation path of this dependency
|
VersionRange |
getRange()
Returns the version range
|
int |
hashCode() |
boolean |
matches(PackageId id)
Checks if the given package id matches this dependency specification.
|
static Dependency[] |
parse(String str)
Parses a string serialization of dependency references generated by
toString(Dependency...) )} |
String |
toString() |
static String |
toString(Dependency... deps)
Returns a string representation from given dependencies.
|
public static final Dependency[] EMPTY
public Dependency(String groupId, String name, VersionRange range)
groupId
- group idname
- namerange
- version rangepublic Dependency(PackageId id)
id
- package id.public String getGroup()
public String getName()
public VersionRange getRange()
public String getPath()
public boolean matches(PackageId id)
id
- the package idtrue
if matchespublic static Dependency fromString(String str)
null
is returned.str
- the stringpublic static Dependency[] parse(String str)
toString(Dependency...)
)}str
- serialized stringpublic static Dependency[] fromString(String... str)
str
- the stringspublic static String toString(Dependency... deps)
deps
- the dependencies"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"