public class AttachmentReference extends Object implements com.google.gwt.user.client.rpc.IsSerializable
| Modifier and Type | Field and Description |
|---|---|
static String |
FILE_NAME
The component that stores the name of the file that hosts the referenced entity.
|
| Constructor and Description |
|---|
AttachmentReference()
Default constructor.
|
AttachmentReference(EntityReference entityReference)
Creates a typed attachment reference.
|
AttachmentReference(String fileName,
WikiPageReference wikiPageReference)
Creates a new typed reference to the specified attachment.
|
| Modifier and Type | Method and Description |
|---|---|
AttachmentReference |
clone() |
boolean |
equals(Object obj) |
EntityReference |
getEntityReference() |
String |
getFileName() |
WikiPageReference |
getWikiPageReference() |
int |
hashCode() |
void |
setFileName(String fileName)
Sets the name of the file that hosts the referenced entity.
|
public static final String FILE_NAME
public AttachmentReference()
public AttachmentReference(EntityReference entityReference)
entityReference - an entity referencepublic AttachmentReference(String fileName, WikiPageReference wikiPageReference)
fileName - the file namewikiPageReference - a reference to the wiki page that holds the attachmentpublic String getFileName()
public void setFileName(String fileName)
fileName - the name of the file that hosts the referenced entitypublic WikiPageReference getWikiPageReference()
public EntityReference getEntityReference()
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(Object)public AttachmentReference clone()
clone in class ObjectObject.clone()Copyright © 2004–2014 XWiki. All rights reserved.