public class DescriptionTemplateHelper extends Object
Constructor and Description |
---|
DescriptionTemplateHelper(ActionProvider actionProvider) |
Modifier and Type | Method and Description |
---|---|
String |
base64Thumbnail(Metacard context) |
CharSequence |
hasThumbnail(Metacard context,
com.github.jknack.handlebars.Options options) |
CharSequence |
isPrintableAttribute(Attribute attribute,
AttributeType.AttributeFormat format,
com.github.jknack.handlebars.Options options) |
String |
prettyPrint(Attribute attribute,
AttributeType.AttributeFormat format) |
String |
printAttributeName(Attribute attribute) |
String |
resourceSizeString(Metacard context) |
String |
resourceUrl(Metacard context) |
public DescriptionTemplateHelper(ActionProvider actionProvider)
public CharSequence isPrintableAttribute(Attribute attribute, AttributeType.AttributeFormat format, com.github.jknack.handlebars.Options options) throws IOException
IOException
public String prettyPrint(Attribute attribute, AttributeType.AttributeFormat format)
public CharSequence hasThumbnail(Metacard context, com.github.jknack.handlebars.Options options)
This work is licensed under a Creative Commons Attribution 4.0 International License.