fr.paris.lutece.plugins.directory.business
Class File

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.business.File

public class File
extends java.lang.Object

class File


Field Summary
static java.lang.String TAG_FILE
           
 
Constructor Summary
File()
           
 
Method Summary
 java.lang.String getExtension()
           
 int getIdFile()
           
 java.lang.String getMimeType()
           
 PhysicalFile getPhysicalFile()
           
 int getSize()
           
 java.lang.String getTitle()
           
 java.lang.StringBuffer getXml(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.Locale locale, int nTypeEntry, int width, int height)
          return the xml of file
 void setExtension(java.lang.String extension)
          set the extension of the file
 void setIdFile(int idFile)
          set the id of the file
 void setMimeType(java.lang.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(java.lang.String title)
          set the title of the file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_FILE

public static final java.lang.String TAG_FILE
See Also:
Constant Field Values
Constructor Detail

File

public File()
Method Detail

getIdFile

public int getIdFile()
Returns:
the id of the file

setIdFile

public void setIdFile(int idFile)
set the id of the file

Parameters:
idFile - id of the file

getTitle

public java.lang.String getTitle()
Returns:
the title of the file

setTitle

public void setTitle(java.lang.String title)
set the title of the file

Parameters:
title - the title of the file

getSize

public int getSize()
Returns:
the size of the file

setSize

public void setSize(int size)
set the size of the file

Parameters:
size - the size of the file

getExtension

public java.lang.String getExtension()
Returns:
the extension of the file

setExtension

public void setExtension(java.lang.String extension)
set the extension of the file

Parameters:
extension - the title of the file

getMimeType

public java.lang.String getMimeType()
Returns:
the extension of the file

setMimeType

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

Parameters:
mimeType - the mime type of the file

getPhysicalFile

public PhysicalFile getPhysicalFile()
Returns:
the PhysicalFile associate to the file

setPhysicalFile

public void setPhysicalFile(PhysicalFile file)
set the PhysicalFile associate to the file

Parameters:
file - PhysicalFile

getXml

public java.lang.StringBuffer getXml(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                     java.util.Locale locale,
                                     int nTypeEntry,
                                     int width,
                                     int height)
return the xml of file

Parameters:
plugin - the plugin
locale - the locale
Returns:
xml


Copyright © 2010 Mairie de Paris. All Rights Reserved.