info.magnolia.cms.beans.runtime
Class FileProperties

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

public class FileProperties
extends java.lang.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 java.lang.String CONTENT_TYPE
           
static java.lang.String EXTENSION
           
static java.lang.String EXTENSION_LOWER_CASE
           
static java.lang.String EXTENSION_UPPER_CASE
           
static java.lang.String HANDLE
           
static java.lang.String ICON
           
static java.lang.String NAME
           
static java.lang.String NAME_WITHOUT_EXTENSION
           
static java.lang.String PATH
          path including fileName: /en/mainColumnParagraph/04/file/report2004.Pdf.
static java.lang.String PATH_WITHOUT_NAME
          /en/mainColumnParagraph/04/file.Pdf.
static java.lang.String PROPERTIES_CONTENTNODE
           
static java.lang.String PROPERTY_CONTENTTYPE
           
static java.lang.String PROPERTY_ENCODING
           
static java.lang.String PROPERTY_EXTENSION
           
static java.lang.String PROPERTY_FILENAME
           
static java.lang.String PROPERTY_HEIGHT
           
static java.lang.String PROPERTY_ICON
           
static java.lang.String PROPERTY_LASTMODIFIED
           
static java.lang.String PROPERTY_MIMETYPE
           
static java.lang.String PROPERTY_SIZE
           
static java.lang.String PROPERTY_TEMPLATE
           
static java.lang.String PROPERTY_WIDTH
           
static java.lang.String SIZE
          size and unit depending of size in bytes, KB, or MB: 257.3.
static java.lang.String SIZE_BYTES
          size in bytes: 263492.
static java.lang.String SIZE_KB
          size in KB: 257.3.
static java.lang.String SIZE_MB
          size in MB: 0.2.
static java.lang.String TEMPLATE
           
 
Constructor Summary
FileProperties(Content content, java.lang.String nodeDataName)
           
 
Method Summary
 Content getContent()
           
 java.lang.String getNodeDataName()
           
 java.lang.String getProperty(java.lang.String property)
           
 void setContent(Content c)
           
 void setNodeDataName(java.lang.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 java.lang.String PROPERTIES_CONTENTNODE
See Also:
Constant Field Values

PROPERTY_CONTENTTYPE

public static final java.lang.String PROPERTY_CONTENTTYPE
See Also:
Constant Field Values

PROPERTY_ENCODING

public static final java.lang.String PROPERTY_ENCODING
See Also:
Constant Field Values

PROPERTY_LASTMODIFIED

public static final java.lang.String PROPERTY_LASTMODIFIED
See Also:
Constant Field Values

PROPERTY_SIZE

public static final java.lang.String PROPERTY_SIZE
See Also:
Constant Field Values

PROPERTY_TEMPLATE

public static final java.lang.String PROPERTY_TEMPLATE
See Also:
Constant Field Values

PROPERTY_EXTENSION

public static final java.lang.String PROPERTY_EXTENSION
See Also:
Constant Field Values

PROPERTY_MIMETYPE

public static final java.lang.String PROPERTY_MIMETYPE
See Also:
Constant Field Values

PROPERTY_FILENAME

public static final java.lang.String PROPERTY_FILENAME
See Also:
Constant Field Values

PROPERTY_ICON

public static final java.lang.String PROPERTY_ICON
See Also:
Constant Field Values

PROPERTY_WIDTH

public static final java.lang.String PROPERTY_WIDTH
See Also:
Constant Field Values

PROPERTY_HEIGHT

public static final java.lang.String PROPERTY_HEIGHT
See Also:
Constant Field Values

EXTENSION

public static final java.lang.String EXTENSION
See Also:
Constant Field Values

EXTENSION_LOWER_CASE

public static final java.lang.String EXTENSION_LOWER_CASE
See Also:
Constant Field Values

EXTENSION_UPPER_CASE

public static final java.lang.String EXTENSION_UPPER_CASE
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

NAME_WITHOUT_EXTENSION

public static final java.lang.String NAME_WITHOUT_EXTENSION
See Also:
Constant Field Values

CONTENT_TYPE

public static final java.lang.String CONTENT_TYPE
See Also:
Constant Field Values

ICON

public static final java.lang.String ICON
See Also:
Constant Field Values

TEMPLATE

public static final java.lang.String TEMPLATE
See Also:
Constant Field Values

HANDLE

public static final java.lang.String HANDLE
See Also:
Constant Field Values

PATH_WITHOUT_NAME

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

See Also:
Constant Field Values

PATH

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

See Also:
Constant Field Values

SIZE_BYTES

public static final java.lang.String SIZE_BYTES
size in bytes: 263492.

See Also:
Constant Field Values

SIZE_KB

public static final java.lang.String SIZE_KB
size in KB: 257.3.

See Also:
Constant Field Values

SIZE_MB

public static final java.lang.String SIZE_MB
size in MB: 0.2.

See Also:
Constant Field Values

SIZE

public static final java.lang.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,
                      java.lang.String nodeDataName)
Method Detail

setContent

public void setContent(Content c)

getContent

public Content getContent()

setNodeDataName

public void setNodeDataName(java.lang.String s)

getNodeDataName

public java.lang.String getNodeDataName()

getProperty

public java.lang.String getProperty(java.lang.String property)


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