|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.beans.runtime.FileProperties
public class FileProperties
Similar to info.magnolia.cms.beans.runtime.File but exposes the binary's properties using constants.
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 |
---|
public static final java.lang.String PROPERTIES_CONTENTNODE
public static final java.lang.String PROPERTY_CONTENTTYPE
public static final java.lang.String PROPERTY_ENCODING
public static final java.lang.String PROPERTY_LASTMODIFIED
public static final java.lang.String PROPERTY_SIZE
public static final java.lang.String PROPERTY_TEMPLATE
public static final java.lang.String PROPERTY_EXTENSION
public static final java.lang.String PROPERTY_MIMETYPE
public static final java.lang.String PROPERTY_FILENAME
public static final java.lang.String PROPERTY_ICON
public static final java.lang.String PROPERTY_WIDTH
public static final java.lang.String PROPERTY_HEIGHT
public static final java.lang.String EXTENSION
public static final java.lang.String EXTENSION_LOWER_CASE
public static final java.lang.String EXTENSION_UPPER_CASE
public static final java.lang.String NAME
public static final java.lang.String NAME_WITHOUT_EXTENSION
public static final java.lang.String CONTENT_TYPE
public static final java.lang.String ICON
public static final java.lang.String TEMPLATE
public static final java.lang.String HANDLE
public static final java.lang.String PATH_WITHOUT_NAME
public static final java.lang.String PATH
/en/mainColumnParagraph/04/file/report2004.Pdf
.
public static final java.lang.String SIZE_BYTES
263492
.
public static final java.lang.String SIZE_KB
257.3
.
public static final java.lang.String SIZE_MB
0.2
.
public static final java.lang.String SIZE
257.3
.
Constructor Detail |
---|
public FileProperties(Content content, java.lang.String nodeDataName)
Method Detail |
---|
public void setContent(Content c)
public Content getContent()
public void setNodeDataName(java.lang.String s)
public java.lang.String getNodeDataName()
public java.lang.String getProperty(java.lang.String property)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |