public class MockHippoResourceBean extends MockHippoBean implements HippoResourceBean
Constructor and Description |
---|
MockHippoResourceBean() |
Modifier and Type | Method and Description |
---|---|
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) |
compareTo, equalCompare, getAvailableTranslations, getAvailableTranslationsBean, getBean, getBean, getCanonicalBean, getCanonicalPath, getCanonicalUUID, getChildBeans, getChildBeans, getChildBeansByName, getChildBeansByName, getContextualBean, getContextualParentBean, getEqualComparator, getIdentifier, getLinkedBean, getLinkedBeans, getLocalizedName, getName, getNode, getObjectConverter, getParentBean, getPath, getProperties, getProperty, getProperty, getProperty, getValueProvider, isAncestor, isDescendant, isHippoDocumentBean, isHippoFolderBean, isLeaf, isSelf, setIdentifier, setNode, setObjectConverter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equalCompare, getAvailableTranslations, getAvailableTranslationsBean, getBean, getBean, getCanonicalBean, 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
getIdentifier, setIdentifier
getObjectConverter, setObjectConverter
compareTo
public long getLength()
getLength
in interface HippoResourceBean
public void setLength(long length)
public BigDecimal getLengthKB()
HippoResourceBean
getLengthKB
in interface HippoResourceBean
public BigDecimal getLengthMB()
HippoResourceBean
getLengthMB
in interface HippoResourceBean
public String getMimeType()
HippoResourceBean
getMimeType
in interface HippoResourceBean
public void setMimeType(String mimeType)
public Calendar getLastModified()
getLastModified
in interface HippoResourceBean
null
if there is no last modified (should never happen though)Copyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.