com.xpn.xwiki.wysiwyg.client.util
Class Attachment

java.lang.Object
  extended by com.xpn.xwiki.wysiwyg.client.util.Attachment
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class Attachment
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable

Configuration object for an attachment, to be used to transmit data about attachments from the server to the client.

Version:
$Id: Attachment.java 25780 2009-12-14 09:41:47Z mflorea $

Constructor Summary
Attachment()
           
 
Method Summary
 java.lang.String getFileName()
           
 java.lang.String getMimeType()
           
 java.lang.String getReference()
           
 java.lang.String getURL()
           
 void setFileName(java.lang.String fileName)
          Sets the name of the attached file.
 void setMimeType(java.lang.String mimeType)
          Sets the mime type of the attached file.
 void setReference(java.lang.String reference)
           
 void setURL(java.lang.String url)
          Sets the attachment URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attachment

public Attachment()
Method Detail

getReference

public java.lang.String getReference()
Returns:
the reference

setReference

public void setReference(java.lang.String reference)
Parameters:
reference - the reference to set

getFileName

public java.lang.String getFileName()
Returns:
the name of the attached file

setFileName

public void setFileName(java.lang.String fileName)
Sets the name of the attached file.

Parameters:
fileName - a file name

getURL

public java.lang.String getURL()
Returns:
the attachment URL

setURL

public void setURL(java.lang.String url)
Sets the attachment URL.

Parameters:
url - the attachment URL

getMimeType

public java.lang.String getMimeType()
Returns:
the mime type of the attached file

setMimeType

public void setMimeType(java.lang.String mimeType)
Sets the mime type of the attached file.

Parameters:
mimeType - a mime type


Copyright © 2004-2010 XWiki. All Rights Reserved.