|
|||||||||
| 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.main.TextArtifact
public class TextArtifact
An artifact that is some text.
| Constructor Summary | |
|---|---|
TextArtifact(java.lang.String module,
java.lang.String id,
java.lang.String text)
|
|
| Method Summary | |
|---|---|
void |
exportTo(java.io.File file,
Enunciate enunciate)
Exports its text to the specified file. |
long |
getSize()
The size of the bytes of the text, UTF-8. |
java.lang.String |
getText()
The text for this artifact. |
boolean |
isPublic()
Whether this file artifact is public. |
void |
setPublic(boolean bundled)
Whether this file artifact is public. |
| Methods inherited from class org.codehaus.enunciate.main.BaseArtifact |
|---|
addAlias, addDependency, compareTo, getAliases, getDependencies, getId, getModule, setDependencies |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextArtifact(java.lang.String module,
java.lang.String id,
java.lang.String text)
| Method Detail |
|---|
public java.lang.String getText()
public void exportTo(java.io.File file,
Enunciate enunciate)
throws java.io.IOException
file - The file to export the text to.enunciate - The enunciate mechanism to use for utilities and properties as necessary.
java.io.IOException - If an error occurs exporting it.public long getSize()
public boolean isPublic()
isPublic in interface ArtifactisPublic in class BaseArtifactpublic void setPublic(boolean bundled)
bundled - Whether this file artifact is public.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||