public class DownloadBundle extends BaseArtifact implements ArtifactBundle, NamedArtifact
| Constructor and Description |
|---|
DownloadBundle(String module,
String id,
File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
exportTo(File fileOrDirectory,
Enunciate enunciate)
Exports this bundle to the specified file or directory.
|
Collection<? extends Artifact> |
getArtifacts()
There's only one bundled artifact: the download file.
|
Date |
getCreated()
The modification date of the file.
|
String |
getDescription()
The description of this bundle.
|
String |
getName()
The name of this bundle.
|
long |
getSize()
The size of this download bundle.
|
void |
setDescription(String description)
The description of this bundle.
|
void |
setName(String name)
The name of this bundle.
|
addAlias, addDependency, compareTo, getAliases, getDependencies, getId, getModule, isPublic, setDependenciesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAliases, getDependencies, getId, getModule, isPubliccompareTopublic void exportTo(File fileOrDirectory, Enunciate enunciate) throws IOException
exportTo in interface ArtifactfileOrDirectory - The file or directory to which to export this bundle.enunciate - The enunciated utilities to use.IOExceptionpublic Collection<? extends Artifact> getArtifacts()
getArtifacts in interface ArtifactBundlepublic String getName()
getName in interface NamedArtifactpublic long getSize()
public void setName(String name)
name - The name of this bundle.public String getDescription()
public void setDescription(String description)
description - The description of this bundle.public Date getCreated()
Copyright © 2015. All rights reserved.