Class DescriptionTemplateHelper
java.lang.Object
org.codice.ddf.spatial.kml.transformer.DescriptionTemplateHelper
A handlebars template helper class that creates handlebar helpers which are used in the
description.hbt handlebars template
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbase64Thumbnail(ddf.catalog.data.Metacard context) hasThumbnail(ddf.catalog.data.Metacard context, com.github.jknack.handlebars.Options options) isPrintableAttribute(ddf.catalog.data.Attribute attribute, ddf.catalog.data.AttributeType.AttributeFormat format, com.github.jknack.handlebars.Options options) prettyPrint(ddf.catalog.data.Attribute attribute, ddf.catalog.data.AttributeType.AttributeFormat format) printAttributeName(ddf.catalog.data.Attribute attribute) resourceSizeString(ddf.catalog.data.Metacard context) resourceUrl(ddf.catalog.data.Metacard context)
-
Constructor Details
-
DescriptionTemplateHelper
public DescriptionTemplateHelper(ddf.action.ActionProvider actionProvider)
-
-
Method Details
-
isPrintableAttribute
public CharSequence isPrintableAttribute(ddf.catalog.data.Attribute attribute, ddf.catalog.data.AttributeType.AttributeFormat format, com.github.jknack.handlebars.Options options) throws IOException - Throws:
IOException
-
prettyPrint
public String prettyPrint(ddf.catalog.data.Attribute attribute, ddf.catalog.data.AttributeType.AttributeFormat format) -
printAttributeName
-
hasThumbnail
public CharSequence hasThumbnail(ddf.catalog.data.Metacard context, com.github.jknack.handlebars.Options options) -
base64Thumbnail
-
resourceUrl
-
resourceSizeString
-