info.magnolia.cms.beans.runtime
Class FileProperties

java.lang.Object
  extended by info.magnolia.cms.beans.runtime.FileProperties

public class FileProperties
extends Object

Similar to info.magnolia.cms.beans.runtime.File but exposes the binary's properties using constants.

Version:
2.0
Author:
Vinzenz Wyser

Field Summary
static String CONTENT_TYPE
           
static String EXTENSION
           
static String EXTENSION_LOWER_CASE
           
static String EXTENSION_UPPER_CASE
           
static String HANDLE
           
static String ICON
           
static String NAME
           
static String NAME_WITHOUT_EXTENSION
           
static String PATH
          path including fileName: /en/mainColumnParagraph/04/file/report2004.Pdf.
static String PATH_WITHOUT_NAME
          /en/mainColumnParagraph/04/file.Pdf.
static String PROPERTIES_CONTENTNODE
           
static String PROPERTY_CONTENTTYPE
           
static String PROPERTY_ENCODING
           
static String PROPERTY_EXTENSION
           
static String PROPERTY_FILENAME
           
static String PROPERTY_HEIGHT
           
static String PROPERTY_ICON
           
static String PROPERTY_LASTMODIFIED
           
static String PROPERTY_MIMETYPE
           
static String PROPERTY_SIZE
           
static String PROPERTY_TEMPLATE
           
static String PROPERTY_WIDTH
           
static String SIZE
          size and unit depending of size in bytes, KB, or MB: 257.3.
static String SIZE_BYTES
          size in bytes: 263492.
static String SIZE_KB
          size in KB: 257.3.
static String SIZE_MB
          size in MB: 0.2.
static String TEMPLATE
           
 
Constructor Summary
FileProperties(Content content, String nodeDataName)
           
 
Method Summary
 Content getContent()
           
 String getNodeDataName()
           
 String getProperty(String property)
           
 void setContent(Content c)
           
 void setNodeDataName(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTIES_CONTENTNODE

public static final String PROPERTIES_CONTENTNODE
See Also:
Constant Field Values

PROPERTY_CONTENTTYPE

public static final String PROPERTY_CONTENTTYPE
See Also:
Constant Field Values

PROPERTY_ENCODING

public static final String PROPERTY_ENCODING
See Also:
Constant Field Values

PROPERTY_LASTMODIFIED

public static final String PROPERTY_LASTMODIFIED
See Also:
Constant Field Values

PROPERTY_SIZE

public static final String PROPERTY_SIZE
See Also:
Constant Field Values

PROPERTY_TEMPLATE

public static final String PROPERTY_TEMPLATE
See Also:
Constant Field Values

PROPERTY_EXTENSION

public static final String PROPERTY_EXTENSION
See Also:
Constant Field Values

PROPERTY_MIMETYPE

public static final String PROPERTY_MIMETYPE
See Also:
Constant Field Values

PROPERTY_FILENAME

public static final String PROPERTY_FILENAME
See Also:
Constant Field Values

PROPERTY_ICON

public static final String PROPERTY_ICON
See Also:
Constant Field Values

PROPERTY_WIDTH

public static final String PROPERTY_WIDTH
See Also:
Constant Field Values

PROPERTY_HEIGHT

public static final String PROPERTY_HEIGHT
See Also:
Constant Field Values

EXTENSION

public static final String EXTENSION
See Also:
Constant Field Values

EXTENSION_LOWER_CASE

public static final String EXTENSION_LOWER_CASE
See Also:
Constant Field Values

EXTENSION_UPPER_CASE

public static final String EXTENSION_UPPER_CASE
See Also:
Constant Field Values

NAME

public static final String NAME
See Also:
Constant Field Values

NAME_WITHOUT_EXTENSION

public static final String NAME_WITHOUT_EXTENSION
See Also:
Constant Field Values

CONTENT_TYPE

public static final String CONTENT_TYPE
See Also:
Constant Field Values

ICON

public static final String ICON
See Also:
Constant Field Values

TEMPLATE

public static final String TEMPLATE
See Also:
Constant Field Values

HANDLE

public static final String HANDLE
See Also:
Constant Field Values

PATH_WITHOUT_NAME

public static final String PATH_WITHOUT_NAME
/en/mainColumnParagraph/04/file.Pdf.

See Also:
Constant Field Values

PATH

public static final String PATH
path including fileName: /en/mainColumnParagraph/04/file/report2004.Pdf.

See Also:
Constant Field Values

SIZE_BYTES

public static final String SIZE_BYTES
size in bytes: 263492.

See Also:
Constant Field Values

SIZE_KB

public static final String SIZE_KB
size in KB: 257.3.

See Also:
Constant Field Values

SIZE_MB

public static final String SIZE_MB
size in MB: 0.2.

See Also:
Constant Field Values

SIZE

public static final String SIZE
size and unit depending of size in bytes, KB, or MB: 257.3.

See Also:
Constant Field Values
Constructor Detail

FileProperties

public FileProperties(Content content,
                      String nodeDataName)
Method Detail

setContent

public void setContent(Content c)

getContent

public Content getContent()

setNodeDataName

public void setNodeDataName(String s)

getNodeDataName

public String getNodeDataName()

getProperty

public String getProperty(String property)


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.