Interface TemplateReady

All Superinterfaces:
Jsonifiable
All Known Subinterfaces:
IFileType, TemplateReadySortable
All Known Implementing Classes:
FileType, IgnoreMetadataKeys, IgnoreMetadataKeysImpl, IndexEntry, Material, MaterialList, MaterialProduct, MaterialProductGroup, Metadata, MetadataAttribute, MetadataImpl, QueryOnMetadata, QueryOnMetadataImpl, SemanticVersionMatcherResult

public interface TemplateReady extends Jsonifiable
  • Method Details

    • toTemplateModel

      default Map<String,Object> toTemplateModel()
      convert the object into Map object which can be consumed by FreeMarker as model
      Returns:
      a model
    • toTemplateModelAsJson

      default String toTemplateModelAsJson()
      Returns:
      one line json (non-pretty-printed)
    • toTemplateModelAsJson

      default String toTemplateModelAsJson(boolean prettyPrint)