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.
|
boolean |
isBlank()
Return
true if this resource contains blank data and should not be used by the frontend. |
void |
setBlank(boolean blank) |
Calendar |
setLastModified(Calendar cal) |
void |
setLength(long length) |
void |
setMimeType(String mimeType) |
compareTo, equalCompare, getAvailableTranslations, getBean, getBean, getBeanByUUID, getCanonicalBean, getCanonicalPath, getCanonicalUUID, getChildBeans, getChildBeans, getChildBeansByName, getChildBeansByName, getDisplayName, 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, getBean, getBean, getBeanByUUID, getCanonicalBean, getCanonicalPath, getCanonicalUUID, getChildBeans, getChildBeans, getChildBeansByName, getChildBeansByName, getDisplayName, 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)public boolean isBlank()
HippoResourceBean
true
if this resource contains blank data and should not be used by the frontend.
This differs from getLength() == 0
which may represent an empty file.isBlank
in interface HippoResourceBean
public void setBlank(boolean blank)
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.