public class File extends Object
| Constructor and Description |
|---|
File() |
| Modifier and Type | Method and Description |
|---|---|
String |
getExtension() |
int |
getIdFile() |
String |
getMimeType() |
PhysicalFile |
getPhysicalFile() |
int |
getSize() |
String |
getTitle() |
StringBuffer |
getXml(fr.paris.lutece.portal.service.plugin.Plugin plugin,
Locale locale,
int nTypeEntry,
int nWidth,
int nHeight)
return the xml of file
|
void |
setExtension(String extension)
set the extension of the file
|
void |
setIdFile(int idFile)
set the id of the file
|
void |
setMimeType(String mimeType)
set the mime type of the file
|
void |
setPhysicalFile(PhysicalFile file)
set the PhysicalFile associate to the file
|
void |
setSize(int size)
set the size of the file
|
void |
setTitle(String title)
set the title of the file
|
public static final String TAG_FILE
public int getIdFile()
public void setIdFile(int idFile)
idFile - id of the filepublic String getTitle()
public void setTitle(String title)
title - the title of the filepublic int getSize()
public void setSize(int size)
size - the size of the filepublic String getExtension()
public void setExtension(String extension)
extension - the title of the filepublic String getMimeType()
public void setMimeType(String mimeType)
mimeType - the mime type of the filepublic PhysicalFile getPhysicalFile()
public void setPhysicalFile(PhysicalFile file)
file - PhysicalFilepublic StringBuffer getXml(fr.paris.lutece.portal.service.plugin.Plugin plugin, Locale locale, int nTypeEntry, int nWidth, int nHeight)
plugin - the pluginlocale - the localenTypeEntry - The entry typenWidth - The widthnHeight - The heightCopyright © 2016 City of Paris. All rights reserved.