Class DescriptionTemplateHelper

java.lang.Object
org.codice.ddf.spatial.kml.transformer.DescriptionTemplateHelper

public class DescriptionTemplateHelper extends Object
A handlebars template helper class that creates handlebar helpers which are used in the description.hbt handlebars template
  • 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

      public String printAttributeName(ddf.catalog.data.Attribute attribute)
    • hasThumbnail

      public CharSequence hasThumbnail(ddf.catalog.data.Metacard context, com.github.jknack.handlebars.Options options)
    • base64Thumbnail

      public String base64Thumbnail(ddf.catalog.data.Metacard context)
    • resourceUrl

      public String resourceUrl(ddf.catalog.data.Metacard context)
    • resourceSizeString

      public String resourceSizeString(ddf.catalog.data.Metacard context)