org.hippoecm.hst.mock.content.beans.standard
Class MockHippoResourceBean

java.lang.Object
  extended by org.hippoecm.hst.mock.content.beans.standard.MockHippoBean
      extended by org.hippoecm.hst.mock.content.beans.standard.MockHippoResourceBean
All Implemented Interfaces:
Comparable<HippoBean>, ObjectConverterAware, NodeAware, HippoBean, HippoResourceBean

public class MockHippoResourceBean
extends MockHippoBean
implements HippoResourceBean

Version:
"$Id$"

Constructor Summary
MockHippoResourceBean()
           
 
Method Summary
 Calendar getLastModified()
           
 long getLength()
           
 BigDecimal getLengthKB()
          Return size in kilobytes
 BigDecimal getLengthMB()
          Return size in kilobytes
 String getMimeType()
          Get the mime type of this resource.
 Calendar setLastModified(Calendar cal)
           
 void setLength(long length)
           
 void setMimeType(String mimeType)
           
 
Methods inherited from class org.hippoecm.hst.mock.content.beans.standard.MockHippoBean
compareTo, equalCompare, getAvailableTranslationsBean, getBean, getBean, getCanonicalPath, getCanonicalUUID, getChildBeans, getChildBeans, getChildBeansByName, getChildBeansByName, getContextualBean, getContextualParentBean, getEqualComparator, getLinkedBean, getLinkedBeans, getLocalizedName, getName, getNode, getObjectConverter, getParentBean, getPath, getProperties, getProperty, getProperty, getProperty, getValueProvider, isAncestor, isDescendant, isHippoDocumentBean, isHippoFolderBean, isLeaf, isSelf, setNode, setObjectConverter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hippoecm.hst.content.beans.standard.HippoBean
equalCompare, getAvailableTranslationsBean, getBean, getBean, getCanonicalPath, getCanonicalUUID, getChildBeans, getChildBeans, getChildBeansByName, getChildBeansByName, getContextualBean, getContextualParentBean, getEqualComparator, getLinkedBean, getLinkedBeans, getLocalizedName, getName, getNode, getParentBean, getPath, getProperties, getProperty, getProperty, getProperty, getValueProvider, isAncestor, isDescendant, isHippoDocumentBean, isHippoFolderBean, isLeaf, isSelf
 
Methods inherited from interface org.hippoecm.hst.content.beans.NodeAware
setNode
 
Methods inherited from interface org.hippoecm.hst.content.beans.manager.ObjectConverterAware
getObjectConverter, setObjectConverter
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

MockHippoResourceBean

public MockHippoResourceBean()
Method Detail

getLength

public long getLength()
Specified by:
getLength in interface HippoResourceBean
Returns:
the number of bytes of binary stored in this resource

setLength

public void setLength(long length)

getLengthKB

public BigDecimal getLengthKB()
Description copied from interface: HippoResourceBean
Return size in kilobytes

Specified by:
getLengthKB in interface HippoResourceBean
Returns:
kilobytes

getLengthMB

public BigDecimal getLengthMB()
Description copied from interface: HippoResourceBean
Return size in kilobytes

Specified by:
getLengthMB in interface HippoResourceBean
Returns:
megabytes

getMimeType

public String getMimeType()
Description copied from interface: HippoResourceBean
Get the mime type of this resource.

Specified by:
getMimeType in interface HippoResourceBean
Returns:
the mime type of this resource

setMimeType

public void setMimeType(String mimeType)

getLastModified

public Calendar getLastModified()
Specified by:
getLastModified in interface HippoResourceBean
Returns:
the last modified date of this resource and null if there is no last modified (should never happen though)

setLastModified

public Calendar setLastModified(Calendar cal)


Copyright © 2008-2012 Hippo. All Rights Reserved.