info.magnolia.cms.beans.runtime
Class File

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

public class File
extends java.lang.Object

Wraps a NodeData and exposes it into a simple file-like bean.

Version:
1.1
Author:
Sameer Charles

Constructor Summary
File(NodeData data)
           
 
Method Summary
 java.lang.String getContentType()
           
 java.lang.String getExtension()
           
 java.lang.String getFileName()
           
 NodeData getNodeData()
           
 java.lang.String getNodeDataTemplate()
           
 int getSize()
           
 java.io.InputStream getStream()
           
 void setContentType(java.lang.String contentType)
           
 void setExtension(java.lang.String extension)
           
 void setFileName(java.lang.String fileName)
           
 void setNodeDataTemplate(java.lang.String nodeDataTemplate)
           
 void setSize(int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

File

public File(NodeData data)
Method Detail

getExtension

public java.lang.String getExtension()

setExtension

public void setExtension(java.lang.String extension)

getFileName

public java.lang.String getFileName()

setFileName

public void setFileName(java.lang.String fileName)

getContentType

public java.lang.String getContentType()

setContentType

public void setContentType(java.lang.String contentType)

getNodeDataTemplate

public java.lang.String getNodeDataTemplate()

setNodeDataTemplate

public void setNodeDataTemplate(java.lang.String nodeDataTemplate)

getSize

public int getSize()

setSize

public void setSize(int size)

getNodeData

public NodeData getNodeData()

getStream

public java.io.InputStream getStream()


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