org.xwiki.bridge
Class AttachmentName

java.lang.Object
  extended by org.xwiki.bridge.AttachmentName

Deprecated. use AttachmentReference instead since 2.2M1

@Deprecated
public class AttachmentName
extends Object

Represents an Attachment name (document name and file name). An attachment is always attached to a document.

Since:
2.0M1
Version:
$Id$

Constructor Summary
AttachmentName(DocumentName documentName, String fileName)
          Deprecated.  
AttachmentName(String wiki, String space, String page, String fileName)
          Deprecated.  
 
Method Summary
 boolean equals(Object obj)
          Deprecated. 
 DocumentName getDocumentName()
          Deprecated.  
 String getFileName()
          Deprecated.  
 int hashCode()
          Deprecated. 
 void setDocumentName(DocumentName documentName)
          Deprecated.  
 void setFileName(String fileName)
          Deprecated.  
 String toString()
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttachmentName

public AttachmentName(DocumentName documentName,
                      String fileName)
Deprecated. 
Parameters:
documentName - the attachment's document (ie the document to which the filename is attached to)
fileName - the name of the file attached to the document

AttachmentName

public AttachmentName(String wiki,
                      String space,
                      String page,
                      String fileName)
Deprecated. 
Parameters:
wiki - the wiki to which the attachment's document belongs to (eg "xwiki")
space - the space to which the attachment's document belongs to (eg "Main")
page - the page to which the attachment's document belongs to (eg "WebHome")
fileName - the name of the file attached to the document
Method Detail

setDocumentName

public void setDocumentName(DocumentName documentName)
Deprecated. 
Parameters:
documentName - the name of the document to which the attachment filename is attached to

getDocumentName

public DocumentName getDocumentName()
Deprecated. 
Returns:
the name of the document to which the attachment filename is attached to

setFileName

public void setFileName(String fileName)
Deprecated. 
Parameters:
fileName - the file name of the attachment in the document's page.

getFileName

public String getFileName()
Deprecated. 
Returns:
the file name of the attachment in the document's page.

toString

public String toString()
Deprecated. 

Overrides:
toString in class Object
See Also:
Object.toString()

equals

public boolean equals(Object obj)
Deprecated. 

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Deprecated. 

Overrides:
hashCode in class Object
See Also:
Object.hashCode()


Copyright © 2004-2011 XWiki. All Rights Reserved.