public class PackageResource extends AbstractRemoteResource implements Comparable<PackageResource>
| Constructor and Description |
|---|
PackageResource(long id)
Create a new package
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(PackageResource res) |
ArtifactResource[] |
getArtifacts()
Get all of the artifacts owned by the package
|
Date |
getCreationDate()
Date the package was created, if known
|
String |
getDescription()
Get the artifact description
|
String |
getName()
Get the name of the resource
|
String |
getPackageName()
Get the package name
|
protected String |
getResourceType()
Get the OSS Index resource type.
|
Date |
getUpdateDate()
Date the package was last updated, if known
|
exists, getIdpublic PackageResource(long id)
id - The ID of the package in OSS Indexprotected String getResourceType()
AbstractRemoteResourcegetResourceType in class AbstractRemoteResourcepublic String getName()
public String getPackageName()
public String getDescription()
public Date getCreationDate()
public Date getUpdateDate()
public int compareTo(PackageResource res)
compareTo in interface Comparable<PackageResource>public ArtifactResource[] getArtifacts()
Copyright © 2015. All rights reserved.