public class ArtifactResource extends AbstractRemoteResource implements Comparable<ArtifactResource>
| Constructor and Description |
|---|
ArtifactResource(long id)
Create a new artifact
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ArtifactResource res) |
ArtifactResource[] |
getDependencyGraph()
Get the dependency graph for the artifact
|
String |
getDescription()
Get the artifact description
|
String |
getName()
Get the name of the resource
|
PackageResource |
getPackage()
Get the package the artifact belongs to
|
String |
getPackageManager()
Get the name of the package manager that owns the artifact
|
String |
getPackageName()
Get the package name
|
protected String |
getResourceType()
Get the OSS Index resource type.
|
long |
getScmId()
Get the ID of the SCM related to the artifact
|
String[] |
getSearch()
When the resource is retrieved in a search, this returns the search
strings that were used.
|
net.ossindex.version.IVersion |
getVersion()
Get the semantic version for the resource.
|
String |
getVersionString()
Get the version string
|
exists, getIdpublic ArtifactResource(long id)
id - The ID of the artifact in OSS Indexprotected String getResourceType()
AbstractRemoteResourcegetResourceType in class AbstractRemoteResourcepublic String getName()
public String getPackageName()
public String getVersionString()
public String getDescription()
public String getPackageManager()
public String[] getSearch()
public long getScmId()
public net.ossindex.version.IVersion getVersion()
public int compareTo(ArtifactResource res)
compareTo in interface Comparable<ArtifactResource>public PackageResource getPackage() throws IOException
IOException - On errorpublic ArtifactResource[] getDependencyGraph()
Copyright © 2015. All rights reserved.