public class Attachment extends WikiPage
ALIAS, CHANGENOTE, DESCRIPTION, REDIRECT| Constructor and Description |
|---|
Attachment(WikiEngine engine,
java.lang.String parentPage,
java.lang.String fileName)
Creates a new attachment.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFileName()
Returns the file name of the attachment.
|
java.lang.String |
getParentName()
Returns the name of the parent of this Attachment, i.e.
|
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(java.lang.String name)
Sets the file name of this attachment.
|
java.lang.String |
toString()
Returns a human-readable, only-debugging-suitable description.
|
clone, compareTo, equals, getAcl, getAttribute, getAttributes, getAuthor, getLastModified, getLayerId, getName, getSize, getTransId, getVersion, getWiki, hashCode, hasMetadata, invalidateMetadata, removeAttribute, setAcl, setAttribute, setAuthor, setHasMetadata, setLastModified, setLayerId, setSize, setTransId, setVersionpublic Attachment(WikiEngine engine, java.lang.String parentPage, java.lang.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.@CheckReturnValue @Nonnull public java.lang.String toString()
public java.lang.String getFileName()
public void setFileName(java.lang.String name)
name - The name of the attachment. Must be a legal file name without
the path.public java.lang.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.stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.