|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wiki.WikiPage
org.apache.wiki.attachment.Attachment
public class Attachment

Describes an attachment. Attachments are actually derivatives of a WikiPage, since they do actually have a WikiName as well.
| Field Summary |
|---|
| Fields inherited from class org.apache.wiki.WikiPage |
|---|
ALIAS, CHANGENOTE, DESCRIPTION, REDIRECT |
| Constructor Summary | |
|---|---|
Attachment(WikiEngine engine,
String parentPage,
String fileName)
Creates a new attachment. |
|
| Method Summary | |
|---|---|
String |
getFileName()
Returns the file name of the attachment. |
String |
getParentName()
Returns the name of the parent of this Attachment, i.e. the page which contains this attachment. |
boolean |
isCacheable()
Returns true, if this attachment can be cached by the user agent. |
void |
setCacheable(boolean value)
Sets this attachment to be cacheable or not. |
void |
setFileName(String name)
Sets the file name of this attachment. |
String |
toString()
Returns a human-readable, only-debugging-suitable description. |
| Methods inherited from class org.apache.wiki.WikiPage |
|---|
clone, compareTo, getAcl, getAttribute, getAttributes, getAuthor, getLastModified, getName, getSize, getVersion, getWiki, hashCode, hasMetadata, invalidateMetadata, removeAttribute, setAcl, setAttribute, setAuthor, setHasMetadata, setLastModified, setSize, setVersion |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Attachment(WikiEngine engine,
String parentPage,
String fileName)
engine - The WikiEngine which is hosting this attachment.parentPage - The page which will contain this attachment.fileName - The file name for the attachment.| Method Detail |
|---|
public String toString()
toString in class WikiPagepublic String getFileName()
public void setFileName(String name)
name - The name of the attachment. Must be a legal file name without
the path.public String getParentName()
public boolean isCacheable()
public void setCacheable(boolean value)
value - True or false, depending on whether you want this attachment
to be cacheable or not.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||