|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.enunciate.main.BaseArtifact
org.codehaus.enunciate.modules.docs.DownloadBundle
public class DownloadBundle
An artifact bundle the contains information about a download file.
| Constructor Summary | |
|---|---|
DownloadBundle(java.lang.String module,
java.lang.String id,
java.io.File file)
|
|
| Method Summary | |
|---|---|
void |
exportTo(java.io.File fileOrDirectory,
Enunciate enunciate)
Exports this bundle to the specified file or directory. |
java.util.Collection<? extends Artifact> |
getArtifacts()
There's only one bundled artifact: the download file. |
java.util.Date |
getCreated()
The modification date of the file. |
java.lang.String |
getDescription()
The description of this bundle. |
java.lang.String |
getName()
The name of this bundle. |
long |
getSize()
The size of this download bundle. |
void |
setDescription(java.lang.String description)
The description of this bundle. |
void |
setName(java.lang.String name)
The name of this bundle. |
| Methods inherited from class org.codehaus.enunciate.main.BaseArtifact |
|---|
addAlias, addDependency, compareTo, getAliases, getDependencies, getId, getModule, isPublic, setDependencies |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.codehaus.enunciate.main.Artifact |
|---|
getAliases, getDependencies, getId, getModule, isPublic |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public DownloadBundle(java.lang.String module,
java.lang.String id,
java.io.File file)
| Method Detail |
|---|
public void exportTo(java.io.File fileOrDirectory,
Enunciate enunciate)
throws java.io.IOException
exportTo in interface ArtifactfileOrDirectory - The file or directory to which to export this bundle.enunciate - The enunciated utilities to use.
java.io.IOException - If an error occurs exporting it.public java.util.Collection<? extends Artifact> getArtifacts()
getArtifacts in interface ArtifactBundlepublic java.lang.String getName()
getName in interface NamedArtifactpublic long getSize()
getSize in interface Artifactpublic void setName(java.lang.String name)
name - The name of this bundle.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The description of this bundle.public java.util.Date getCreated()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||